Class JiraDelegatingDirectoryInstanceLoader
java.lang.Object
com.atlassian.jira.user.directory.loader.JiraDelegatingDirectoryInstanceLoader
- All Implemented Interfaces:
com.atlassian.crowd.directory.loader.DirectoryInstanceLoader
,InitializingComponent
public class JiraDelegatingDirectoryInstanceLoader
extends Object
implements com.atlassian.crowd.directory.loader.DirectoryInstanceLoader, InitializingComponent
This is the super-loader that's responsible for delegating to the others.
Historically, JIRA has used DelegatingDirectoryInstanceLoaderImpl
directly, but that means
that Crowd has to keep a Pico-friendly constructor around just for us. That really shouldn't be
their responsibility to maintain.
- Since:
- v6.4
-
Constructor Summary
ConstructorsConstructorDescriptionJiraDelegatingDirectoryInstanceLoader
(com.atlassian.crowd.directory.loader.InternalDirectoryInstanceLoader internalDirectoryInstanceLoader, com.atlassian.crowd.directory.loader.InternalHybridDirectoryInstanceLoader dbCachingDirectoryInstanceLoader, com.atlassian.crowd.directory.loader.DelegatedAuthenticationDirectoryInstanceLoader delegatedAuthenticationDirectoryInstanceLoader, com.atlassian.crowd.manager.recovery.RecoveryModeDirectoryLoader recoveryModeDirectoryLoader, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.cache.CacheManager cacheManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
Called after all the beans are constructed and the ApplicationContext is fully populated.boolean
com.atlassian.crowd.directory.RemoteDirectory
getDirectory
(com.atlassian.crowd.embedded.api.Directory directory) com.atlassian.crowd.directory.RemoteDirectory
void
handleEvent
(com.atlassian.crowd.event.directory.DirectoryDeletedEvent event) void
handleEvent
(com.atlassian.crowd.event.directory.DirectoryUpdatedEvent event) void
handleEvent
(com.atlassian.crowd.event.migration.XMLRestoreFinishedEvent event)
-
Constructor Details
-
JiraDelegatingDirectoryInstanceLoader
public JiraDelegatingDirectoryInstanceLoader(com.atlassian.crowd.directory.loader.InternalDirectoryInstanceLoader internalDirectoryInstanceLoader, com.atlassian.crowd.directory.loader.InternalHybridDirectoryInstanceLoader dbCachingDirectoryInstanceLoader, com.atlassian.crowd.directory.loader.DelegatedAuthenticationDirectoryInstanceLoader delegatedAuthenticationDirectoryInstanceLoader, com.atlassian.crowd.manager.recovery.RecoveryModeDirectoryLoader recoveryModeDirectoryLoader, com.atlassian.event.api.EventPublisher eventPublisher, com.atlassian.cache.CacheManager cacheManager)
-
-
Method Details
-
afterInstantiation
Description copied from interface:InitializingComponent
Called after all the beans are constructed and the ApplicationContext is fully populated. Order of execution is order of bean creation, driven by InitializingComponentProcessor.- Specified by:
afterInstantiation
in interfaceInitializingComponent
- Throws:
Exception
-
getDirectory
public com.atlassian.crowd.directory.RemoteDirectory getDirectory(com.atlassian.crowd.embedded.api.Directory directory) throws com.atlassian.crowd.exception.DirectoryInstantiationException - Specified by:
getDirectory
in interfacecom.atlassian.crowd.directory.loader.DirectoryInstanceLoader
- Throws:
com.atlassian.crowd.exception.DirectoryInstantiationException
-
getRawDirectory
public com.atlassian.crowd.directory.RemoteDirectory getRawDirectory(Long id, String className, Map<String, String> attributes) throws com.atlassian.crowd.exception.DirectoryInstantiationException- Specified by:
getRawDirectory
in interfacecom.atlassian.crowd.directory.loader.DirectoryInstanceLoader
- Throws:
com.atlassian.crowd.exception.DirectoryInstantiationException
-
canLoad
- Specified by:
canLoad
in interfacecom.atlassian.crowd.directory.loader.DirectoryInstanceLoader
-
handleEvent
@EventListener public void handleEvent(com.atlassian.crowd.event.directory.DirectoryUpdatedEvent event) -
handleEvent
@EventListener public void handleEvent(com.atlassian.crowd.event.directory.DirectoryDeletedEvent event) -
handleEvent
@EventListener public void handleEvent(com.atlassian.crowd.event.migration.XMLRestoreFinishedEvent event)
-