java.lang.Object
com.atlassian.confluence.internal.api.impl.service.incrementalsync.utils.GroupMembershipsUtil

public final class GroupMembershipsUtil extends Object
Util methods that build MembershipQuery that can be used to get the group memberships for a specific Crowd entity
Since:
9.3.0
  • 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