Interface InternalDirectoryInstanceLoader
- All Superinterfaces:
DirectoryInstanceLoader
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 theRemoteDirectoryimplementation class for a specific (already saved)Directoryconfiguration.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:DirectoryInstanceLoaderLoads theRemoteDirectoryimplementation class for a specific (already saved)Directoryconfiguration.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:
getDirectoryin interfaceDirectoryInstanceLoader- Parameters:
directory- The directory to load theRemoteDirectoryimplementation from.- Returns:
- instance of
InternalRemoteDirectory. - Throws:
DirectoryInstantiationException- If theRemoteDirectoryimplementation could not be loaded.- See Also:
-
getRawDirectory
InternalRemoteDirectory getRawDirectory(Long id, String className, Map<String, String> attributes) throws DirectoryInstantiationExceptionDescription copied from interface:DirectoryInstanceLoaderLoads a guaranteed un-cached directory implementation for a specific configuration.- Specified by:
getRawDirectoryin 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:
-