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, waitsynchroniseChangesprotected final RemoteDirectory remoteDirectory
public AbstractCacheRefresher(RemoteDirectory remoteDirectory)
public CacheSynchronisationResult synchroniseAll(DirectoryCache directoryCache) throws OperationFailedException
CacheRefreshersynchroniseAll in interface CacheRefresherdirectoryCache - 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 updateOperationFailedExceptionprotected abstract PartialSynchronisationResult<G> synchroniseAllGroups(DirectoryCache directoryCache) throws OperationFailedException
synchroniseAll(DirectoryCache) if the directory
allows that.directoryCache - the cache which this method should updateOperationFailedExceptionprotected Iterable<Membership> getMemberships(Collection<G> groups, boolean isFullSync) throws OperationFailedException
OperationFailedExceptionprotected boolean isUserAttributeSynchronisationEnabled()
protected boolean isGroupAttributeSynchronisationEnabled()
protected void synchroniseAllUserAttributes(Collection<? extends UserWithAttributes> remoteUsers, DirectoryCache directoryCache) throws OperationFailedException
OperationFailedExceptionprotected void synchroniseAllGroupAttributes(Collection<G> remoteGroups, DirectoryCache directoryCache) throws OperationFailedException
OperationFailedExceptionprotected void synchroniseMemberships(Collection<G> remoteGroups, DirectoryCache directoryCache, boolean isFullSync) throws OperationFailedException
OperationFailedExceptionprotected boolean isIncrementalSyncEnabled()
protected String directoryDescription()
Copyright © 2020 Atlassian. All rights reserved.