Class GroupMembershipsUtil
java.lang.Object
com.atlassian.confluence.internal.api.impl.service.incrementalsync.utils.GroupMembershipsUtil
Util methods that build
MembershipQuery
that can be used to get the group memberships for a specific Crowd entity- Since:
- 9.3.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.atlassian.crowd.search.query.membership.MembershipQuery<String>
allGroupsContainingUserQuery
(String username) Query to search for all groups which contain the user associated with the usernamestatic com.atlassian.crowd.search.query.membership.MembershipQuery<String>
allGroupsInGroupQuery
(String groupName) Query to search for all groups which belong to a group associated with the namestatic com.atlassian.crowd.search.query.membership.MembershipQuery<String>
allUsersInGroupQuery
(String groupName) Query to search for all users which belong to a group associated with the name
-
Method Details
-
allGroupsContainingUserQuery
public static com.atlassian.crowd.search.query.membership.MembershipQuery<String> allGroupsContainingUserQuery(String username) Query to search for all groups which contain the user associated with the username- Parameters:
username
- the username of the user in question- Returns:
- the
MembershipQuery
to search
-
allUsersInGroupQuery
public static com.atlassian.crowd.search.query.membership.MembershipQuery<String> allUsersInGroupQuery(String groupName) Query to search for all users which belong to a group associated with the name- Parameters:
groupName
- the name of the group in question- Returns:
- the
MembershipQuery
to search
-
allGroupsInGroupQuery
public static com.atlassian.crowd.search.query.membership.MembershipQuery<String> allGroupsInGroupQuery(String groupName) Query to search for all groups which belong to a group associated with the name- Parameters:
groupName
- the name of the group in question- Returns:
- the
MembershipQuery
to search
-