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.
|
protected Set<String> |
getAttributesToDelete(Attributes newAttributes,
Attributes oldAttributes) |
protected Map<String,Set<String>> |
getAttributesToStore(Attributes newAttributes,
Attributes oldAttributes) |
protected String |
getCqlUserFilter() |
protected boolean |
isIncrementalSyncEnabled() |
void |
synchroniseAll(DirectoryCache directoryCache)
Will visit all Users and Groups in the external directory in order to do a Full refresh.
|
protected void |
synchroniseAllGroupAttributes(List<? extends Group> remoteGroups,
DirectoryCache directoryCache) |
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, waitsynchroniseChangesprotected 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
CacheRefreshersynchroniseAll in interface CacheRefresherdirectoryCache - the DirectoryCache to update.OperationFailedException - if there was an error processing the operationprotected abstract void synchroniseAllUsers(DirectoryCache directoryCache) throws OperationFailedException
OperationFailedExceptionprotected abstract List<? extends Group> synchroniseAllGroups(DirectoryCache directoryCache) throws OperationFailedException
OperationFailedExceptionprotected void synchroniseAllGroupAttributes(List<? extends Group> remoteGroups, DirectoryCache directoryCache) throws OperationFailedException
OperationFailedExceptionprotected Set<String> getAttributesToDelete(Attributes newAttributes, Attributes oldAttributes)
protected Map<String,Set<String>> getAttributesToStore(Attributes newAttributes, Attributes oldAttributes)
protected void synchroniseMemberships(List<? extends Group> remoteGroups, DirectoryCache directoryCache) throws OperationFailedException
OperationFailedExceptionprotected boolean isIncrementalSyncEnabled()
protected String directoryDescription()
Copyright © 2016 Atlassian. All Rights Reserved.