public class RemoteDirectoryCacheRefresher extends AbstractCacheRefresher implements CacheRefresher
remoteDirectory
Constructor and Description |
---|
RemoteDirectoryCacheRefresher(RemoteDirectory remoteDirectory) |
Modifier and Type | Method and Description |
---|---|
protected List<GroupWithAttributes> |
findAllRemoteGroups(boolean withAttributes) |
protected List<UserWithAttributes> |
findAllRemoteUsers(boolean withAttributes) |
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 syncToken)
Attempts to synchronise changes since the last refresh as opposed to performing a full synchronisation.
|
directoryDescription, getMemberships, isGroupAttributeSynchronisationEnabled, isIncrementalSyncEnabled, isUserAttributeSynchronisationEnabled, synchroniseAll, synchroniseAllGroupAttributes, synchroniseAllUserAttributes, synchroniseMemberships
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
synchroniseAll
public RemoteDirectoryCacheRefresher(RemoteDirectory remoteDirectory)
public CacheSynchronisationResult synchroniseChanges(DirectoryCache directoryCache, String syncToken) throws OperationFailedException
CacheRefresher
synchroniseChanges
in interface CacheRefresher
directoryCache
- the DirectoryCache to update.OperationFailedException
- if there was an error processing the operationprotected List<UserWithAttributes> findAllRemoteUsers(boolean withAttributes) throws OperationFailedException
OperationFailedException
protected List<GroupWithAttributes> findAllRemoteGroups(boolean withAttributes) throws OperationFailedException
OperationFailedException
protected 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 © 2021 Atlassian. All rights reserved.