Package com.atlassian.confluence.user
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 TypeMethodDescriptioncom.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).getMemberNamesAsList(com.atlassian.user.Group group) Same asgetMemberNames(Group)but returns a List of user names asStrings rather than a Pager.
-
Method Details
-
getMemberNames
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
Same asgetMemberNames(Group)but returns a List of user names asStrings rather than a Pager.- Parameters:
group- to retrieve the member names from- Returns:
- a list of
Strings
-