com.atlassian.confluence.setup
Class DefaultBootstrapManager

java.lang.Object
  extended bycom.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
      extended bycom.atlassian.confluence.setup.DefaultBootstrapManager
All Implemented Interfaces:
AtlassianBootstrapManager, BootstrapManager, ConfluenceBootstrapConstants

public class DefaultBootstrapManager
extends DefaultAtlassianBootstrapManager
implements BootstrapManager

BootstrapManager is responsible for initializing the dependencies of Confluence environment.

  1. Initializing the Confluence environment, beginning with loading confluence.cfg.xml from the confluence.home property specified in confluence-init.properties.
  2. Delegating, monitoring, and answering all client requests concerning Confluence initialization routines.
  3. Providing the SetupPersister with whatever resources it needs to let a user bootstrapManager Confluence.


Field Summary
 
Fields inherited from class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
applicationConfig, bootstrapFailureReason, bootstrapped, hibernateConfig, hibernateConfigurator, homeLocator, log, setupPersister
 
Fields inherited from interface com.atlassian.confluence.setup.ConfluenceBootstrapConstants
ATTACHMENTS_DIR_PROP, CONFLUENCE_HOME_CONSTANT, DAILY_BACKUP_DIR_PROP, DEFAULT_LICENSE_REGISTRY_KEY, GLOBAL_PLUGIN_STATE, LICENSE_HASH_KEY, LICENSE_MESSAGE_KEY, LUCENE_INDEX_DIR_PROP, TEMP_DIR_PROP, WEBAPP_CONTEXT_PATH_KEY
 
Constructor Summary
DefaultBootstrapManager()
           
 
Method Summary
protected  void afterConfigurationLoaded()
           
 void bootstrapSharedConfiguration(SharedConfigurationMap sharedConfig)
           
 String getBaseUrl()
          Deprecated.  
 String getConfiguredConfluenceHome()
           
 String getConfluenceHome()
           
protected  String getDbUrl(DatabaseDetails dbDetails)
           
 String getDomainName()
          Deprecated.  
 String getFilePathProperty(String key)
          CONFLUENCE_HOME_CONSTANT is replaced on the fly with the current location of confluence.
 String getWebAppContextPath()
           
 boolean isConfluenceHomeValid()
           
 boolean isWebAppContextPathSet()
           
 boolean isWebdavEnabled()
           
protected  boolean performPersistenceUpgrade()
           
protected  void postBootstrapDatabase()
           
 void publishConfiguration()
           
 void setBaseUrl(String baseUrl)
           
 void setClusterConfigurationHelper(ClusterConfigurationHelper clusterConfigurationHelper)
           
 void setConfluenceHome(String confluenceHome)
          Use for test cases only
 void setDatabaseHelper(DatabaseHelper databaseHelper)
           
 void setWebAppContextPath(String webAppContextPath)
           
 
Methods inherited from class com.atlassian.config.bootstrap.DefaultAtlassianBootstrapManager
bootstrapDatabase, bootstrapDatasource, databaseContainsExistingData, finishBootstrapInitialisation, getApplicationConfig, getApplicationHome, getBootstrapFailureReason, getBuildNumber, getConfiguredApplicationHome, getHibernateConfig, getHibernateConfigurator, getHibernateProperties, getHomeLocator, getOperation, getPropertiesWithPrefix, getProperty, getPropertyKeys, getSetupPersister, getString, getTables, getTestDatabaseConnection, getTestDatasourceConnection, init, isApplicationHomeValid, isBootstrapped, isPropertyTrue, isSetupComplete, removeProperty, save, setApplicationConfig, setBuildNumber, setHibernateConfig, setHibernateConfigurator, setHomeLocator, setOperation, setProperty, setSetupComplete, setSetupPersister, setTables
 
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
bootstrapDatabase, bootstrapDatasource, databaseContainsExistingData, getApplicationConfig, getApplicationHome, getBootstrapFailureReason, getBuildNumber, getConfiguredApplicationHome, getHibernateConfig, getHibernateConfigurator, getHibernateProperties, getOperation, getPropertiesWithPrefix, getProperty, getPropertyKeys, getSetupPersister, getString, getTestDatabaseConnection, getTestDatasourceConnection, init, isApplicationHomeValid, isBootstrapped, isPropertyTrue, isSetupComplete, removeProperty, save, setBuildNumber, setHibernateConfigurator, setOperation, setProperty, setSetupComplete
 

Constructor Detail

DefaultBootstrapManager

public DefaultBootstrapManager()
Method Detail

publishConfiguration

public void publishConfiguration()
Specified by:
publishConfiguration in interface AtlassianBootstrapManager

getFilePathProperty

public String getFilePathProperty(String key)
CONFLUENCE_HOME_CONSTANT is replaced on the fly with the current location of confluence.
This effectively allows confluence to be moved without breaking some system paths (like attachments)
This does not handle moves to a different drive though.

Specified by:
getFilePathProperty in interface AtlassianBootstrapManager
Parameters:
key -

getDbUrl

protected String getDbUrl(DatabaseDetails dbDetails)

getConfluenceHome

public String getConfluenceHome()
Specified by:
getConfluenceHome in interface BootstrapManager
Returns:
String representing the path to Confluence's home directory on disk.

setConfluenceHome

public void setConfluenceHome(String confluenceHome)
                       throws ConfigurationException
Use for test cases only

Specified by:
setConfluenceHome in interface BootstrapManager
Throws:
ConfigurationException

isConfluenceHomeValid

public boolean isConfluenceHomeValid()
Specified by:
isConfluenceHomeValid in interface BootstrapManager

getBaseUrl

public String getBaseUrl()
Deprecated.  

Specified by:
getBaseUrl in interface BootstrapManager

getDomainName

public String getDomainName()
Deprecated.  

Specified by:
getDomainName in interface BootstrapManager

setBaseUrl

public void setBaseUrl(String baseUrl)
Specified by:
setBaseUrl in interface BootstrapManager

isWebdavEnabled

public boolean isWebdavEnabled()
Specified by:
isWebdavEnabled in interface BootstrapManager

bootstrapSharedConfiguration

public void bootstrapSharedConfiguration(SharedConfigurationMap sharedConfig)
                                  throws BootstrapException
Specified by:
bootstrapSharedConfiguration in interface BootstrapManager
Throws:
BootstrapException

getConfiguredConfluenceHome

public String getConfiguredConfluenceHome()
Specified by:
getConfiguredConfluenceHome in interface BootstrapManager

performPersistenceUpgrade

protected boolean performPersistenceUpgrade()

afterConfigurationLoaded

protected void afterConfigurationLoaded()
                                 throws ConfigurationException
Throws:
ConfigurationException

postBootstrapDatabase

protected void postBootstrapDatabase()

getWebAppContextPath

public String getWebAppContextPath()
Specified by:
getWebAppContextPath in interface BootstrapManager

setWebAppContextPath

public void setWebAppContextPath(String webAppContextPath)
                          throws ConfigurationException
Specified by:
setWebAppContextPath in interface BootstrapManager
Throws:
ConfigurationException

isWebAppContextPathSet

public boolean isWebAppContextPathSet()
Specified by:
isWebAppContextPathSet in interface BootstrapManager

setDatabaseHelper

public void setDatabaseHelper(DatabaseHelper databaseHelper)

setClusterConfigurationHelper

public void setClusterConfigurationHelper(ClusterConfigurationHelper clusterConfigurationHelper)


Confluence is developed by Atlassian.