Interface CrowdUserDirectoryHelper
- All Known Implementing Classes:
DefaultCrowdUserDirectoryHelper
public interface CrowdUserDirectoryHelper
Helper class for accessing information about Crowd user directories
- Since:
- 6.12.0
-
Method Summary
Modifier and TypeMethodDescriptionList<com.atlassian.crowd.embedded.api.Directory> getDirectoriesForGroup(com.atlassian.user.Group group) List<com.atlassian.crowd.embedded.api.Directory> getDirectoriesForGroup(String groupName) a list of all user directories (including disabled) to which a given group belongsList<com.atlassian.crowd.embedded.api.Directory> getDirectoriesForUser(com.atlassian.user.User user) List<com.atlassian.crowd.embedded.api.Directory> getDirectoriesForUser(String username) getGroupCount(long directoryId) getMembershipCount(long directoryId) Optional<com.atlassian.crowd.manager.directory.SynchronisationMode> getSynchronisationMode(long directoryId) getUserCount(long directoryId) booleanisInternalUserStatusSupported(long directoryId) boolean
-
Method Details
-
getSynchronisationMode
Optional<com.atlassian.crowd.manager.directory.SynchronisationMode> getSynchronisationMode(long directoryId) - Returns:
- the synchronisation mode of the directory, if supported
-
getUserCount
- Returns:
- the total number of users in a given user directory, if retrievable
-
getGroupCount
- Returns:
- the total number of groups in a given user directory, if retrievable
-
getMembershipCount
- 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
- Parameters:
username- the username of the user- Returns:
- a list of all user directories (including disabled) to which a given user belongs
- Since:
- 9.2.6
-
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.2.6
-
getDirectoriesForGroup
a list of all user directories (including disabled) to which a given group belongs- Parameters:
groupName- the name of the group- Since:
- 9.2.6
-
isMembershipAggregationEnabled
boolean isMembershipAggregationEnabled()- Returns:
trueif membership aggregation is enabled,falseotherwise- Since:
- 9.2.6
-
isInternalUserStatusSupported
boolean isInternalUserStatusSupported(long directoryId) - Returns:
trueif directory supports internal user status,falseotherwise
-