public interface AutoMembershipConfig
DefaultSyncConfig.Authorizable.getAutoMembership()
that allows to define conditional auto-membership based on the nature of a given Authorizable
.Modifier and Type | Field and Description |
---|---|
static AutoMembershipConfig |
EMPTY |
static java.lang.String |
PARAM_SYNC_HANDLER_NAME
Name of the configuration property that defines the name of the synchronization handler for which this instance of
AutoMembershipConfig takes effect. |
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<Authorizable> |
getAutoMembers(@NotNull UserManager userManager,
@NotNull Group group)
Best-effort attempt to retrieve all automatically defined members of the given
Group . |
@NotNull java.util.Set<java.lang.String> |
getAutoMembership(@NotNull Authorizable authorizable)
Returns the group ids which the given synchronized external user/group should automatically be added as member.
|
java.lang.String |
getName()
Returns the name of the sync handler for which this configuration takes effect.
|
static final java.lang.String PARAM_SYNC_HANDLER_NAME
AutoMembershipConfig
takes effect.AutoMembershipAware
,
Constant Field Valuesstatic final AutoMembershipConfig EMPTY
java.lang.String getName()
PARAM_SYNC_HANDLER_NAME
@NotNull @NotNull java.util.Set<java.lang.String> getAutoMembership(@NotNull @NotNull Authorizable authorizable)
authorizable
- An external identity that has been synchronized into the repository.java.util.Iterator<Authorizable> getAutoMembers(@NotNull @NotNull UserManager userManager, @NotNull @NotNull Group group)
Group
.userManager
- The user manager associated with the given group
.group
- The target group for which the known automatically added synced identities should be retrieved.DynamicMembershipProvider.getMembers(Group, boolean)
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.