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, setupPersister
Fields inherited from interface com.atlassian.crowd.manager.bootstrap.CrowdBootstrapManager
CONFIG_DIRECTORY_PARAM, CROWD_SID
-
Constructor Summary
ConstructorDescriptionCrowdBootstrapManagerImpl
(SchemaHelper schemaHelper, DatabaseConfiguredListeners databaseConfiguredListeners) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
bootstrapDatabase
(com.atlassian.config.db.DatabaseDetails dbDetails, boolean embedded) void
bootstrapDatasource
(String datasourceName, String hibernateDialect) boolean
databaseContainsExistingData
(Connection connection) 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
setServerID
(String sid) void
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
-
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:
afterConfigurationLoaded
in 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:
bootstrapDatabase
in interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager
- Overrides:
bootstrapDatabase
in 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:
bootstrapDatasource
in interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager
- Overrides:
bootstrapDatasource
in classcom.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
- Throws:
com.atlassian.config.bootstrap.BootstrapException
-
postBootstrapDatabase
protected void postBootstrapDatabase() throws com.atlassian.config.bootstrap.BootstrapException- Overrides:
postBootstrapDatabase
in 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:
getServerID
in interfaceCrowdBootstrapManager
-
setServerID
- Specified by:
setServerID
in interfaceCrowdBootstrapManager
- Throws:
com.atlassian.config.ConfigurationException
-
databaseContainsExistingData
- Specified by:
databaseContainsExistingData
in interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager
- Overrides:
databaseContainsExistingData
in classcom.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
-
getTables
- Overrides:
getTables
in classcom.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
-
setTables
- Overrides:
setTables
in classcom.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
-