public class

CountUsersInGroupQueryCallback

extends Object
implements QueryCallback<T>
java.lang.Object
   ↳ com.atlassian.jira.security.groups.CountUsersInGroupQueryCallback

Class Overview

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.

Summary

Public Constructors
CountUsersInGroupQueryCallback(Long directoryId, Collection<Long> higherPriorityDirectoryIds, Collection<String> groupNames, DatabaseConfig dbConfig)
Constructor
Public Methods
Long runQuery(DbConnection dbConnection)
Run the query
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.database.QueryCallback

Public Constructors

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

Public Methods

public Long runQuery (DbConnection dbConnection)

Run the query

Parameters
dbConnection the database connection
Returns
  • the user count