This commit is contained in:
Francesco Mangiacrapa 2018-06-29 12:16:11 +00:00
parent c99c7956d9
commit 2d61766e16
1 changed files with 20 additions and 0 deletions

View File

@ -135,6 +135,26 @@ public class StorageHubClientService {
//TODO MAP OF SHARED ROOT ID
/**
* Gets the parents.
*
* @param itemId the item id
* @return the parents
*/
public String getIdSharedFolder(String itemId) {
setContextProviders(scope, authorizationToken);
FolderContainer rootSharedFolder = shcClient.open(itemId).asItem().getRootSharedFolder();
try{
Validate.notNull(rootSharedFolder, "The root shared folder with id "+itemId+" does not exist");
return rootSharedFolder.get().getId();
}catch(Exception e){
}
return null;
}
/**
* Creates the folder.
*