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(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.@Nonnull SyncContext setKeepMissing(boolean keep)
isKeepMissing()boolean isForceUserSync()
true if forced syncing users@Nonnull SyncContext setForceUserSync(boolean force)
boolean isForceGroupSync()
true if forced syncing groups@Nonnull SyncContext setForceGroupSync(boolean force)
@Nonnull SyncResult sync(@Nonnull ExternalIdentity identity) throws SyncException
identity - the identity to sync.SyncException - if an error occurs@Nonnull SyncResult sync(@Nonnull String id) throws SyncException
id - the id of the authorizableSyncException - if an error occurrsvoid close()
Root passed during the creation call. This is the responsibility of the
application.Copyright © 2012-2016 The Apache Software Foundation. All Rights Reserved.