Interface AuthorityGroupService

    • Method Detail

      • getActiveAuthorityGroupForUser

        AuthorityGroup getActiveAuthorityGroupForUser​(java.lang.String userId)
        Returns the active authority group for a specific user.
        Parameters:
        userId - user ID
        Returns:
        the active authority group for the specified user
      • getAllAuthorityGroupsForUser

        java.util.List<AuthorityGroup> getAllAuthorityGroupsForUser​(java.lang.String userId)
        Returns a list of all authority groups for the user with the specified ID.
        Parameters:
        userId - user ID
        Returns:
        list of all the authority groups for the specified user
      • getAllAuthorityGroups

        java.util.List<AuthorityGroup> getAllAuthorityGroups()
        Returns a list of all available authority groups.
        Returns:
        list of all authority groups in the system
      • setActiveAuthorityGroupForUser

        void setActiveAuthorityGroupForUser​(AuthorityGroup authorityGroup)
        Marks the provided authority group as the active one.
        Parameters:
        authorityGroup - the authority group to be marked as being active
      • getAuthorityGroup

        AuthorityGroup getAuthorityGroup​(java.lang.String code)
        Returns the authority group with the specified code.
        Parameters:
        code - the code of the authority group to be returned
        Returns:
        the authority group with code code