Class DirectoryDefaultGroupMembershipResolver
java.lang.Object
com.atlassian.crowd.core.event.listener.DirectoryDefaultGroupMembershipResolver
- All Implemented Interfaces:
DefaultGroupMembershipResolver
public class DirectoryDefaultGroupMembershipResolver
extends Object
implements DefaultGroupMembershipResolver
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDefaultGroupNames(Application application, Directory directory, UserWithAttributes user) Returns the default group memberships to which the user authenticating to the specified application should be added to.voidonDefaultGroupsAdded(Application application, Directory directory, UserWithAttributes user) The callback that should be called after adding the user to all the default groups returned from this DefaultGroupMembershipResolver
-
Field Details
-
AUTO_GROUPS_ADDED
- See Also:
-
-
Constructor Details
-
DirectoryDefaultGroupMembershipResolver
-
-
Method Details
-
getDefaultGroupNames
public Collection<String> getDefaultGroupNames(Application application, Directory directory, UserWithAttributes user) Description copied from interface:DefaultGroupMembershipResolverReturns the default group memberships to which the user authenticating to the specified application should be added to.- Specified by:
getDefaultGroupNamesin interfaceDefaultGroupMembershipResolver- Parameters:
application- the application which user authenticates againstdirectory- the user's directoryuser- the user- Returns:
- a collection of group names
-
onDefaultGroupsAdded
public void onDefaultGroupsAdded(Application application, Directory directory, UserWithAttributes user) throws OperationFailedException Description copied from interface:DefaultGroupMembershipResolverThe callback that should be called after adding the user to all the default groups returned from this DefaultGroupMembershipResolver- Specified by:
onDefaultGroupsAddedin interfaceDefaultGroupMembershipResolver- Parameters:
application- the application user authenticated againstdirectory- the user's directoryuser- the user- Throws:
OperationFailedException
-