|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.crowd.directory.loader.DelegatingDirectoryInstanceLoader
public class DelegatingDirectoryInstanceLoader
Iterative directory instance loader.
Constructor Summary | |
---|---|
DelegatingDirectoryInstanceLoader(InternalDirectoryInstanceLoader internalDirectoryInstanceLoader,
InternalHybridDirectoryInstanceLoader ldapInternalHybridDirectoryInstanceLoader)
Pico-friendly constructor. |
|
DelegatingDirectoryInstanceLoader(InternalDirectoryInstanceLoader internalDirectoryInstanceLoader,
InternalHybridDirectoryInstanceLoader ldapInternalHybridDirectoryInstanceLoader,
DelegatedAuthenticationDirectoryInstanceLoader delegatedAuthenticationDirectoryInstanceLoader)
Pico-friendly constructor. |
|
DelegatingDirectoryInstanceLoader(List<DirectoryInstanceLoader> loaders)
Creates a new instance of DelegatingDirectoryInstanceLoader. |
Method Summary | |
---|---|
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)
Loads a guaranteed un-cached directory implementation for a specific configuration. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DelegatingDirectoryInstanceLoader(List<DirectoryInstanceLoader> loaders)
loaders
- list of delegate directory instance loaders.public DelegatingDirectoryInstanceLoader(InternalDirectoryInstanceLoader internalDirectoryInstanceLoader, InternalHybridDirectoryInstanceLoader ldapInternalHybridDirectoryInstanceLoader, DelegatedAuthenticationDirectoryInstanceLoader delegatedAuthenticationDirectoryInstanceLoader)
internalDirectoryInstanceLoader
- loads an internal directory instanceldapInternalHybridDirectoryInstanceLoader
- loads a directory with caching capabilities (using an internal directory)delegatedAuthenticationDirectoryInstanceLoader
- loads a DelegatedAuthenticationDirectory instancepublic DelegatingDirectoryInstanceLoader(InternalDirectoryInstanceLoader internalDirectoryInstanceLoader, InternalHybridDirectoryInstanceLoader ldapInternalHybridDirectoryInstanceLoader)
internalDirectoryInstanceLoader
- the internal directory in which to do the cachingldapInternalHybridDirectoryInstanceLoader
- loads a directory with caching capabilities (using an internal directory)Method Detail |
---|
public RemoteDirectory getDirectory(Directory directory) throws DirectoryInstantiationException
DirectoryInstanceLoader
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 DirectoryInstanceLoader
directory
- 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
DirectoryInstanceLoader
getRawDirectory
in interface DirectoryInstanceLoader
id
- Directory IDclassName
- class name of directory.attributes
- the configuration attributes to pass to the RemoteDirectory
DirectoryInstantiationException
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |