Package com.atlassian.jira.mention.stats
Class JiraCrowdDAOWithStats
java.lang.Object
com.atlassian.jira.mention.stats.JiraCrowdDAOWithStats
- All Implemented Interfaces:
JiraCrowdDAO
-
Constructor Summary
ConstructorsConstructorDescriptionJiraCrowdDAOWithStats(JiraCrowdDAO delegate, UserSearchServiceStats userSearchServiceStats) -
Method Summary
Modifier and TypeMethodDescriptionSet<com.atlassian.crowd.embedded.api.Group>findNestedGroupsOf(Set<com.atlassian.crowd.embedded.api.Group> groups) Find all nested groups for a given set ofGroupfindTopUsers(String searchName, int topN) Finds toptopNactive users (from all active directories) where user name matchessearchNamefindTopUsersWithNameInGroups(String searchName, Set<com.atlassian.crowd.embedded.api.Group> groups, int topN) Finds toptopNactive users (from all active directories) whose user name matchessearchNameand who belong to any group in:groupNames.
-
Constructor Details
-
JiraCrowdDAOWithStats
-
-
Method Details
-
findTopUsersWithNameInGroups
public List<UserDTO> findTopUsersWithNameInGroups(String searchName, Set<com.atlassian.crowd.embedded.api.Group> groups, int topN) Description copied from interface:JiraCrowdDAOFinds toptopNactive users (from all active directories) whose user name matchessearchNameand who belong to any group in:groupNames.- Specified by:
findTopUsersWithNameInGroupsin interfaceJiraCrowdDAO- Parameters:
searchName- part of user name (comparison is case insensitive)groups- set of grouptopN- N- Returns:
- list of
Usermatching requirements ordered ascending by user display name
-
findTopUsers
Description copied from interface:JiraCrowdDAOFinds toptopNactive users (from all active directories) where user name matchessearchName- Specified by:
findTopUsersin interfaceJiraCrowdDAO- Parameters:
searchName- part of user name (comparison is case insensitive)topN- N- Returns:
- list of
Usermatching requirements ordered ascending by user display name
-
findNestedGroupsOf
public Set<com.atlassian.crowd.embedded.api.Group> findNestedGroupsOf(Set<com.atlassian.crowd.embedded.api.Group> groups) Description copied from interface:JiraCrowdDAOFind all nested groups for a given set ofGroup- Specified by:
findNestedGroupsOfin interfaceJiraCrowdDAO- Returns:
- all nested groups of given
groupincluding allgroups
-