public class EventTokenChangedCacheRefresher extends AbstractCacheRefresher
remoteDirectory| Constructor and Description |
|---|
EventTokenChangedCacheRefresher(RemoteCrowdDirectory crowdDirectory,
CacheRefresher fullSyncCacheRefresher) |
| Modifier and Type | Method and Description |
|---|---|
CacheSynchronisationResult |
synchroniseAll(DirectoryCache directoryCache)
Will visit all Users and Groups in the external directory in order to do a Full refresh.
|
protected PartialSynchronisationResult<? extends GroupWithAttributes> |
synchroniseAllGroups(DirectoryCache directoryCache)
This method is expected to fetch the groups to update (or all currently in the remote directory)
and update the directory cache (call the appropriate method for deleting and then the appropriate method for
updating/adding).
|
protected PartialSynchronisationResult<? extends UserWithAttributes> |
synchroniseAllUsers(DirectoryCache directoryCache)
This method is expected to fetch the users to update (or all currently in the remote directory)
and update the directory cache (call the appropriate method for deleting and then the appropriate method for
updating/adding).
|
CacheSynchronisationResult |
synchroniseChanges(DirectoryCache directoryCache,
String eventToken)
Attempts to synchronise changes since the last refresh as opposed to performing a full synchronisation.
|
directoryDescription, getMemberships, isGroupAttributeSynchronisationEnabled, isIncrementalSyncEnabled, isUserAttributeSynchronisationEnabled, synchroniseAllGroupAttributes, synchroniseAllUserAttributes, synchroniseMembershipspublic EventTokenChangedCacheRefresher(RemoteCrowdDirectory crowdDirectory, CacheRefresher fullSyncCacheRefresher)
public CacheSynchronisationResult synchroniseAll(DirectoryCache directoryCache) throws OperationFailedException
CacheRefreshersynchroniseAll in interface CacheRefreshersynchroniseAll in class AbstractCacheRefresherdirectoryCache - the DirectoryCache to update.OperationFailedException - if there was an error processing the operationpublic CacheSynchronisationResult synchroniseChanges(DirectoryCache directoryCache, @Nullable String eventToken) throws OperationFailedException
CacheRefresherdirectoryCache - the DirectoryCache to update.OperationFailedException - if there was an error processing the operationprotected PartialSynchronisationResult<? extends UserWithAttributes> synchroniseAllUsers(DirectoryCache directoryCache) throws OperationFailedException
AbstractCacheRefresherAbstractCacheRefresher.synchroniseAll(DirectoryCache) if the directory
allows that.synchroniseAllUsers in class AbstractCacheRefresherdirectoryCache - the cache which this method should updateOperationFailedExceptionprotected PartialSynchronisationResult<? extends GroupWithAttributes> synchroniseAllGroups(DirectoryCache directoryCache) throws OperationFailedException
AbstractCacheRefresherAbstractCacheRefresher.synchroniseAll(DirectoryCache) if the directory
allows that.synchroniseAllGroups in class AbstractCacheRefresherdirectoryCache - the cache which this method should updateOperationFailedExceptionCopyright © 2022 Atlassian. All rights reserved.