Class CrowdBootstrapManagerImpl

java.lang.Object
com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
com.atlassian.crowd.manager.bootstrap.CrowdBootstrapManagerImpl
All Implemented Interfaces:
com.atlassian.config.bootstrap.AtlassianBootstrapManager, CrowdBootstrapManager

public class CrowdBootstrapManagerImpl extends com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager implements CrowdBootstrapManager
BootstrapManager is responsible for initializing the dependencies of Crowd environment.
  1. Initializing the Crowd environment, beginning with loading crowd.cfg.xml from the crowd.home property specified in crowd-init.properties.
  2. Delegating, monitoring, and answering all client requests concerning Crowd initialization routines.
  3. Providing the SetupPersister with whatever resources it needs to let a user bootstrapManager Crowd.
  • Field Summary

    Fields inherited from class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager

    applicationConfig, bootstrapFailureReason, bootstrapped, hibernateConfig, hibernateConfigurator, homeLocator, setupPersister

    Fields inherited from interface com.atlassian.crowd.manager.bootstrap.CrowdBootstrapManager

    CONFIG_DIRECTORY_PARAM, CROWD_SID
  • Constructor Summary

    Constructors
    Constructor
    Description
    CrowdBootstrapManagerImpl(SchemaHelper schemaHelper, DatabaseConfiguredListeners databaseConfiguredListeners)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    void
    bootstrapDatabase(com.atlassian.config.db.DatabaseDetails dbDetails, boolean embedded)
     
    void
    bootstrapDatasource(String datasourceName, String hibernateDialect)
     
    boolean
     
     
    static com.opensymphony.xwork2.config.ConfigurationManager
     
     
     
    static boolean
    isContainerReady(javax.servlet.ServletContext servletContext)
     
    protected void
     
    void
    setConfigDirectory(String configurationDirectory)
     
    static void
    setConfigurationManager(com.opensymphony.xwork2.config.ConfigurationManager configurationManager)
     
    void
     
    void
    setTables(List tables)
     

    Methods inherited from class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager

    finishBootstrapInitialisation, getApplicationConfig, getApplicationHome, getBootstrapFailureReason, getBuildNumber, getConfiguredApplicationHome, getDbUrl, getFilePathProperty, getHibernateConfig, getHibernateConfigurator, getHibernateProperties, getHomeLocator, getOperation, getPropertiesWithPrefix, getProperty, getPropertyKeys, getSetupPersister, getString, getTestDatabaseConnection, getTestDatasourceConnection, init, isApplicationHomeValid, isBootstrapped, isPropertyTrue, isSetupComplete, performPersistenceUpgrade, publishConfiguration, removeProperty, save, setApplicationConfig, setBuildNumber, setHibernateConfig, setHibernateConfigurator, setHomeLocator, setOperation, setProperty, setSetupComplete, setSetupPersister

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.atlassian.config.bootstrap.AtlassianBootstrapManager

    getApplicationConfig, getApplicationHome, getBootstrapFailureReason, getBuildNumber, getConfiguredApplicationHome, getFilePathProperty, getHibernateConfig, getHibernateConfigurator, getHibernateProperties, getOperation, getPropertiesWithPrefix, getProperty, getPropertyKeys, getSetupPersister, getString, getTestDatabaseConnection, getTestDatasourceConnection, init, isApplicationHomeValid, isBootstrapped, isPropertyTrue, isSetupComplete, publishConfiguration, removeProperty, save, setBuildNumber, setHibernateConfigurator, setOperation, setProperty, setSetupComplete
  • Constructor Details

  • Method Details

    • setConfigurationManager

      public static void setConfigurationManager(com.opensymphony.xwork2.config.ConfigurationManager configurationManager)
    • getConfigurationManager

      public static com.opensymphony.xwork2.config.ConfigurationManager getConfigurationManager()
    • getConfigDirectory

      public String getConfigDirectory()
    • setConfigDirectory

      public void setConfigDirectory(String configurationDirectory)
    • afterConfigurationLoaded

      protected void afterConfigurationLoaded()
      Overrides:
      afterConfigurationLoaded in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
    • bootstrapDatabase

      public void bootstrapDatabase(com.atlassian.config.db.DatabaseDetails dbDetails, boolean embedded) throws com.atlassian.config.bootstrap.BootstrapException
      Specified by:
      bootstrapDatabase in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
      Overrides:
      bootstrapDatabase in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
      Throws:
      com.atlassian.config.bootstrap.BootstrapException
    • bootstrapDatasource

      public void bootstrapDatasource(String datasourceName, String hibernateDialect) throws com.atlassian.config.bootstrap.BootstrapException
      Specified by:
      bootstrapDatasource in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
      Overrides:
      bootstrapDatasource in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
      Throws:
      com.atlassian.config.bootstrap.BootstrapException
    • postBootstrapDatabase

      protected void postBootstrapDatabase() throws com.atlassian.config.bootstrap.BootstrapException
      Overrides:
      postBootstrapDatabase in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
      Throws:
      com.atlassian.config.bootstrap.BootstrapException
    • isContainerReady

      public static boolean isContainerReady(javax.servlet.ServletContext servletContext)
      Parameters:
      servletContext - servlet context.
      Returns:
      true if the bootstrap succeeded and Hibernate is set up. This means the WebApplicationContext has been set up for Spring.
    • getServerID

      public String getServerID()
      Specified by:
      getServerID in interface CrowdBootstrapManager
    • setServerID

      public void setServerID(String sid) throws com.atlassian.config.ConfigurationException
      Specified by:
      setServerID in interface CrowdBootstrapManager
      Throws:
      com.atlassian.config.ConfigurationException
    • databaseContainsExistingData

      public boolean databaseContainsExistingData(Connection connection)
      Specified by:
      databaseContainsExistingData in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
      Overrides:
      databaseContainsExistingData in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
    • getTables

      public List getTables()
      Overrides:
      getTables in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
    • setTables

      public void setTables(List tables)
      Overrides:
      setTables in class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager