public interface InternalDirectoryInstanceLoader extends DirectoryInstanceLoader
DirectoryInstanceLoader specialised for Internal Directories.
Note that the getDirectory(com.atlassian.crowd.embedded.api.Directory) and getRawDirectory(Long, String, java.util.Map)
methods have been specialised to return instances of InternalRemoteDirectory.
| Modifier and Type | Method and Description |
|---|---|
InternalRemoteDirectory |
getDirectory(Directory directory)
Loads the
RemoteDirectory implementation class for a specific (already saved)
Directory configuration. |
InternalRemoteDirectory |
getRawDirectory(Long id,
String className,
Map<String,String> attributes)
Loads a guaranteed un-cached directory implementation for a specific configuration.
|
canLoadInternalRemoteDirectory 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.InternalRemoteDirectory.DirectoryInstantiationException - If the RemoteDirectory implementation could not be loaded.DirectoryInstanceLoaderInternalRemoteDirectory 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 RemoteDirectoryInternalRemoteDirectory.DirectoryInstantiationException - if a RemoteDirectory implementation can not be loaded.DirectoryInstanceLoaderCopyright © 2017 Atlassian. All rights reserved.