public class DelegatingDirectoryInstanceLoaderImpl extends Object implements DelegatingDirectoryInstanceLoader
| Constructor and Description |
|---|
DelegatingDirectoryInstanceLoaderImpl(InternalDirectoryInstanceLoader internalDirectoryInstanceLoader,
InternalHybridDirectoryInstanceLoader ldapInternalHybridDirectoryInstanceLoader)
Pico-friendly constructor.
|
DelegatingDirectoryInstanceLoaderImpl(InternalDirectoryInstanceLoader internalDirectoryInstanceLoader,
InternalHybridDirectoryInstanceLoader ldapInternalHybridDirectoryInstanceLoader,
DelegatedAuthenticationDirectoryInstanceLoader delegatedAuthenticationDirectoryInstanceLoader)
Pico-friendly constructor.
|
DelegatingDirectoryInstanceLoaderImpl(List<DirectoryInstanceLoader> loaders)
Creates a new instance of DelegatingDirectoryInstanceLoader.
|
| 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)
Loads a guaranteed un-cached directory implementation for a specific configuration.
|
public DelegatingDirectoryInstanceLoaderImpl(List<DirectoryInstanceLoader> loaders)
loaders - list of delegate directory instance loaders.public DelegatingDirectoryInstanceLoaderImpl(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 DelegatingDirectoryInstanceLoaderImpl(InternalDirectoryInstanceLoader internalDirectoryInstanceLoader, InternalHybridDirectoryInstanceLoader ldapInternalHybridDirectoryInstanceLoader)
internalDirectoryInstanceLoader - the internal directory in which to do the cachingldapInternalHybridDirectoryInstanceLoader - loads a directory with caching capabilities (using an internal directory)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(Long id, String className, Map<String,String> attributes) throws DirectoryInstantiationException
DirectoryInstanceLoadergetRawDirectory 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 © 2023 Atlassian. All rights reserved.