public abstract class AbstractCacheRefresher 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 static <T extends Group> |
filterOutDuplicateGroups(List<T> remoteGroups)
Remove the duplicate groups from the passed list.
|
void |
synchroniseAll(DirectoryCache directoryCache)
Will visit all Users and Groups in the external directory in order to do a Full refresh.
|
protected abstract List<? extends Group> |
synchroniseAllGroups(DirectoryCache directoryCache) |
protected abstract void |
synchroniseAllUsers(DirectoryCache directoryCache) |
protected void |
synchroniseMemberships(List<? extends Group> remoteGroups,
DirectoryCache directoryCache) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
synchroniseChanges
protected final RemoteDirectory remoteDirectory
public AbstractCacheRefresher(RemoteDirectory remoteDirectory)
protected static <T extends Group> List<T> filterOutDuplicateGroups(List<T> remoteGroups)
T
- the type of group to filter.remoteGroups
- the groups to filter.public void 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 void synchroniseAllUsers(DirectoryCache directoryCache) throws OperationFailedException
OperationFailedException
protected abstract List<? extends Group> synchroniseAllGroups(DirectoryCache directoryCache) throws OperationFailedException
OperationFailedException
protected void synchroniseMemberships(List<? extends Group> remoteGroups, DirectoryCache directoryCache) throws OperationFailedException
OperationFailedException
protected String directoryDescription()
Copyright © 2013 Atlassian. All Rights Reserved.