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, synchroniseMemberships
public EventTokenChangedCacheRefresher(RemoteCrowdDirectory crowdDirectory, CacheRefresher fullSyncCacheRefresher)
public CacheSynchronisationResult synchroniseAll(DirectoryCache directoryCache) throws OperationFailedException
CacheRefresher
synchroniseAll
in interface CacheRefresher
synchroniseAll
in class AbstractCacheRefresher
directoryCache
- the DirectoryCache to update.OperationFailedException
- if there was an error processing the operationpublic CacheSynchronisationResult synchroniseChanges(DirectoryCache directoryCache, @Nullable String eventToken) throws OperationFailedException
CacheRefresher
directoryCache
- the DirectoryCache to update.OperationFailedException
- if there was an error processing the operationprotected PartialSynchronisationResult<? extends UserWithAttributes> synchroniseAllUsers(DirectoryCache directoryCache) throws OperationFailedException
AbstractCacheRefresher
AbstractCacheRefresher.synchroniseAll(DirectoryCache)
if the directory
allows that.synchroniseAllUsers
in class AbstractCacheRefresher
directoryCache
- the cache which this method should updateOperationFailedException
protected PartialSynchronisationResult<? extends GroupWithAttributes> synchroniseAllGroups(DirectoryCache directoryCache) throws OperationFailedException
AbstractCacheRefresher
AbstractCacheRefresher.synchroniseAll(DirectoryCache)
if the directory
allows that.synchroniseAllGroups
in class AbstractCacheRefresher
directoryCache
- the cache which this method should updateOperationFailedException
Copyright © 2020 Atlassian. All rights reserved.