Class ACLManagerDelegate
- java.lang.Object
-
- org.gcube.data.access.storagehub.services.delegates.ACLManagerDelegate
-
- All Implemented Interfaces:
ACLManagerInterface
@Singleton public class ACLManagerDelegate extends Object implements ACLManagerInterface
-
-
Constructor Summary
Constructors Constructor Description ACLManagerDelegate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(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 foldervoidupdate(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
-
-
-
Method Detail
-
get
public 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
Description copied from interface:ACLManagerInterfacereturns the AccessType for all the users in a shared folder- Specified by:
getin interfaceACLManagerInterface- Throws:
javax.jcr.RepositoryExceptionorg.gcube.common.storagehub.model.exceptions.BackendGenericError
-
update
public void 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
Description copied from interface:ACLManagerInterfaceSet a new AccessType for a user in a shared folder or VRE folder- Specified by:
updatein interfaceACLManagerInterfaceaccessType- accessType- Throws:
javax.jcr.RepositoryExceptionorg.gcube.common.storagehub.model.exceptions.StorageHubException
-
delete
public void delete(String targetUser, org.gcube.common.storagehub.model.items.SharedFolder folder, javax.jcr.Session session) throws javax.jcr.RepositoryException
- Specified by:
deletein interfaceACLManagerInterface- Throws:
javax.jcr.RepositoryException
-
-