com.atlassian.config.bootstrap
Interface AtlassianBootstrapManager

All Known Implementing Classes:
DefaultAtlassianBootstrapManager

public interface AtlassianBootstrapManager

Parent BootstrapManaager


Method Summary
 void bootstrapDatabase(DatabaseDetails dbDetails, boolean embedded)
           
 void bootstrapDatasource(String datasourceName, String hibernateDialect)
           
 boolean databaseContainsExistingData(Connection connection)
           
 ApplicationConfiguration getApplicationConfig()
           
 String getApplicationHome()
           
 String getBootstrapFailureReason()
           
 String getBuildNumber()
          This is the build number of the current version that the user is running under.
 String getConfiguredApplicationHome()
           
 String getFilePathProperty(String key)
           
 HibernateConfig getHibernateConfig()
           
 HibernateConfigurator getHibernateConfigurator()
           
 Properties getHibernateProperties()
           
 String getOperation()
           
 Map getPropertiesWithPrefix(String prefix)
           
 Object getProperty(String key)
           
 Collection getPropertyKeys()
           
 SetupPersister getSetupPersister()
           
 String getString(String key)
           
 Connection getTestDatabaseConnection(DatabaseDetails databaseDetails)
           
 Connection getTestDatasourceConnection(String datasourceName)
           
 void init()
          Does final initialisation of the BootstrapManager, including looking up the confluence home (Previously was the afterPropertiesSet method)
 boolean isApplicationHomeValid()
           
 boolean isBootstrapped()
           
 boolean isPropertyTrue(String prop)
           
 boolean isSetupComplete()
           
 void publishConfiguration()
           
 void removeProperty(String key)
           
 void save()
           
 void setBuildNumber(String buildNumber)
           
 void setHibernateConfigurator(HibernateConfigurator hibernateConfigurator)
           
 void setOperation(String operation)
           
 void setProperty(String key, Object value)
           
 void setSetupComplete(boolean complete)
           
 

Method Detail

isBootstrapped

boolean isBootstrapped()
Returns:
boolean indicating whether Confluence is bootstrapped.

getProperty

Object getProperty(String key)

setProperty

void setProperty(String key,
                 Object value)

isPropertyTrue

boolean isPropertyTrue(String prop)

removeProperty

void removeProperty(String key)

getString

String getString(String key)

getFilePathProperty

String getFilePathProperty(String key)

getPropertyKeys

Collection getPropertyKeys()

getPropertiesWithPrefix

Map getPropertiesWithPrefix(String prefix)

getBuildNumber

String getBuildNumber()
This is the build number of the current version that the user is running under. This version is stored in their confluence home confluence.cfg.xml file


setBuildNumber

void setBuildNumber(String buildNumber)

isApplicationHomeValid

boolean isApplicationHomeValid()

getHibernateProperties

Properties getHibernateProperties()

save

void save()
          throws ConfigurationException
Throws:
ConfigurationException

isSetupComplete

boolean isSetupComplete()

getOperation

String getOperation()

setOperation

void setOperation(String operation)

setSetupComplete

void setSetupComplete(boolean complete)

bootstrapDatasource

void bootstrapDatasource(String datasourceName,
                         String hibernateDialect)
                         throws BootstrapException
Throws:
BootstrapException

getSetupPersister

SetupPersister getSetupPersister()

getApplicationConfig

ApplicationConfiguration getApplicationConfig()

getApplicationHome

String getApplicationHome()

getConfiguredApplicationHome

String getConfiguredApplicationHome()

getBootstrapFailureReason

String getBootstrapFailureReason()

init

void init()
          throws BootstrapException
Does final initialisation of the BootstrapManager, including looking up the confluence home (Previously was the afterPropertiesSet method)

Throws:
BootstrapException

publishConfiguration

void publishConfiguration()

bootstrapDatabase

void bootstrapDatabase(DatabaseDetails dbDetails,
                       boolean embedded)
                       throws BootstrapException
Throws:
BootstrapException

getHibernateConfigurator

HibernateConfigurator getHibernateConfigurator()

setHibernateConfigurator

void setHibernateConfigurator(HibernateConfigurator hibernateConfigurator)

getHibernateConfig

HibernateConfig getHibernateConfig()

getTestDatasourceConnection

Connection getTestDatasourceConnection(String datasourceName)
                                       throws BootstrapException
Throws:
BootstrapException

databaseContainsExistingData

boolean databaseContainsExistingData(Connection connection)

getTestDatabaseConnection

Connection getTestDatabaseConnection(DatabaseDetails databaseDetails)
                                     throws BootstrapException
Throws:
BootstrapException


Atlassian Config is developed by Atlassian Software Systems.