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

    Constructors
    Constructor
    Description
    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 Summary

    Modifier and Type
    Method
    Description
    void
    Called after all the beans are constructed and the ApplicationContext is fully populated.
    boolean
    canLoad(String className)
     
    com.atlassian.crowd.directory.RemoteDirectory
    getDirectory(com.atlassian.crowd.embedded.api.Directory directory)
     
    com.atlassian.crowd.directory.RemoteDirectory
    getRawDirectory(Long id, String className, Map<String,String> attributes)
     
    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public void afterInstantiation() throws Exception
      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 interface InitializingComponent
      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 interface com.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 interface com.atlassian.crowd.directory.loader.DirectoryInstanceLoader
      Throws:
      com.atlassian.crowd.exception.DirectoryInstantiationException
    • canLoad

      public boolean canLoad(String className)
      Specified by:
      canLoad in interface com.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)