Interface GroupService

  • All Known Implementing Classes:
    GroupServiceImpl

    @Service
    public interface GroupService
    Connects to our group database repository.
    • Method Detail

      • getRoles

        java.util.Set<java.lang.String> getRoles​(long groupId)
                                          throws MopsException
        Gets all roles that exist in a group.
        Parameters:
        groupId - the id of the group
        Returns:
        gets all roles of that group
        Throws:
        MopsException
      • getUserGroups

        java.util.List<Group> getUserGroups​(Account account)
                                     throws MopsException
        Fetches all visible groups of one user.
        Parameters:
        account - the account the user
        Returns:
        a list of groups
        Throws:
        MopsException
      • getDefaultPermissions

        DirectoryPermissions getDefaultPermissions​(long groupId)
        Creates the default permissions.
        Parameters:
        groupId - group id
        Returns:
        default directory permissions
      • findGroupByGroupId

        java.util.Optional<Group> findGroupByGroupId​(java.util.UUID groupId)
                                              throws MopsException
        Get a group by its group uuid.
        Parameters:
        groupId - group uuid
        Returns:
        group
        Throws:
        MopsException
      • deleteGroup

        void deleteGroup​(long groupId)
                  throws MopsException
        Delete the given group.
        Parameters:
        groupId - id of the group to be deleted
        Throws:
        MopsException
      • getTotalGroupCount

        long getTotalGroupCount()
                         throws MopsException
        Get the total number of groups.
        Returns:
        group count
        Throws:
        MopsException