public abstract class AbstractCacheRefresher<G extends GroupWithAttributes> extends Object implements CacheRefresher
Modifier and Type | Field and Description |
---|---|
protected RemoteDirectory |
remoteDirectory |
Constructor and Description |
---|
AbstractCacheRefresher(RemoteDirectory remoteDirectory) |
Modifier and Type | Method and Description |
---|---|
protected String |
directoryDescription() |
protected Iterable<Membership> |
getMemberships(Collection<G> groups,
boolean isFullSync) |
protected boolean |
isGroupAttributeSynchronisationEnabled() |
protected boolean |
isIncrementalSyncEnabled() |
protected boolean |
isUserAttributeSynchronisationEnabled() |
CacheSynchronisationResult |
synchroniseAll(DirectoryCache directoryCache)
Will visit all Users and Groups in the external directory in order to do a Full refresh.
|
protected void |
synchroniseAllGroupAttributes(Collection<G> remoteGroups,
DirectoryCache directoryCache) |
protected abstract PartialSynchronisationResult<G> |
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 void |
synchroniseAllUserAttributes(Collection<? extends UserWithAttributes> remoteUsers,
DirectoryCache directoryCache) |
protected abstract 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).
|
protected void |
synchroniseMemberships(Collection<G> remoteGroups,
DirectoryCache directoryCache,
boolean isFullSync) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
synchroniseChanges
protected final RemoteDirectory remoteDirectory
public AbstractCacheRefresher(RemoteDirectory remoteDirectory)
public CacheSynchronisationResult synchroniseAll(DirectoryCache directoryCache) throws OperationFailedException
CacheRefresher
synchroniseAll
in interface CacheRefresher
directoryCache
- the DirectoryCache to update.OperationFailedException
- if there was an error processing the operationprotected abstract PartialSynchronisationResult<? extends UserWithAttributes> synchroniseAllUsers(DirectoryCache directoryCache) throws OperationFailedException
synchroniseAll(DirectoryCache)
if the directory
allows that.directoryCache
- the cache which this method should updateOperationFailedException
protected abstract PartialSynchronisationResult<G> synchroniseAllGroups(DirectoryCache directoryCache) throws OperationFailedException
synchroniseAll(DirectoryCache)
if the directory
allows that.directoryCache
- the cache which this method should updateOperationFailedException
protected Iterable<Membership> getMemberships(Collection<G> groups, boolean isFullSync) throws OperationFailedException
OperationFailedException
protected boolean isUserAttributeSynchronisationEnabled()
protected boolean isGroupAttributeSynchronisationEnabled()
protected void synchroniseAllUserAttributes(Collection<? extends UserWithAttributes> remoteUsers, DirectoryCache directoryCache) throws OperationFailedException
OperationFailedException
protected void synchroniseAllGroupAttributes(Collection<G> remoteGroups, DirectoryCache directoryCache) throws OperationFailedException
OperationFailedException
protected void synchroniseMemberships(Collection<G> remoteGroups, DirectoryCache directoryCache, boolean isFullSync) throws OperationFailedException
OperationFailedException
protected boolean isIncrementalSyncEnabled()
protected String directoryDescription()
Copyright © 2021 Atlassian. All rights reserved.