Interface JiraCrowdDAO
- All Known Implementing Classes:
JiraCrowdDAOWithStats
,QueryDslJiraCrowdDAO
public interface JiraCrowdDAO
DAO (find*) methods on the cwd_* tables with efficient queries bypassing the crowd abstraction layer
-
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 ofGroup
findTopUsers
(String searchName, int topN) Finds toptopN
active users (from all active directories) where user name matchessearchName
findTopUsersWithNameInGroups
(String searchName, Set<com.atlassian.crowd.embedded.api.Group> groups, int topN) Finds toptopN
active users (from all active directories) whose user name matchessearchName
and who belong to any group in:groupNames
.
-
Method Details
-
findTopUsersWithNameInGroups
List<UserDTO> findTopUsersWithNameInGroups(String searchName, Set<com.atlassian.crowd.embedded.api.Group> groups, int topN) Finds toptopN
active users (from all active directories) whose user name matchessearchName
and who belong to any group in:groupNames
.- Parameters:
searchName
- part of user name (comparison is case insensitive)groups
- set of grouptopN
- N- Returns:
- list of
User
matching requirements ordered ascending by user display name
-
findTopUsers
Finds toptopN
active users (from all active directories) where user name matchessearchName
- Parameters:
searchName
- part of user name (comparison is case insensitive)topN
- N- Returns:
- list of
User
matching requirements ordered ascending by user display name
-
findNestedGroupsOf
Set<com.atlassian.crowd.embedded.api.Group> findNestedGroupsOf(Set<com.atlassian.crowd.embedded.api.Group> groups) Find all nested groups for a given set ofGroup
- Returns:
- all nested groups of given
group
including allgroups
-