Class CountUsersInGroupQueryCallback

java.lang.Object
com.atlassian.jira.security.groups.CountUsersInGroupQueryCallback
All Implemented Interfaces:
QueryCallback<Long>

public class CountUsersInGroupQueryCallback extends Object implements QueryCallback<Long>
A query-callback that counts users in a (set of) groups within a directory. Usually the set of groups will be a single group or a set of nested groups. All the rules of Crowd groups are followed, including directory shadowing; nested groups per directory; inactive users ignored.
  • Constructor Details

    • CountUsersInGroupQueryCallback

      public CountUsersInGroupQueryCallback(Long directoryId, Collection<Long> higherPriorityDirectoryIds, Collection<String> groupNames, DatabaseConfig dbConfig)
      Constructor
      Parameters:
      directoryId - the directory ID to count within
      higherPriorityDirectoryIds - higher-priority directory IDs, used to filter out shadowed users
      groupNames - the expanded list of nested group names
      dbConfig - database config
  • Method Details

    • runQuery

      public Long runQuery(DbConnection dbConnection)
      Run the query
      Specified by:
      runQuery in interface QueryCallback<Long>
      Parameters:
      dbConnection - the database connection
      Returns:
      the user count