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

java.lang.Object
  extended by com.atlassian.crowd.directory.ldap.cache.AbstractCacheRefresher
      extended by com.atlassian.crowd.directory.ldap.cache.EventTokenChangedCacheRefresher
All Implemented Interfaces:
CacheRefresher

public class EventTokenChangedCacheRefresher
extends AbstractCacheRefresher


Field Summary
 
Fields inherited from class com.atlassian.crowd.directory.ldap.cache.AbstractCacheRefresher
remoteDirectory
 
Constructor Summary
EventTokenChangedCacheRefresher(RemoteCrowdDirectory crowdDirectory)
           
 
Method Summary
 void synchroniseAll(DirectoryCache directoryCache)
          Will visit all Users and Groups in the external directory in order to do a Full refresh.
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, synchroniseMemberships
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EventTokenChangedCacheRefresher

public EventTokenChangedCacheRefresher(RemoteCrowdDirectory crowdDirectory)
Method Detail

synchroniseAll

public void synchroniseAll(DirectoryCache directoryCache)
                    throws OperationFailedException
Description copied from interface: CacheRefresher
Will visit all Users and Groups in the external directory in order to do a Full refresh.

Specified by:
synchroniseAll in interface CacheRefresher
Overrides:
synchroniseAll in class AbstractCacheRefresher
Parameters:
directoryCache - the DirectoryCache to update.
Throws:
OperationFailedException - if there was an error processing the operation

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.

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 © 2013 Atlassian. All Rights Reserved.