Class StorageHubClient
java.lang.Object
org.gcube.common.storagehub.client.dsl.StorageHubClient
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected GroupManagerClientprotected ItemManagerClientprotected UserManagerClientprotected WorkspaceManagerClient -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateUserAccount(String userId) voiddeleteUserAccount(String userId) voidlonglonggetVreFolderManager(String vreTitle) voidimpersonate(String user) restoreThrashItem(String trashItemId) restoreThrashItem(String trashItemId, String destinationFolderId) uploadFileOnVolatile(File file) uploadFileOnVolatile(InputStream stream, String fileName) uploadFileOnVolatile(InputStream stream, String fileName, long size) booleanuserExists(String user)
-
Field Details
-
wsClient
-
itemclient
-
groupClient
-
userClient
-
-
Constructor Details
-
StorageHubClient
public StorageHubClient() -
StorageHubClient
-
-
Method Details
-
impersonate
-
getWSRoot
-
open
public OpenResolver open(String id) throws org.gcube.common.storagehub.model.exceptions.StorageHubException - Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
openVREFolder
-
getVREFolders
-
getVreFolderManager
-
getVreFolderManager
-
openTrash
-
emptyTrash
public void emptyTrash() throws org.gcube.common.storagehub.model.exceptions.StorageHubException- Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
getTotalVolume
public long getTotalVolume() -
getTotalItemCount
public long getTotalItemCount() -
restoreThrashItem
public GenericItemContainer restoreThrashItem(String trashItemId) throws org.gcube.common.storagehub.model.exceptions.StorageHubException - Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
restoreThrashItem
public GenericItemContainer restoreThrashItem(String trashItemId, String destinationFolderId) throws org.gcube.common.storagehub.model.exceptions.StorageHubException - Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
createUserAccount
public void createUserAccount(String userId) throws org.gcube.common.storagehub.model.exceptions.StorageHubException - Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
deleteUserAccount
public void deleteUserAccount(String userId) throws org.gcube.common.storagehub.model.exceptions.StorageHubException - Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
userExists
public boolean userExists(String user) throws org.gcube.common.storagehub.model.exceptions.StorageHubException - Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
uploadFileOnVolatile
public String uploadFileOnVolatile(File file) throws org.gcube.common.storagehub.model.exceptions.StorageHubException - Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
uploadFileOnVolatile
public String uploadFileOnVolatile(InputStream stream, String fileName) throws org.gcube.common.storagehub.model.exceptions.StorageHubException - Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-
uploadFileOnVolatile
public String uploadFileOnVolatile(InputStream stream, String fileName, long size) throws org.gcube.common.storagehub.model.exceptions.StorageHubException - Throws:
org.gcube.common.storagehub.model.exceptions.StorageHubException
-