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) getUserDirectoryImplementation
(long directoryId) boolean
isInternalUserStatusSupported
(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
-
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
-
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.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
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
-