public interface ACLManagerInterface
| Modifier and Type | Method and Description |
|---|---|
void |
delete(String targetUser,
org.gcube.common.storagehub.model.items.SharedFolder folder,
javax.jcr.Session session) |
List<org.gcube.common.storagehub.model.acls.ACL> |
get(org.gcube.common.storagehub.model.items.Item item,
javax.jcr.Session session)
returns the AccessType for all the users in a shared folder
|
void |
update(String targetUser,
org.gcube.common.storagehub.model.items.SharedFolder folder,
org.gcube.common.storagehub.model.acls.AccessType accessType,
javax.jcr.Session session)
Set a new AccessType for a user in a shared folder or VRE folder
|
List<org.gcube.common.storagehub.model.acls.ACL> get(org.gcube.common.storagehub.model.items.Item item, javax.jcr.Session session) throws javax.jcr.RepositoryException, org.gcube.common.storagehub.model.exceptions.BackendGenericError
{@link - RepositoryException} when a generic jcr error occurs{@link - UserNotAuthorizedException} when the caller is not authorized to access to the shared folderjavax.jcr.RepositoryExceptionorg.gcube.common.storagehub.model.exceptions.BackendGenericErrorvoid update(String targetUser, org.gcube.common.storagehub.model.items.SharedFolder folder, org.gcube.common.storagehub.model.acls.AccessType accessType, javax.jcr.Session session) throws javax.jcr.RepositoryException, org.gcube.common.storagehub.model.exceptions.StorageHubException
String - useraccessType - accessType{@link - RepositoryException} when a generic jcr error occurs{@link - UserNotAuthorizedException} when the caller is not ADMINISTRATOR of the shared folder{@link - InvalidCallParameters} when the folder is not shared with the specified user{@link - InvalidItemException} when the folder is not sharejavax.jcr.RepositoryExceptionorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionvoid delete(String targetUser, org.gcube.common.storagehub.model.items.SharedFolder folder, javax.jcr.Session session) throws javax.jcr.RepositoryException, org.gcube.common.storagehub.model.exceptions.StorageHubException
javax.jcr.RepositoryExceptionorg.gcube.common.storagehub.model.exceptions.StorageHubExceptionCopyright © 2021. All Rights Reserved.