Interface GroupManagerClient

    • Method Detail

      • addUserToGroup

        void addUserToGroup​(String userId,
                            String groupId)
                     throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • removeUserFromGroup

        void removeUserFromGroup​(String userId,
                                 String groupId)
                          throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • removeGroup

        void removeGroup​(String groupId)
                  throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • createGroup

        void createGroup​(String groupId,
                         org.gcube.common.storagehub.model.acls.AccessType accessType,
                         String folderOwner)
                  throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • getUsersOfGroup

        List<String> getUsersOfGroup​(String groupId)
                              throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • getGroups

        List<String> getGroups()
                        throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • addAdmin

        void addAdmin​(String groupId,
                      String userId)
               throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • removeAdmin

        void removeAdmin​(String groupId,
                         String userId)
                  throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException
      • getAdmins

        List<String> getAdmins​(String groupId)
                        throws org.gcube.common.storagehub.model.exceptions.StorageHubException
        Throws:
        org.gcube.common.storagehub.model.exceptions.StorageHubException