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 Type
    Method
    Description
    Set<com.atlassian.crowd.embedded.api.Group>
    findNestedGroupsOf(Set<com.atlassian.crowd.embedded.api.Group> groups)
    Find all nested groups for a given set of Group
    findTopUsers(String searchName, int topN)
    Finds top topN active users (from all active directories) where user name matches searchName
    findTopUsersWithNameInGroups(String searchName, Set<com.atlassian.crowd.embedded.api.Group> groups, int topN)
    Finds top topN active users (from all active directories) whose user name matches searchName 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 top topN active users (from all active directories) whose user name matches searchName and who belong to any group in: groupNames.
      Parameters:
      searchName - part of user name (comparison is case insensitive)
      groups - set of group
      topN - N
      Returns:
      list of User matching requirements ordered ascending by user display name
    • findTopUsers

      List<UserDTO> findTopUsers(String searchName, int topN)
      Finds top topN active users (from all active directories) where user name matches searchName
      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 of Group
      Returns:
      all nested groups of given group including all groups