|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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(java.util.List<DirectoryInstanceLoader> loaders)
Creates a new instance of DelegatingDirectoryInstanceLoader. |
|
| Method Summary | |
|---|---|
boolean |
canLoad(java.lang.String className)
|
RemoteDirectory |
getDirectory(Directory directory)
Loads the RemoteDirectory implementation class for a specific (already saved)
Directory configuration. |
RemoteDirectory |
getRawDirectory(java.lang.Long id,
java.lang.String className,
java.util.Map<java.lang.String,java.lang.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(java.util.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 instance
public 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
DirectoryInstanceLoaderRemoteDirectory 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 DirectoryInstanceLoaderdirectory - The directory to load the RemoteDirectory implementation from.
RemoteDirectory loaded implementation.
DirectoryInstantiationException - If the RemoteDirectory implementation could not be loaded.
public RemoteDirectory getRawDirectory(java.lang.Long id,
java.lang.String className,
java.util.Map<java.lang.String,java.lang.String> attributes)
throws DirectoryInstantiationException
DirectoryInstanceLoader
getRawDirectory in interface DirectoryInstanceLoaderid - 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(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 | |||||||||