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.
|
@NotNull SyncContext |
setForceGroupSync(boolean force)
|
@NotNull SyncContext |
setForceUserSync(boolean force)
|
@NotNull SyncContext |
setKeepMissing(boolean keep)
See
isKeepMissing() |
@NotNull SyncResult |
sync(@NotNull ExternalIdentity identity)
Synchronizes an external identity with the repository based on the respective configuration.
|
@NotNull SyncResult |
sync(@NotNull 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.@NotNull @NotNull SyncContext setKeepMissing(boolean keep)
isKeepMissing()
boolean isForceUserSync()
true
if forced syncing users@NotNull @NotNull SyncContext setForceUserSync(boolean force)
boolean isForceGroupSync()
true
if forced syncing groups@NotNull @NotNull SyncContext setForceGroupSync(boolean force)
@NotNull @NotNull SyncResult sync(@NotNull @NotNull ExternalIdentity identity) throws SyncException
identity
- the identity to sync.SyncException
- if an error occurs@NotNull @NotNull SyncResult sync(@NotNull @NotNull 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. All Rights Reserved