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> getDirectoriesForUser
(com.atlassian.user.User user) getGroupCount
(long directoryId) getMembershipCount
(long directoryId) Optional
<com.atlassian.crowd.manager.directory.SynchronisationMode> getSynchronisationMode
(long directoryId) getUserCount
(long directoryId) getUserDirectoryImplementation
(long directoryId)
-
Method Details
-
getSynchronisationMode
Optional<com.atlassian.crowd.manager.directory.SynchronisationMode> getSynchronisationMode(long directoryId) - Returns:
- the synchronisation mode of the directory, if supported
-
getUserDirectoryImplementation
- Returns:
- the implementation class of the directory as a CrowdUserDirectoryImplementation enum
-
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
-