Class RecoveryModeDirectoryLoader
java.lang.Object
com.atlassian.crowd.manager.recovery.RecoveryModeDirectoryLoader
- All Implemented Interfaces:
DirectoryInstanceLoader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetDirectory(Directory directory) Loads theRemoteDirectoryimplementation class for a specific (already saved)Directoryconfiguration.Loads a guaranteed un-cached directory implementation for a specific configuration.
-
Constructor Details
-
RecoveryModeDirectoryLoader
public RecoveryModeDirectoryLoader()
-
-
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:
- The
RemoteDirectoryloaded implementation. - Throws:
DirectoryInstantiationException- If theRemoteDirectoryimplementation could not be loaded.
-
getRawDirectory
public RemoteDirectory 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:
- The loaded RemoteDirectory implementation.
- Throws:
DirectoryInstantiationException- if a RemoteDirectory implementation can not be loaded.
-
canLoad
- Specified by:
canLoadin interfaceDirectoryInstanceLoader- Parameters:
className- class name of directory.- Returns:
trueiff the directory can load the directory of the specified class.
-