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

java.lang.Object
  extended by com.atlassian.crowd.directory.ldap.cache.AbstractCacheRefresher
All Implemented Interfaces:
CacheRefresher
Direct Known Subclasses:
RemoteDirectoryCacheRefresher, UsnChangedCacheRefresher

public abstract class AbstractCacheRefresher
extends java.lang.Object
implements CacheRefresher

Since:
v2.1

Field Summary
protected  RemoteDirectory remoteDirectory
           
 
Constructor Summary
AbstractCacheRefresher(RemoteDirectory remoteDirectory)
           
 
Method Summary
protected  java.lang.String directoryDescription()
           
 void synchroniseAll(DirectoryCache directoryCache)
          Will visit all Users and Groups in the external directory in order to do a Full refresh.
protected abstract  java.util.List<? extends Group> synchroniseAllGroups(GroupType legacyRole, DirectoryCache directoryCache)
           
protected abstract  void synchroniseAllUsers(DirectoryCache directoryCache)
           
protected  void synchroniseMemberships(GroupType groupType, java.util.List<? extends Group> remoteGroups, DirectoryCache directoryCache)
           
protected  void synchroniseMembershipsForGroup(GroupType groupType, Group ldapGroup, DirectoryCache directoryCache)
           
 
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
canSynchroniseChanges, synchroniseChanges
 

Field Detail

remoteDirectory

protected final RemoteDirectory remoteDirectory
Constructor Detail

AbstractCacheRefresher

public AbstractCacheRefresher(RemoteDirectory remoteDirectory)
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
Parameters:
directoryCache - the DirectoryCache to update.
Throws:
OperationFailedException - if there was an error processing the operation

synchroniseAllUsers

protected abstract void synchroniseAllUsers(DirectoryCache directoryCache)
                                     throws OperationFailedException
Throws:
OperationFailedException

synchroniseAllGroups

protected abstract java.util.List<? extends Group> synchroniseAllGroups(GroupType legacyRole,
                                                                        DirectoryCache directoryCache)
                                                                 throws OperationFailedException
Throws:
OperationFailedException

synchroniseMemberships

protected void synchroniseMemberships(GroupType groupType,
                                      java.util.List<? extends Group> remoteGroups,
                                      DirectoryCache directoryCache)
                               throws OperationFailedException
Throws:
OperationFailedException

synchroniseMembershipsForGroup

protected void synchroniseMembershipsForGroup(GroupType groupType,
                                              Group ldapGroup,
                                              DirectoryCache directoryCache)
                                       throws OperationFailedException
Throws:
OperationFailedException

directoryDescription

protected java.lang.String directoryDescription()


Copyright © 2011 Atlassian. All Rights Reserved.