public interface SyncContext
SyncContext
is used as scope for sync operations. Implementations are free to associate any resources with
the sync context. The sync context must not be accessed concurrently and must be closed after use.Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this context and releases any resources bound to it.
|
boolean |
isForceGroupSync()
Defines if synchronization of groups always will perform, i.e.
|
boolean |
isForceUserSync()
Defines if synchronization of users always will perform, i.e.
|
boolean |
isKeepMissing()
Defines if synchronization keeps missing external identities on synchronization of authorizables.
|
SyncContext |
setForceGroupSync(boolean force)
|
SyncContext |
setForceUserSync(boolean force)
|
SyncContext |
setKeepMissing(boolean keep)
See
isKeepMissing() |
SyncResult |
sync(ExternalIdentity identity)
Synchronizes an external identity with the repository based on the respective configuration.
|
SyncResult |
sync(java.lang.String id)
Synchronizes an authorizable with the corresponding external identity with the repository based on the respective
configuration.
|
boolean isKeepMissing()
false
.true
if keep missing.SyncContext setKeepMissing(boolean keep)
isKeepMissing()
boolean isForceUserSync()
true
if forced syncing usersSyncContext setForceUserSync(boolean force)
boolean isForceGroupSync()
true
if forced syncing groupsSyncContext setForceGroupSync(boolean force)
SyncResult sync(ExternalIdentity identity) throws SyncException
identity
- the identity to sync.SyncException
- if an error occursSyncResult sync(java.lang.String id) throws SyncException
id
- the id of the authorizableSyncException
- if an error occursvoid close()
Root
passed during the creation call. This is the responsibility of the
application."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"