Class ACLManagerDelegate

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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
    • Constructor Detail

      • ACLManagerDelegate

        public ACLManagerDelegate()
    • 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: ACLManagerInterface
        returns the AccessType for all the users in a shared folder
        Specified by:
        get in interface ACLManagerInterface
        Throws:
        javax.jcr.RepositoryException
        org.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: ACLManagerInterface
        Set a new AccessType for a user in a shared folder or VRE folder
        Specified by:
        update in interface ACLManagerInterface
        accessType - accessType
        Throws:
        javax.jcr.RepositoryException
        org.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:
        delete in interface ACLManagerInterface
        Throws:
        javax.jcr.RepositoryException