FullSyncIdentityConnector

public class FullSyncIdentityConnector extends Object
implements IdentityConnector

Connector implementation which periodically sync all users and groups with Google

Public Constructor Summary

FullSyncIdentityConnector(Repository identityRepository, IdentityStateLoader identityStateLoader)

Public Method Summary

void
destroy()
Shuts down and releases connector resources.
void
init(IdentityConnectorContext context)
Initializes the connector with the current context.
void
saveCheckpoint(boolean isShutdown)
Saves checkpoint information such as current traversal position or incremental change tokens.
void
traverse()
Implements a connector-specific traversal strategy.

Inherited Method Summary

Public Constructors

public FullSyncIdentityConnector (Repository identityRepository)

Parameters
identityRepository

public FullSyncIdentityConnector (Repository identityRepository, IdentityStateLoader identityStateLoader)

Parameters
identityRepository
identityStateLoader

Public Methods

public void destroy ()

Shuts down and releases connector resources.

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 ()

Implements a connector-specific traversal strategy.

This method may take a while and implementations may want to call sleep(long) occasionally to reduce load.

If fatal errors occur, throw an IOException or RuntimeException. In the case of an error, the ExceptionHandler defined in ConnectorContext determines if and when to retry.

Throws
IOException
InterruptedException

Send feedback about...

Cloud Search
Cloud Search