Interface DirectoryInstanceLoader
- All Known Subinterfaces:
AzureAdDirectoryInstanceLoader
,DelegatedAuthenticationDirectoryInstanceLoader
,DelegatingDirectoryInstanceLoader
,InternalDirectoryInstanceLoader
,InternalHybridDirectoryInstanceLoader
,LDAPDirectoryInstanceLoader
,RemoteCrowdDirectoryInstanceLoader
- All Known Implementing Classes:
AbstractDirectoryInstanceLoader
,AzureAdDirectoryInstanceLoaderImpl
,CacheableDirectoryInstanceLoader
,ConfigurableDbCachingRemoteDirectoryInstanceLoader
,CustomDirectoryInstanceLoader
,DbCachingRemoteDirectoryInstanceLoader
,DelegatedAuthenticationDirectoryInstanceLoaderImpl
,DelegatingDirectoryInstanceLoaderImpl
,InternalDirectoryInstanceLoaderImpl
,LDAPDirectoryInstanceLoaderImpl
,RecoveryModeDirectoryLoader
,RemoteCrowdDirectoryInstanceLoaderImpl
public interface DirectoryInstanceLoader
Loads an implementation of a
RemoteDirectory
for use at runtime
by the Crowd security server.-
Method Summary
Modifier and TypeMethodDescriptionboolean
getDirectory
(Directory directory) Loads theRemoteDirectory
implementation class for a specific (already saved)Directory
configuration.Loads a guaranteed un-cached directory implementation for a specific configuration.
-
Method Details
-
getDirectory
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.
- Parameters:
directory
- The directory to load theRemoteDirectory
implementation from.- Returns:
- The
RemoteDirectory
loaded implementation. - Throws:
DirectoryInstantiationException
- If theRemoteDirectory
implementation could not be loaded.
-
getRawDirectory
RemoteDirectory getRawDirectory(Long id, String className, Map<String, String> attributes) throws DirectoryInstantiationExceptionLoads a guaranteed un-cached directory implementation for a specific configuration.- 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
- Parameters:
className
- class name of directory.- Returns:
true
iff the directory can load the directory of the specified class.
-