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.
- Initializing the Crowd environment, beginning with loading crowd.cfg.xml from the crowd.home property specified in crowd-init.properties.
- Delegating, monitoring, and answering all client requests concerning Crowd initialization routines.
- 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, setupPersisterFields inherited from interface com.atlassian.crowd.manager.bootstrap.CrowdBootstrapManager
CONFIG_DIRECTORY_PARAM, CROWD_SID -
Constructor Summary
ConstructorsConstructorDescriptionCrowdBootstrapManagerImpl(SchemaHelper schemaHelper, DatabaseConfiguredListeners databaseConfiguredListeners) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidvoidbootstrapDatabase(com.atlassian.config.db.DatabaseDetails dbDetails, boolean embedded) voidbootstrapDatasource(String datasourceName, String hibernateDialect) booleandatabaseContainsExistingData(Connection connection) static com.opensymphony.xwork2.config.ConfigurationManagerstatic booleanisContainerReady(javax.servlet.ServletContext servletContext) protected voidvoidsetConfigDirectory(String configurationDirectory) static voidsetConfigurationManager(com.opensymphony.xwork2.config.ConfigurationManager configurationManager) voidsetServerID(String sid) voidMethods 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, setSetupPersisterMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
-
CrowdBootstrapManagerImpl
public CrowdBootstrapManagerImpl(SchemaHelper schemaHelper, DatabaseConfiguredListeners databaseConfiguredListeners)
-
-
Method Details
-
setConfigurationManager
public static void setConfigurationManager(com.opensymphony.xwork2.config.ConfigurationManager configurationManager) -
getConfigurationManager
public static com.opensymphony.xwork2.config.ConfigurationManager getConfigurationManager() -
getConfigDirectory
-
setConfigDirectory
-
afterConfigurationLoaded
protected void afterConfigurationLoaded()- Overrides:
afterConfigurationLoadedin classcom.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
-
bootstrapDatabase
public void bootstrapDatabase(com.atlassian.config.db.DatabaseDetails dbDetails, boolean embedded) throws com.atlassian.config.bootstrap.BootstrapException - Specified by:
bootstrapDatabasein interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Overrides:
bootstrapDatabasein classcom.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:
bootstrapDatasourcein interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Overrides:
bootstrapDatasourcein classcom.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager- Throws:
com.atlassian.config.bootstrap.BootstrapException
-
postBootstrapDatabase
protected void postBootstrapDatabase() throws com.atlassian.config.bootstrap.BootstrapException- Overrides:
postBootstrapDatabasein classcom.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
- Specified by:
getServerIDin interfaceCrowdBootstrapManager
-
setServerID
- Specified by:
setServerIDin interfaceCrowdBootstrapManager- Throws:
com.atlassian.config.ConfigurationException
-
databaseContainsExistingData
- Specified by:
databaseContainsExistingDatain interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Overrides:
databaseContainsExistingDatain classcom.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
-
getTables
- Overrides:
getTablesin classcom.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
-
setTables
- Overrides:
setTablesin classcom.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
-