public interface SyncHandler
ExternalIdentityProvider.
The synchronization performed within the scope of a SyncContext which is acquired during the
createContext(ExternalIdentityProvider, org.apache.jackrabbit.api.security.user.UserManager, javax.jcr.ValueFactory) call.
The exact configuration is managed by the sync handler instance. The system may contain several sync handler
implementations with different configurations. those are managed by the SyncManager.SyncContext,
SyncManager| Modifier and Type | Method and Description |
|---|---|
@NotNull SyncContext |
createContext(@NotNull ExternalIdentityProvider idp,
@NotNull UserManager userManager,
@NotNull ValueFactory valueFactory)
Initializes a sync context which is used to start the sync operations.
|
@Nullable SyncedIdentity |
findIdentity(@NotNull UserManager userManager,
@NotNull java.lang.String id)
Tries to find the identity with the given authorizable id or name.
|
@NotNull java.lang.String |
getName()
Returns the name of this sync handler.
|
@NotNull java.util.Iterator<SyncedIdentity> |
listIdentities(@NotNull UserManager userManager)
Lists all externally synced identities.
|
boolean |
requiresSync(@NotNull SyncedIdentity identity)
Checks if the identity requires sync based on the configuration, type and last sync time.
|
@NotNull @NotNull java.lang.String getName()
@NotNull @NotNull SyncContext createContext(@NotNull @NotNull ExternalIdentityProvider idp, @NotNull @NotNull UserManager userManager, @NotNull @NotNull ValueFactory valueFactory)
idp - the external identity provider used for syncinguserManager - user manager for managing authorizablesvalueFactory - the value factory to create values@Nullable @Nullable SyncedIdentity findIdentity(@NotNull @NotNull UserManager userManager, @NotNull @NotNull java.lang.String id) throws RepositoryException
userManager - the user managerid - the id or name of the authorizablenullRepositoryException - if an error occursboolean requiresSync(@NotNull
@NotNull SyncedIdentity identity)
identity - the identity to checktrue if the identity requires synchronization.@NotNull @NotNull java.util.Iterator<SyncedIdentity> listIdentities(@NotNull @NotNull UserManager userManager) throws RepositoryException
userManager - the user managerRepositoryException - if an error occursCopyright © 2010 - 2023 Adobe. All Rights Reserved