public class DirectoryDefaultGroupMembershipResolver extends Object implements DefaultGroupMembershipResolver
Modifier and Type | Field and Description |
---|---|
static String |
AUTO_GROUPS_ADDED |
Constructor and Description |
---|
DirectoryDefaultGroupMembershipResolver(DirectoryManager directoryManager) |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getDefaultGroupNames(Application application,
Directory directory,
UserWithAttributes user)
Returns the default group memberships to which the user authenticating to the specified application should be added to.
|
void |
onDefaultGroupsAdded(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
|
public static final String AUTO_GROUPS_ADDED
public DirectoryDefaultGroupMembershipResolver(DirectoryManager directoryManager)
public Collection<String> getDefaultGroupNames(Application application, Directory directory, UserWithAttributes user)
DefaultGroupMembershipResolver
getDefaultGroupNames
in interface DefaultGroupMembershipResolver
application
- the application which user authenticates againstdirectory
- the user's directoryuser
- the userpublic void onDefaultGroupsAdded(Application application, Directory directory, UserWithAttributes user) throws OperationFailedException
DefaultGroupMembershipResolver
onDefaultGroupsAdded
in interface DefaultGroupMembershipResolver
application
- the application user authenticated againstdirectory
- the user's directoryuser
- the userOperationFailedException
Copyright © 2020 Atlassian. All rights reserved.