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,
UserManager userManager,
ValueFactory valueFactory)
Initializes a sync context which is used to start the sync operations.
|
SyncedIdentity |
findIdentity(UserManager userManager,
java.lang.String id)
Tries to find the identity with the given authorizable id or name.
|
java.lang.String |
getName()
Returns the name of this sync handler.
|
java.util.Iterator<SyncedIdentity> |
listIdentities(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.
|
java.lang.String getName()
SyncContext createContext(ExternalIdentityProvider idp, UserManager userManager, 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 occursSyncedIdentity findIdentity(UserManager userManager, java.lang.String id) throws RepositoryException
userManager
- the user managerid
- the id or name of the authorizablenull
RepositoryException
- if an error occursboolean requiresSync(SyncedIdentity identity)
identity
- the identity to checktrue
if the identity requires synchronization.java.util.Iterator<SyncedIdentity> listIdentities(UserManager userManager) throws RepositoryException
userManager
- the user managerRepositoryException
- if an error occurs"Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"