Class CacheableDirectoryInstanceLoader
java.lang.Object
com.atlassian.crowd.directory.loader.CacheableDirectoryInstanceLoader
- All Implemented Interfaces:
DirectoryInstanceLoader
@Deprecated
public class CacheableDirectoryInstanceLoader
extends Object
implements DirectoryInstanceLoader
Deprecated.
Since v2.12 - directory instances no longer rely on instance-local state (when using the new v2.12 components)
and don't need to be cached.
Caches the underlying remote directory base by id.
Note, this caching refers to holding the RemoteDirectory
instances in memory, not the
db caching which may occur in underlying implementations
- Since:
- v2.1
-
Constructor Summary
ConstructorDescriptionCacheableDirectoryInstanceLoader
(DelegatingDirectoryInstanceLoader delegate, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.cache.CacheFactory cacheFactory) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.getDirectory
(Directory directory) Deprecated.Loads theRemoteDirectory
implementation class for a specific (already saved)Directory
configuration.Deprecated.Loads a guaranteed un-cached directory implementation for a specific configuration.void
handleEvent
(DirectoryDeletedEvent event) Deprecated.void
handleEvent
(DirectoryUpdatedEvent event) Deprecated.void
Deprecated.
-
Constructor Details
-
CacheableDirectoryInstanceLoader
public CacheableDirectoryInstanceLoader(DelegatingDirectoryInstanceLoader delegate, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.cache.CacheFactory cacheFactory) Deprecated.
-
-
Method Details
-
getDirectory
Deprecated.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:
- The
RemoteDirectory
loaded implementation. - Throws:
DirectoryInstantiationException
- If theRemoteDirectory
implementation could not be loaded.
-
getRawDirectory
public RemoteDirectory getRawDirectory(Long id, String className, Map<String, String> attributes) throws DirectoryInstantiationExceptionDeprecated.Description 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:
- The loaded RemoteDirectory implementation.
- Throws:
DirectoryInstantiationException
- if a RemoteDirectory implementation can not be loaded.
-
canLoad
Deprecated.- Specified by:
canLoad
in interfaceDirectoryInstanceLoader
- Parameters:
className
- class name of directory.- Returns:
true
iff the directory can load the directory of the specified class.
-
handleEvent
Deprecated. -
handleEvent
Deprecated. -
handleEvent
Deprecated.
-