Interface CrowdUserDirectoryHelper

All Known Implementing Classes:
DefaultCrowdUserDirectoryHelper

public interface CrowdUserDirectoryHelper
Helper class for accessing information about Crowd user directories
Since:
6.12.0
  • Method Details

    • getSynchronisationMode

      Optional<com.atlassian.crowd.manager.directory.SynchronisationMode> getSynchronisationMode(long directoryId)
      Returns:
      the synchronisation mode of the directory, if supported
    • getUserDirectoryImplementation

      CrowdUserDirectoryImplementation getUserDirectoryImplementation(long directoryId)
      Returns:
      the implementation class of the directory as a CrowdUserDirectoryImplementation enum
    • getUserCount

      Optional<Integer> getUserCount(long directoryId)
      Returns:
      the total number of users in a given user directory, if retrievable
    • getGroupCount

      Optional<Integer> getGroupCount(long directoryId)
      Returns:
      the total number of groups in a given user directory, if retrievable
    • getMembershipCount

      Optional<Integer> getMembershipCount(long directoryId)
      Returns:
      the total number of memberships in a given user directory, if retrievable
    • getDirectoriesForUser

      List<com.atlassian.crowd.embedded.api.Directory> getDirectoriesForUser(com.atlassian.user.User user)
      Returns:
      a list of all user directories (including disabled) to which a given user belongs
      Since:
      6.13.0
    • getDirectoriesForUser

      List<com.atlassian.crowd.embedded.api.Directory> getDirectoriesForUser(String username)
      Parameters:
      username - the username of the user
      Returns:
      a list of all user directories (including disabled) to which a given user belongs
      Since:
      9.3.0
    • getDirectoriesForGroup

      List<com.atlassian.crowd.embedded.api.Directory> getDirectoriesForGroup(com.atlassian.user.Group group)
      Returns:
      a list of all user directories (including disabled) to which a given group belongs
      Since:
      9.3.0
    • getDirectoriesForGroup

      List<com.atlassian.crowd.embedded.api.Directory> getDirectoriesForGroup(String groupName)
      a list of all user directories (including disabled) to which a given group belongs
      Parameters:
      groupName - the name of the group
      Since:
      9.3.0
    • isMembershipAggregationEnabled

      boolean isMembershipAggregationEnabled()
      Returns:
      true if membership aggregation is enabled, false otherwise
      Since:
      9.3.0
    • isInternalUserStatusSupported

      boolean isInternalUserStatusSupported(long directoryId)
      Returns:
      true if directory supports internal user status, false otherwise