com.atlassian.crowd.directory.ldap.cache
Class RemoteDirectoryCacheRefresher

java.lang.Object
  extended by com.atlassian.crowd.directory.ldap.cache.AbstractCacheRefresher
      extended by 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

Field Summary
 
Fields inherited from class com.atlassian.crowd.directory.ldap.cache.AbstractCacheRefresher
remoteDirectory
 
Constructor Summary
RemoteDirectoryCacheRefresher(RemoteDirectory remoteDirectory)
           
 
Method Summary
protected  List<? extends Group> synchroniseAllGroups(DirectoryCache directoryCache)
           
protected  void synchroniseAllUsers(DirectoryCache directoryCache)
           
 boolean synchroniseChanges(DirectoryCache directoryCache)
          Attempts to synchronise changes since the last refresh as opposed to performing a full synchronisation.
 
Methods inherited from class com.atlassian.crowd.directory.ldap.cache.AbstractCacheRefresher
directoryDescription, filterOutDuplicateGroups, synchroniseAll, synchroniseMemberships, synchroniseMembershipsForGroup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.crowd.directory.ldap.cache.CacheRefresher
synchroniseAll
 

Constructor Detail

RemoteDirectoryCacheRefresher

public RemoteDirectoryCacheRefresher(RemoteDirectory remoteDirectory)
Method Detail

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.