com.atlassian.crowd.directory.ldap.cache
Class RemoteDirectoryCacheRefresher
java.lang.Object
com.atlassian.crowd.directory.ldap.cache.AbstractCacheRefresher
com.atlassian.crowd.directory.ldap.cache.RemoteDirectoryCacheRefresher
- All Implemented Interfaces:
- CacheRefresher
public class RemoteDirectoryCacheRefresher
- extends AbstractCacheRefresher
- implements CacheRefresher
A simple implementation of CacheRefresher that will only do "Full Refresh".
This is used for all LDAP servers other than AD.
- Since:
- v2.1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RemoteDirectoryCacheRefresher
public RemoteDirectoryCacheRefresher(RemoteDirectory remoteDirectory)
synchroniseChanges
public boolean synchroniseChanges(DirectoryCache directoryCache)
throws OperationFailedException
- Description copied from interface:
CacheRefresher
- Attempts to synchronise changes since the last refresh as opposed to performing a full synchronisation.
Returns true if changes since the last refresh were synchronised successfully.
- Specified by:
synchroniseChanges
in interface CacheRefresher
- Parameters:
directoryCache
- the DirectoryCache to update.
- Returns:
- true if changes were synchronised
- Throws:
OperationFailedException
- if there was an error processing the operation
synchroniseAllUsers
protected void synchroniseAllUsers(DirectoryCache directoryCache)
throws OperationFailedException
- Specified by:
synchroniseAllUsers
in class AbstractCacheRefresher
- Throws:
OperationFailedException
synchroniseAllGroups
protected List<? extends Group> synchroniseAllGroups(DirectoryCache directoryCache)
throws OperationFailedException
- Specified by:
synchroniseAllGroups
in class AbstractCacheRefresher
- Throws:
OperationFailedException
Copyright © 2012 Atlassian. All Rights Reserved.