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 |
|---|---|
SyncContext |
createContext(ExternalIdentityProvider idp,
org.apache.jackrabbit.api.security.user.UserManager userManager,
javax.jcr.ValueFactory valueFactory)
Initializes a sync context which is used to start the sync operations.
|
SyncedIdentity |
findIdentity(org.apache.jackrabbit.api.security.user.UserManager userManager,
String id)
Tries to find the identity with the given authorizable id or name.
|
String |
getName()
Returns the name of this sync handler.
|
Iterator<SyncedIdentity> |
listIdentities(org.apache.jackrabbit.api.security.user.UserManager userManager)
Lists all externally synced identities.
|
boolean |
requiresSync(SyncedIdentity identity)
Checks if the identity requires sync based on the configuration, type and last sync time.
|
@Nonnull SyncContext createContext(@Nonnull ExternalIdentityProvider idp, @Nonnull org.apache.jackrabbit.api.security.user.UserManager userManager, @Nonnull javax.jcr.ValueFactory valueFactory) throws SyncException
idp - the external identity provider used for syncinguserManager - user manager for managing authorizablesvalueFactory - the value factory to create valuesSyncException - if an error occurs@CheckForNull SyncedIdentity findIdentity(@Nonnull org.apache.jackrabbit.api.security.user.UserManager userManager, @Nonnull String id) throws javax.jcr.RepositoryException
userManager - the user managerid - the id or name of the authorizablenulljavax.jcr.RepositoryException - if an error occursboolean requiresSync(@Nonnull SyncedIdentity identity)
identity - the identity to checktrue if the identity requires synchronization.@Nonnull Iterator<SyncedIdentity> listIdentities(@Nonnull org.apache.jackrabbit.api.security.user.UserManager userManager) throws javax.jcr.RepositoryException
userManager - the user managerjavax.jcr.RepositoryException - if an error occursCopyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.