Class ApplicationDefaultGroupMembershipResolver
java.lang.Object
com.atlassian.crowd.core.event.listener.ApplicationDefaultGroupMembershipResolver
- All Implemented Interfaces:
DefaultGroupMembershipResolver
public class ApplicationDefaultGroupMembershipResolver
extends Object
implements DefaultGroupMembershipResolver
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationDefaultGroupMembershipResolver(DefaultGroupMembershipService defaultGroupMembershipService, DirectoryManager directoryManager) -
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
-
Constructor Details
-
ApplicationDefaultGroupMembershipResolver
public ApplicationDefaultGroupMembershipResolver(DefaultGroupMembershipService defaultGroupMembershipService, DirectoryManager directoryManager)
-
-
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
-