Class CountUsersInGroupQueryCallback
java.lang.Object
com.atlassian.jira.security.groups.CountUsersInGroupQueryCallback
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionCountUsersInGroupQueryCallback(Long directoryId, Collection<Long> higherPriorityDirectoryIds, Collection<String> groupNames, DatabaseConfig dbConfig) Constructor -
Method Summary
-
Constructor Details
-
CountUsersInGroupQueryCallback
public CountUsersInGroupQueryCallback(Long directoryId, Collection<Long> higherPriorityDirectoryIds, Collection<String> groupNames, DatabaseConfig dbConfig) Constructor- Parameters:
directoryId- the directory ID to count withinhigherPriorityDirectoryIds- higher-priority directory IDs, used to filter out shadowed usersgroupNames- the expanded list of nested group namesdbConfig- database config
-
-
Method Details
-
runQuery
Run the query- Specified by:
runQueryin interfaceQueryCallback<Long>- Parameters:
dbConnection- the database connection- Returns:
- the user count
-