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 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.
-
Method Details
-
findTopUsersWithNameInGroups
List<UserDTO> findTopUsersWithNameInGroups(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.- 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
Finds toptopNactive users (from all active directories) where user name matchessearchName- Parameters:
searchName- part of user name (comparison is case insensitive)topN- N- Returns:
- list of
Usermatching 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
groupincluding allgroups
-