Interface GroupMembershipAccessor

All Known Subinterfaces:
UserAccessor, UserAccessorInternal
All Known Implementing Classes:
DefaultUserAccessor, ReadOnlyUserAccessor

@Transactional(readOnly=true) public interface GroupMembershipAccessor
Provides operations for resolving Groups.
Since:
7.17
  • Method Summary

    Modifier and Type
    Method
    Description
    com.atlassian.user.search.page.Pager<String>
    getMemberNames(com.atlassian.user.Group group)
    Returns a pager containing the usernames of users who are members of the specified group (either directly or as a member of a nested group).
    default List<String>
    getMemberNamesAsList(com.atlassian.user.Group group)
    Same as getMemberNames(Group) but returns a List of user names as Strings rather than a Pager.
  • Method Details

    • getMemberNames

      com.atlassian.user.search.page.Pager<String> getMemberNames(com.atlassian.user.Group group)
      Returns a pager containing the usernames of users who are members of the specified group (either directly or as a member of a nested group). Returns an empty pager if the group has no members or doesn't exist.
    • getMemberNamesAsList

      default List<String> getMemberNamesAsList(com.atlassian.user.Group group)
      Same as getMemberNames(Group) but returns a List of user names as Strings rather than a Pager.
      Parameters:
      group - to retrieve the member names from
      Returns:
      a list of Strings