Class WorkspaceManager
java.lang.Object
org.gcube.data.access.storagehub.services.Impersonable
org.gcube.data.access.storagehub.services.WorkspaceManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.gcube.common.storagehub.model.service.ItemListDeprecated.Deprecated.org.gcube.common.storagehub.model.service.ItemWrapper<org.gcube.common.storagehub.model.items.Item> org.gcube.common.storagehub.model.service.ItemListorg.gcube.common.storagehub.model.service.ItemListorg.gcube.common.storagehub.model.service.ItemListgetVreFoldersPaged(Integer start, Integer limit) org.gcube.common.storagehub.model.service.ItemWrapper<org.gcube.common.storagehub.model.items.Item> org.gcube.common.storagehub.model.service.ItemWrapper<org.gcube.common.storagehub.model.items.Item> getWorkspace(String relPath) restoreItem(String trashedItemId, String destinationFolderId) uploadVolatileFile(InputStream stream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail) Uploads a file in the volatile area returning a public linkMethods inherited from class org.gcube.data.access.storagehub.services.Impersonable
setCurrentUser
-
Constructor Details
-
WorkspaceManager
public WorkspaceManager()
-
-
Method Details
-
getWorkspace
@Path("/") @GET @Produces("application/json") public org.gcube.common.storagehub.model.service.ItemWrapper<org.gcube.common.storagehub.model.items.Item> getWorkspace(@QueryParam("relPath") String relPath) -
uploadVolatileFile
@POST @Consumes("multipart/form-data") @Path("volatile") public String uploadVolatileFile(InputStream stream, org.glassfish.jersey.media.multipart.FormDataContentDisposition fileDetail) Uploads a file in the volatile area returning a public link- Parameters:
stream-fileDetail-id-name-description-- Returns:
-
getVreRootFolder
@Path("vrefolder") @GET @Produces("application/json") public org.gcube.common.storagehub.model.service.ItemWrapper<org.gcube.common.storagehub.model.items.Item> getVreRootFolder() -
getVreFolderRecentsDocument
@Path("vrefolder/recents") @GET @Produces("application/json") public org.gcube.common.storagehub.model.service.ItemList getVreFolderRecentsDocument() -
getTrashRootFolder
@Path("trash") @GET @Produces("application/json") public org.gcube.common.storagehub.model.service.ItemWrapper<org.gcube.common.storagehub.model.items.Item> getTrashRootFolder() -
emptyTrash
-
restoreItem
-
getVreFolders
@Path("vrefolders") @GET @Produces("application/json") public org.gcube.common.storagehub.model.service.ItemList getVreFolders() -
getVreFoldersPaged
-
getTotalItemsCount
Deprecated. -
getTotalVolume
Deprecated.
-