public class LDAPDirectoryInstanceLoaderImpl extends CachingDirectoryInstanceLoader implements LDAPDirectoryInstanceLoader
RemoteDirectory
for use at runtime
by the Crowd security server.Constructor and Description |
---|
LDAPDirectoryInstanceLoaderImpl(InstanceFactory instanceFactory,
com.atlassian.event.api.EventPublisher eventPublisher) |
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)
Loads a guaranteed un-cached directory implementation for a specific configuration.
|
getDirectory, getEventPublisher, handleEvent, handleEvent, handleEvent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDirectory
public LDAPDirectoryInstanceLoaderImpl(InstanceFactory instanceFactory, com.atlassian.event.api.EventPublisher eventPublisher)
protected 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
DirectoryInstanceLoader
getRawDirectory
in interface DirectoryInstanceLoader
id
- 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 DirectoryInstanceLoader
className
- class name of directory.true
iff the directory can load the directory of the specified class.Copyright © 2013 Atlassian. All Rights Reserved.