Class DefaultWorkspaceManager
- java.lang.Object
-
- org.gcube.common.storagehub.client.proxies.DefaultManagerClient
-
- org.gcube.common.storagehub.client.proxies.DefaultWorkspaceManager
-
- All Implemented Interfaces:
ManagerClient,WorkspaceManagerClient
public class DefaultWorkspaceManager extends DefaultManagerClient implements WorkspaceManagerClient
-
-
Field Summary
-
Fields inherited from class org.gcube.common.storagehub.client.proxies.DefaultManagerClient
delegate
-
-
Constructor Summary
Constructors Constructor Description DefaultWorkspaceManager(org.gcube.common.clients.delegates.ProxyDelegate<org.gcube.common.gxrest.request.GXWebTargetAdapterRequest> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidemptyTrash()List<? extends org.gcube.common.storagehub.model.items.Item>getRecentModifiedFilePerVre()longgetTotalItemCount()longgetTotalVolume()<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)StringrestoreFromTrash(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)StringuploadFileToVolatile(File file)StringuploadFileToVolatile(InputStream stream, String fileName)StringuploadFileToVolatile(InputStream stream, String fileName, long contentLength)-
Methods inherited from class org.gcube.common.storagehub.client.proxies.DefaultManagerClient
impersonate, initQueryParameters, register
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.gcube.common.storagehub.client.proxies.ManagerClient
impersonate, register
-
-
-
-
Method Detail
-
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
public List<? extends org.gcube.common.storagehub.model.items.Item> 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
-
-