diff --git a/pom.xml b/pom.xml index 4b5be37..20081b7 100644 --- a/pom.xml +++ b/pom.xml @@ -116,16 +116,5 @@ test - - - - - maven-compiler-plugin - - 1.8 - 1.8 - - - - + \ No newline at end of file diff --git a/src/main/java/org/gcube/common/storagehub/client/dsl/FolderContainer.java b/src/main/java/org/gcube/common/storagehub/client/dsl/FolderContainer.java index 50e1b7d..5c45266 100644 --- a/src/main/java/org/gcube/common/storagehub/client/dsl/FolderContainer.java +++ b/src/main/java/org/gcube/common/storagehub/client/dsl/FolderContainer.java @@ -175,7 +175,7 @@ public class FolderContainer extends ItemContainer{ * @throws {@InvalidItemException} * @throws {@UserNotAuthorizedException} if user is not authorized to write in this folder */ - public FolderContainer newHiddenFolder(String name, String description) throws Exception { + public FolderContainer newHiddenFolder(String name, String description) throws StorageHubException { String newFolderId = itemclient.createFolder(this.itemId, name, description, true); return new FolderContainer(itemclient, newFolderId); } @@ -191,7 +191,7 @@ public class FolderContainer extends ItemContainer{ * @throws {@InvalidItemException} * @throws {@UserNotAuthorizedException} if user is not authorized to write in this folder */ - public GenericItemContainer newGcubeItem(GCubeItem item) throws Exception { + public GenericItemContainer newGcubeItem(GCubeItem item) throws StorageHubException { String itemId = itemclient.createGcubeItem(this.itemId, item); return new GenericItemContainer(itemclient, itemId); } @@ -203,7 +203,7 @@ public class FolderContainer extends ItemContainer{ * @return a List of {@ACL} * @throws {@StorageHubException} */ - public List getAcls() throws Exception { + public List getAcls() throws StorageHubException { return itemclient.getACL(this.itemId); } @@ -285,7 +285,7 @@ public class FolderContainer extends ItemContainer{ * @throws {@InvalidItemException} * @throws {@UserNotAuthorizedException} if user is not authorized to share this folder */ - public FolderContainer share(Set users, AccessType accessType) throws Exception { + public FolderContainer share(Set users, AccessType accessType) throws StorageHubException { itemclient.shareFolder(this.itemId, users, accessType); this.invalidateItem(); return this;