implements IdentityConnector
Connector implementation which periodically sync all users and groups with Google
Public Constructor Summary
FullSyncIdentityConnector(Repository identityRepository)
Creates an instance of
FullSyncIdentityConnector for syncing identities from supplied
identity Repository . |
|
FullSyncIdentityConnector(Repository identityRepository, IdentityStateLoader identityStateLoader)
Creates an instance of
FullSyncIdentityConnector for syncing identities from supplied
identity Repository . |
Public Method Summary
void |
destroy()
Releases resources and shuts down worker processes.
|
void | |
void |
saveCheckpoint(boolean isShutdown)
Saves checkpoint information such as current traversal position or incremental change tokens.
|
void |
traverse()
Traverses
IdentityUser s and IdentityGroup s from repository. |
Inherited Method Summary
Public Constructors
public FullSyncIdentityConnector (Repository identityRepository)
Creates an instance of FullSyncIdentityConnector
for syncing identities from supplied
identity Repository
.
Parameters
identityRepository | implementation for fetching users and groups from identity repository. |
---|
public FullSyncIdentityConnector (Repository identityRepository, IdentityStateLoader identityStateLoader)
Creates an instance of FullSyncIdentityConnector
for syncing identities from supplied
identity Repository
.
Parameters
identityRepository | implementation for fetching users and groups from identity repository. |
---|---|
identityStateLoader | to load previously synced identities with Google APIs. |
Public Methods
public void destroy ()
Releases resources and shuts down worker processes.
public void init (IdentityConnectorContext context)
Initializes the connector with the current context.
Initialization is the ideal time to start any threads to do extra behind-the-scenes work.
The context
allows access to other useful objects that can be used at any time such as
the IdentityService
.
If an unrecoverable fatal error occurs during initialization, throw a StartupException
to cancel the startup process. If a recoverable error occurs during
initialization, most Exception
instances other than StartupException
cause a
retry of initialization after a short delay.
Parameters
context | IdentityConnectorContext instance for accessing framework objects |
---|
Throws
Exception |
---|
public void saveCheckpoint (boolean isShutdown)
Saves checkpoint information such as current traversal position or incremental change tokens.
The checkpoint contents are implementation-specific as defined by the connector code. This method is called during shutdown to allow the connector to save the current traversal state.
Parameters
isShutdown | flag indicating a connector shutdown |
---|
Throws
IOException | |
---|---|
InterruptedException |
public void traverse ()
Traverses IdentityUser
s and IdentityGroup
s from repository.
Throws
IOException | |
---|---|
InterruptedException |