|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.directory.loader.CachingDirectoryInstanceLoader
com.atlassian.crowd.directory.loader.DbCachingRemoteDirectoryInstanceLoaderImpl
public class DbCachingRemoteDirectoryInstanceLoaderImpl
Loader that allows for proxying of a remote directory through a local cache/mirror. To enable proxying for a remote directory you should not expose its loader directly to the Crowd service, but instead delegate through this loader.
| Constructor Summary | |
|---|---|
DbCachingRemoteDirectoryInstanceLoaderImpl(DirectoryInstanceLoader remoteDirectoryInstanceLoader,
InternalDirectoryInstanceLoader internalDirectoryInstanceLoader,
DirectoryMonitorManager directoryMonitorManager,
com.atlassian.event.api.EventPublisher eventPublisher)
Spring-friendly constructor. |
|
DbCachingRemoteDirectoryInstanceLoaderImpl(LDAPDirectoryInstanceLoader ldapDirectoryInstanceLoader,
RemoteCrowdDirectoryInstanceLoader remoteCrowdDirectoryInstanceLoader,
InternalDirectoryInstanceLoader internalDirectoryInstanceLoader,
DirectoryMonitorManager directoryMonitorManager,
com.atlassian.event.api.EventPublisher eventPublisher)
Pico-friendly constructor. |
|
| Method Summary | |
|---|---|
boolean |
canLoad(java.lang.String className)
|
protected RemoteDirectory |
getNewDirectory(Directory directory)
Always returns a new instance of a RemoteDirectory. |
RemoteDirectory |
getRawDirectory(java.lang.Long id,
java.lang.String className,
java.util.Map<java.lang.String,java.lang.String> attributes)
This method will NOT wire up the internal backed directory. |
| Methods inherited from class com.atlassian.crowd.directory.loader.CachingDirectoryInstanceLoader |
|---|
getDirectory, getEventPublisher, handleEvent, handleEvent, handleEvent |
| 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.loader.DirectoryInstanceLoader |
|---|
getDirectory |
| Constructor Detail |
|---|
public DbCachingRemoteDirectoryInstanceLoaderImpl(DirectoryInstanceLoader remoteDirectoryInstanceLoader,
InternalDirectoryInstanceLoader internalDirectoryInstanceLoader,
DirectoryMonitorManager directoryMonitorManager,
com.atlassian.event.api.EventPublisher eventPublisher)
remoteDirectoryInstanceLoader - the remote directory instance loader.internalDirectoryInstanceLoader - the internal directory in which to do the cachingdirectoryMonitorManager - system directory monitor managereventPublisher - system event publisher
public DbCachingRemoteDirectoryInstanceLoaderImpl(LDAPDirectoryInstanceLoader ldapDirectoryInstanceLoader,
RemoteCrowdDirectoryInstanceLoader remoteCrowdDirectoryInstanceLoader,
InternalDirectoryInstanceLoader internalDirectoryInstanceLoader,
DirectoryMonitorManager directoryMonitorManager,
com.atlassian.event.api.EventPublisher eventPublisher)
ldapDirectoryInstanceLoader - the delegate LDAP directory loaderremoteCrowdDirectoryInstanceLoader - the delegate remote Crowd directory loaderinternalDirectoryInstanceLoader - the internal directory in which to do the cachingdirectoryMonitorManager - system directory monitor managereventPublisher - system event publisher| Method Detail |
|---|
protected RemoteDirectory getNewDirectory(Directory directory)
throws DirectoryInstantiationException
getNewDirectory in class CachingDirectoryInstanceLoaderdirectory - directory configuration
DirectoryInstantiationException - if the directory could not be instantiated.
public RemoteDirectory getRawDirectory(java.lang.Long id,
java.lang.String className,
java.util.Map<java.lang.String,java.lang.String> attributes)
throws DirectoryInstantiationException
getRawDirectory in interface DirectoryInstanceLoaderid - Directory IDclassName - class name of directory.attributes - the configuration attributes to pass to the RemoteDirectory
DirectoryInstantiationExceptionpublic boolean canLoad(java.lang.String className)
canLoad in interface DirectoryInstanceLoaderclassName - class name of directory.
true iff the directory can load the directory of the specified class.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||