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 resolvingGroup
s.- Since:
- 7.17
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods 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 asgetMemberNames(Group)
but returns a List of user names asString
s rather than a Pager.
-
-
-
Method Detail
-
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 asgetMemberNames(Group)
but returns a List of user names asString
s rather than a Pager.- Parameters:
group
- to retrieve the member names from- Returns:
- a list of
String
s
-
-