Interface InternalDirectoryInstanceLoader
- All Superinterfaces:
DirectoryInstanceLoader
- All Known Implementing Classes:
InternalDirectoryInstanceLoaderImpl
An extension of
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
.
-
Method Summary
Modifier and TypeMethodDescriptiongetDirectory
(Directory directory) Loads theRemoteDirectory
implementation class for a specific (already saved)Directory
configuration.Loads a guaranteed un-cached directory implementation for a specific configuration.Methods inherited from interface com.atlassian.crowd.directory.loader.DirectoryInstanceLoader
canLoad
-
Method Details
-
getDirectory
Description copied from interface:DirectoryInstanceLoader
Loads theRemoteDirectory
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.
- Specified by:
getDirectory
in interfaceDirectoryInstanceLoader
- Parameters:
directory
- The directory to load theRemoteDirectory
implementation from.- Returns:
- instance of
InternalRemoteDirectory
. - Throws:
DirectoryInstantiationException
- If theRemoteDirectory
implementation could not be loaded.- See Also:
-
getRawDirectory
InternalRemoteDirectory getRawDirectory(Long id, String className, Map<String, String> attributes) throws DirectoryInstantiationExceptionDescription copied from interface:DirectoryInstanceLoader
Loads a guaranteed un-cached directory implementation for a specific configuration.- Specified by:
getRawDirectory
in interfaceDirectoryInstanceLoader
- Parameters:
id
- Directory IDclassName
- class name of directory.attributes
- the configuration attributes to pass to the RemoteDirectory- Returns:
- instance of
InternalRemoteDirectory
. - Throws:
DirectoryInstantiationException
- if a RemoteDirectory implementation can not be loaded.- See Also:
-