Class DefaultWorkspaceManager
java.lang.Object
org.gcube.common.storagehub.client.proxies.DefaultManagerClient
org.gcube.common.storagehub.client.proxies.DefaultWorkspaceManager
- All Implemented Interfaces:
ManagerClient,WorkspaceManagerClient
-
Field Summary
Fields inherited from class org.gcube.common.storagehub.client.proxies.DefaultManagerClient
delegate -
Constructor Summary
ConstructorsConstructorDescriptionDefaultWorkspaceManager(org.gcube.common.clients.delegates.ProxyDelegate<org.gcube.common.gxrest.request.GXWebTargetAdapterRequest> delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoidList<? extends org.gcube.common.storagehub.model.items.Item>longlong<T extends org.gcube.common.storagehub.model.items.Item>
TgetTrashFolder(String... excludeNodes) <T extends org.gcube.common.storagehub.model.items.Item>
TgetVreFolder(String... excludeNodes) List<? extends org.gcube.common.storagehub.model.items.Item>getVreFolders(int start, int limit, String... excludeNodes) List<? extends org.gcube.common.storagehub.model.items.Item>getVreFolders(String... excludeNodes) <T extends org.gcube.common.storagehub.model.items.Item>
TgetWorkspace(String... excludeNodes) restoreFromTrash(String trashedItemid, String destinationFolderId) List<? extends org.gcube.common.storagehub.model.items.Item>search(org.gcube.common.storagehub.model.query.Query<org.gcube.common.storagehub.model.expressions.SearchableItem<?>> query, String... excludeNodes) uploadFileToVolatile(File file) uploadFileToVolatile(InputStream stream, String fileName) uploadFileToVolatile(InputStream stream, String fileName, long contentLength) Methods inherited from class org.gcube.common.storagehub.client.proxies.DefaultManagerClient
impersonate, initQueryParameters, registerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gcube.common.storagehub.client.proxies.ManagerClient
impersonate, register
-
Constructor Details
-
DefaultWorkspaceManager
public DefaultWorkspaceManager(org.gcube.common.clients.delegates.ProxyDelegate<org.gcube.common.gxrest.request.GXWebTargetAdapterRequest> delegate)
-
-
Method Details
-
getWorkspace
public <T extends org.gcube.common.storagehub.model.items.Item> T getWorkspace(String... excludeNodes) - Specified by:
getWorkspacein interfaceWorkspaceManagerClient
-
getVreFolders
public List<? extends org.gcube.common.storagehub.model.items.Item> getVreFolders(String... excludeNodes) - Specified by:
getVreFoldersin interfaceWorkspaceManagerClient
-
getVreFolders
public List<? extends org.gcube.common.storagehub.model.items.Item> getVreFolders(int start, int limit, String... excludeNodes) - Specified by:
getVreFoldersin interfaceWorkspaceManagerClient
-
getVreFolder
public <T extends org.gcube.common.storagehub.model.items.Item> T getVreFolder(String... excludeNodes) - Specified by:
getVreFolderin interfaceWorkspaceManagerClient
-
getRecentModifiedFilePerVre
- Specified by:
getRecentModifiedFilePerVrein interfaceWorkspaceManagerClient
-
getTrashFolder
public <T extends org.gcube.common.storagehub.model.items.Item> T getTrashFolder(String... excludeNodes) - Specified by:
getTrashFolderin interfaceWorkspaceManagerClient
-
emptyTrash
public void emptyTrash() throws org.gcube.common.storagehub.model.exceptions.StorageHubException, org.gcube.common.storagehub.model.exceptions.BackendGenericError- Specified by:
emptyTrashin interfaceWorkspaceManagerClient- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubExceptionorg.gcube.common.storagehub.model.exceptions.BackendGenericError
-
restoreFromTrash
public String restoreFromTrash(String trashedItemid, String destinationFolderId) throws org.gcube.common.storagehub.model.exceptions.StorageHubException, org.gcube.common.storagehub.model.exceptions.BackendGenericError - Specified by:
restoreFromTrashin interfaceWorkspaceManagerClient- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubExceptionorg.gcube.common.storagehub.model.exceptions.BackendGenericError
-
search
public List<? extends org.gcube.common.storagehub.model.items.Item> search(org.gcube.common.storagehub.model.query.Query<org.gcube.common.storagehub.model.expressions.SearchableItem<?>> query, String... excludeNodes) - Specified by:
searchin interfaceWorkspaceManagerClient
-
getTotalItemCount
public long getTotalItemCount()- Specified by:
getTotalItemCountin interfaceWorkspaceManagerClient
-
getTotalVolume
public long getTotalVolume()- Specified by:
getTotalVolumein interfaceWorkspaceManagerClient
-
uploadFileToVolatile
public String uploadFileToVolatile(InputStream stream, String fileName, long contentLength) throws org.gcube.common.storagehub.model.exceptions.StorageHubException - Specified by:
uploadFileToVolatilein interfaceWorkspaceManagerClient- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
uploadFileToVolatile
public String uploadFileToVolatile(InputStream stream, String fileName) throws org.gcube.common.storagehub.model.exceptions.StorageHubException - Specified by:
uploadFileToVolatilein interfaceWorkspaceManagerClient- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
uploadFileToVolatile
public String uploadFileToVolatile(File file) throws org.gcube.common.storagehub.model.exceptions.StorageHubException - Specified by:
uploadFileToVolatilein interfaceWorkspaceManagerClient- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-