public class DbCachingRemoteDirectoryInstanceLoaderImpl extends CachingDirectoryInstanceLoader implements InternalHybridDirectoryInstanceLoader
Constructor and Description |
---|
DbCachingRemoteDirectoryInstanceLoaderImpl(DirectoryInstanceLoader remoteDirectoryInstanceLoader,
InternalDirectoryInstanceLoader internalDirectoryInstanceLoader,
DirectoryMonitorManager directoryMonitorManager,
DirectoryCacheFactory directoryCacheFactory,
com.atlassian.event.api.EventPublisher eventPublisher)
Spring-friendly constructor.
|
DbCachingRemoteDirectoryInstanceLoaderImpl(LDAPDirectoryInstanceLoader ldapDirectoryInstanceLoader,
RemoteCrowdDirectoryInstanceLoader remoteCrowdDirectoryInstanceLoader,
InternalDirectoryInstanceLoader internalDirectoryInstanceLoader,
DirectoryMonitorManager directoryMonitorManager,
DirectoryCacheFactory directoryCacheFactory,
com.atlassian.event.api.EventPublisher eventPublisher)
Pico-friendly constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canLoad(String className) |
protected RemoteDirectory |
getNewDirectory(Directory directory)
Always returns a new instance of a RemoteDirectory.
|
RemoteDirectory |
getRawDirectory(Long id,
String className,
Map<String,String> attributes)
This method will NOT wire up the internal backed directory.
|
getDirectory, getEventPublisher, handleEvent, handleEvent, handleEvent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDirectory
public DbCachingRemoteDirectoryInstanceLoaderImpl(DirectoryInstanceLoader remoteDirectoryInstanceLoader, InternalDirectoryInstanceLoader internalDirectoryInstanceLoader, DirectoryMonitorManager directoryMonitorManager, DirectoryCacheFactory directoryCacheFactory, 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 publisherpublic DbCachingRemoteDirectoryInstanceLoaderImpl(LDAPDirectoryInstanceLoader ldapDirectoryInstanceLoader, RemoteCrowdDirectoryInstanceLoader remoteCrowdDirectoryInstanceLoader, InternalDirectoryInstanceLoader internalDirectoryInstanceLoader, DirectoryMonitorManager directoryMonitorManager, DirectoryCacheFactory directoryCacheFactory, 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 publisherprotected RemoteDirectory getNewDirectory(Directory directory) throws DirectoryInstantiationException
getNewDirectory
in class CachingDirectoryInstanceLoader
directory
- directory configurationDirectoryInstantiationException
- if the directory could not be instantiated.public RemoteDirectory getRawDirectory(Long id, String className, Map<String,String> attributes) throws DirectoryInstantiationException
getRawDirectory
in interface DirectoryInstanceLoader
id
- Directory IDclassName
- class name of directory.attributes
- the configuration attributes to pass to the RemoteDirectoryDirectoryInstantiationException
public boolean canLoad(String className)
canLoad
in interface DirectoryInstanceLoader
className
- class name of directory.true
iff the directory can load the directory of the specified class.Copyright © 2013 Atlassian. All Rights Reserved.