public class DbCachingRemoteDirectoryInstanceLoader extends AbstractDirectoryInstanceLoader implements InternalHybridDirectoryInstanceLoader
| Constructor and Description |
|---|
DbCachingRemoteDirectoryInstanceLoader(DirectoryInstanceLoader remoteDirectoryInstanceLoader,
InternalDirectoryInstanceLoader internalDirectoryInstanceLoader,
DirectoryMonitorManager directoryMonitorManager,
DirectoryCacheFactory directoryCacheFactory)
Spring-friendly constructor.
|
DbCachingRemoteDirectoryInstanceLoader(LDAPDirectoryInstanceLoader ldapDirectoryInstanceLoader,
RemoteCrowdDirectoryInstanceLoader remoteCrowdDirectoryInstanceLoader,
InternalDirectoryInstanceLoader internalDirectoryInstanceLoader,
DirectoryMonitorManager directoryMonitorManager,
DirectoryCacheFactory directoryCacheFactory)
Pico-friendly constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLoad(String className) |
RemoteDirectory |
getDirectory(Directory directory)
Loads the
RemoteDirectory implementation class for a specific (already saved)
Directory configuration. |
RemoteDirectory |
getRawDirectory(Long id,
String className,
Map<String,String> attributes)
This method will NOT wire up the internal backed directory.
|
public DbCachingRemoteDirectoryInstanceLoader(DirectoryInstanceLoader remoteDirectoryInstanceLoader, InternalDirectoryInstanceLoader internalDirectoryInstanceLoader, DirectoryMonitorManager directoryMonitorManager, DirectoryCacheFactory directoryCacheFactory)
remoteDirectoryInstanceLoader - the remote directory instance loader.internalDirectoryInstanceLoader - the internal directory in which to do the cachingdirectoryMonitorManager - system directory monitor managerpublic DbCachingRemoteDirectoryInstanceLoader(LDAPDirectoryInstanceLoader ldapDirectoryInstanceLoader, RemoteCrowdDirectoryInstanceLoader remoteCrowdDirectoryInstanceLoader, InternalDirectoryInstanceLoader internalDirectoryInstanceLoader, DirectoryMonitorManager directoryMonitorManager, DirectoryCacheFactory directoryCacheFactory)
ldapDirectoryInstanceLoader - the delegate LDAP directory loaderremoteCrowdDirectoryInstanceLoader - the delegate remote Crowd directory loaderinternalDirectoryInstanceLoader - the internal directory in which to do the cachingdirectoryMonitorManager - system directory monitor managerpublic RemoteDirectory getDirectory(Directory directory) throws DirectoryInstantiationException
RemoteDirectory implementation class for a specific (already saved)
Directory configuration.
Implementations of this method may choose to cache the RemoteDirectory, so this must only be called for Directories that have been successfully saved.
getDirectory in interface DirectoryInstanceLoadergetDirectory in class AbstractDirectoryInstanceLoaderdirectory - The directory to load the RemoteDirectory implementation from.RemoteDirectory loaded implementation.DirectoryInstantiationException - If the RemoteDirectory implementation could not be loaded.public RemoteDirectory getRawDirectory(Long id, String className, Map<String,String> attributes) throws DirectoryInstantiationException
So no local groups or custom attributes.
getRawDirectory in interface DirectoryInstanceLoaderid - Directory IDclassName - class name of directory.attributes - the configuration attributes to pass to the RemoteDirectoryDirectoryInstantiationException - if a RemoteDirectory implementation can not be loaded.public boolean canLoad(String className)
canLoad in interface DirectoryInstanceLoaderclassName - class name of directory.true iff the directory can load the directory of the specified class.Copyright © 2016 Atlassian. All rights reserved.