public class StorageHubClientService extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ACCOUNTING_HL_NODE_NAME |
| Constructor and Description |
|---|
StorageHubClientService(String scope,
String authorizationToken)
Instantiates a new storage hub service util.
|
| Modifier and Type | Method and Description |
|---|---|
org.gcube.common.storagehub.model.items.Item |
createFolder(String parentId,
String folderName,
String folderDescription)
Creates the folder.
|
List<? extends org.gcube.common.storagehub.model.items.Item> |
findByName(String name,
String folderId)
Find by name.
|
List<? extends org.gcube.common.storagehub.model.items.Item> |
getChildren(String id)
Gets the children.
|
String |
getIdSharedFolder(String itemId)
Gets the id shared folder.
|
org.gcube.common.storagehub.model.items.Item |
getItem(String itemId)
Gets the item.
|
int |
getItemChildrenCount(String itemId)
Gets the item children count.
|
List<? extends org.gcube.common.storagehub.model.items.Item> |
getParents(String itemId)
Gets the parents.
|
org.gcube.common.storagehub.model.items.FolderItem |
getRoot()
Gets the root.
|
org.gcube.common.storagehub.model.items.FolderItem |
getRootSharedFolder(String itemId)
Gets the root shared folder.
|
List<String> |
getSharedFolderMembers(String folderId)
Gets the shared folder members.
|
org.gcube.common.storagehub.model.items.Item |
getTrash()
Gets the root.
|
String |
getUserACLForFolderId(String infrastructureName,
String userName,
String folderId)
Gets the user acl for folder id.
|
String |
getVREFoldersId()
Gets the VRE folders id.
|
String |
toString() |
org.gcube.common.storagehub.model.items.Item |
uploadFile(String folderId,
InputStream is,
String fileName,
String fileDescription)
Upload file.
|
public static final String ACCOUNTING_HL_NODE_NAME
public org.gcube.common.storagehub.model.items.FolderItem getRoot()
throws Exception
Exception - the exceptionpublic org.gcube.common.storagehub.model.items.Item getTrash()
public List<? extends org.gcube.common.storagehub.model.items.Item> getChildren(String id)
id - the idpublic org.gcube.common.storagehub.model.items.Item getItem(String itemId) throws Exception
itemId - the item idException - the exceptionpublic List<? extends org.gcube.common.storagehub.model.items.Item> getParents(String itemId)
itemId - the item idpublic String getIdSharedFolder(String itemId) throws Exception
itemId - the item idExceptionpublic org.gcube.common.storagehub.model.items.FolderItem getRootSharedFolder(String itemId) throws Exception
itemId - the item idExceptionpublic org.gcube.common.storagehub.model.items.Item createFolder(String parentId, String folderName, String folderDescription) throws Exception
parentId - the parent idfolderName - the folder namefolderDescription - the folder descriptionException - the exceptionpublic String getVREFoldersId()
public String getUserACLForFolderId(String infrastructureName, String userName, String folderId) throws Exception
infrastructureName - the infrastructure nameuserName - the user namefolderId - the folder idException - the exceptionpublic int getItemChildrenCount(String itemId)
itemId - the item idpublic org.gcube.common.storagehub.model.items.Item uploadFile(String folderId, InputStream is, String fileName, String fileDescription) throws Exception
folderId - the folder idis - the isfileName - the file namefileDescription - the file descriptionException - the exceptionpublic List<String> getSharedFolderMembers(String folderId) throws Exception
folderId - the folder idException - the exceptionpublic List<? extends org.gcube.common.storagehub.model.items.Item> findByName(String name, String folderId) throws Exception
name - the namefolderId - the folder idException - the exceptionCopyright © 2018. All Rights Reserved.