@Path(value="items") public class ItemsManager extends Object
| Constructor and Description |
|---|
ItemsManager() |
| Modifier and Type | Method and Description |
|---|---|
String |
copy(String destinationId,
String newFileName) |
Long |
countById(Boolean showHidden,
List<String> excludes,
String nodeType) |
javax.ws.rs.core.Response |
deleteItem(boolean force) |
javax.ws.rs.core.Response |
download(List<String> excludes) |
javax.ws.rs.core.Response |
downloadVersion(String versionName) |
org.gcube.common.storagehub.model.service.ItemList |
findChildrenByNamePattern(List<String> excludes,
String name) |
org.gcube.common.storagehub.model.service.ItemList |
getAnchestors(List<String> excludes) |
org.gcube.common.storagehub.model.service.ItemWrapper<org.gcube.common.storagehub.model.items.Item> |
getById(List<String> excludes) |
org.gcube.common.storagehub.model.service.ItemWrapper<org.gcube.common.storagehub.model.items.Item> |
getByRelativePath(String path,
List<String> excludes) |
URL |
getPublicLink(String version) |
org.gcube.common.storagehub.model.service.ItemWrapper<org.gcube.common.storagehub.model.items.Item> |
getRootSharedFolder(List<String> excludes) |
org.gcube.common.storagehub.model.service.VersionList |
getVersions() |
org.gcube.common.storagehub.model.service.ItemList |
listById(Boolean showHidden,
List<String> excludes,
String nodeType) |
org.gcube.common.storagehub.model.service.ItemList |
listByIdPaged(Boolean showHidden,
Integer start,
Integer limit,
List<String> excludes,
String nodeType) |
String |
makeFolderPublic(boolean publish) |
String |
move(String destinationId) |
javax.ws.rs.core.Response |
rename(String newName) |
javax.ws.rs.core.Response |
resolvePublicLink() |
org.gcube.common.storagehub.model.service.ItemList |
searchItems(Boolean showHidden,
Boolean excludeTrashed,
List<String> excludes,
String nodeType,
String name) |
javax.ws.rs.core.Response |
setItemAsHidden(Boolean hidden) |
javax.ws.rs.core.Response |
setMetadata(org.gcube.common.storagehub.model.Metadata metadata) |
@GET
@Path(value="{id}")
@Produces(value="application/json")
public org.gcube.common.storagehub.model.service.ItemWrapper<org.gcube.common.storagehub.model.items.Item> getById(@QueryParam(value="exclude")
List<String> excludes)
@GET
@Path(value="{id}/path")
@Produces(value="application/json")
public org.gcube.common.storagehub.model.service.ItemWrapper<org.gcube.common.storagehub.model.items.Item> getByRelativePath(@QueryParam(value="path")
String path,
@QueryParam(value="exclude")
List<String> excludes)
@GET
@Path(value="{id}/items/{name}")
@Produces(value="application/json")
public org.gcube.common.storagehub.model.service.ItemList findChildrenByNamePattern(@QueryParam(value="exclude")
List<String> excludes,
@PathParam(value="name")
String name)
@GET
@Path(value="{id}/children/count")
@Produces(value="application/json")
public Long countById(@QueryParam(value="showHidden")
Boolean showHidden,
@QueryParam(value="exclude")
List<String> excludes,
@QueryParam(value="onlyType")
String nodeType)
@GET
@Path(value="{id}/children")
@Produces(value="application/json")
public org.gcube.common.storagehub.model.service.ItemList listById(@QueryParam(value="showHidden")
Boolean showHidden,
@QueryParam(value="exclude")
List<String> excludes,
@QueryParam(value="onlyType")
String nodeType)
@GET
@Path(value="{id}/search")
@Produces(value="application/json")
public org.gcube.common.storagehub.model.service.ItemList searchItems(@QueryParam(value="showHidden")
Boolean showHidden,
@QueryParam(value="excludeTrashed")
Boolean excludeTrashed,
@QueryParam(value="exclude")
List<String> excludes,
@QueryParam(value="onlyType")
String nodeType,
@QueryParam(value="name")
String name)
@GET
@Path(value="{id}/children/paged")
@Produces(value="application/json")
public org.gcube.common.storagehub.model.service.ItemList listByIdPaged(@QueryParam(value="showHidden")
Boolean showHidden,
@QueryParam(value="start")
Integer start,
@QueryParam(value="limit")
Integer limit,
@QueryParam(value="exclude")
List<String> excludes,
@QueryParam(value="onlyType")
String nodeType)
@GET
@Path(value="publiclink/{id}")
public javax.ws.rs.core.Response resolvePublicLink()
@GET
@Produces(value="application/json")
@Path(value="{id}/publiclink")
public URL getPublicLink(@QueryParam(value="version")
String version)
@PUT
@Path(value="{id}/publish")
@Produces(value="application/json")
public String makeFolderPublic(@FormParam(value="publish")
boolean publish)
@GET
@Path(value="{id}/rootSharedFolder")
@Produces(value="application/json")
public org.gcube.common.storagehub.model.service.ItemWrapper<org.gcube.common.storagehub.model.items.Item> getRootSharedFolder(@QueryParam(value="exclude")
List<String> excludes)
@GET
@Path(value="{id}/versions")
@Produces(value="application/json")
public org.gcube.common.storagehub.model.service.VersionList getVersions()
@GET
@Path(value="{id}/versions/{version}/download")
public javax.ws.rs.core.Response downloadVersion(@PathParam(value="version")
String versionName)
@GET
@Path(value="{id}/anchestors")
@Produces(value="application/json")
public org.gcube.common.storagehub.model.service.ItemList getAnchestors(@QueryParam(value="exclude")
List<String> excludes)
@GET
@Path(value="{id}/download")
public javax.ws.rs.core.Response download(@QueryParam(value="exclude")
List<String> excludes)
@PUT
@Path(value="{id}/move")
public String move(@FormParam(value="destinationId")
String destinationId)
@PUT
@Path(value="{id}/copy")
public String copy(@FormParam(value="destinationId")
String destinationId,
@FormParam(value="fileName")
String newFileName)
@PUT
@Path(value="{id}/rename")
public javax.ws.rs.core.Response rename(@FormParam(value="newName")
String newName)
@PUT
@Consumes(value="application/json")
@Path(value="/{id}/hidden")
public javax.ws.rs.core.Response setItemAsHidden(Boolean hidden)
@PUT
@Consumes(value="application/json")
@Path(value="/{id}/metadata")
public javax.ws.rs.core.Response setMetadata(org.gcube.common.storagehub.model.Metadata metadata)
@DELETE
@Path(value="{id}")
public javax.ws.rs.core.Response deleteItem(@QueryParam(value="force")
boolean force)
Copyright © 2020. All Rights Reserved.