Class BootstrapStatusProviderImpl
- java.lang.Object
-
- com.atlassian.confluence.impl.setup.BootstrapStatusProviderImpl
-
- All Implemented Interfaces:
com.atlassian.config.bootstrap.AtlassianBootstrapManager,BootstrapManager,BootstrapManagerInternal,BootstrapStatusProvider,ConfluenceBootstrapConstants
public class BootstrapStatusProviderImpl extends Object implements BootstrapStatusProvider, BootstrapManagerInternal
-
-
Field Summary
-
Fields inherited from interface com.atlassian.confluence.setup.BootstrapManager
JWT_KEY_LENGTH, JWT_PRIVATE_KEY, JWT_PUBLIC_KEY, SYNCHRONY_SERVICE_AUTHTOKEN
-
Fields inherited from interface com.atlassian.confluence.setup.ConfluenceBootstrapConstants
ATLASSIAN_LICENSE_KEY, ATTACHMENTS_DIR_PROP, CONFLUENCE_HOME_CONSTANT, CONFLUENCE_LOCAL_HOME_CONSTANT, DEFAULT_LICENSE_REGISTRY_KEY, GLOBAL_PLUGIN_STATE, INSTALLATION_DATE_KEY, LICENSE_HASH_KEY, LICENSE_MESSAGE_KEY, LUCENE_INDEX_DIR_PROP, TEMP_DIR_PROP, WEBAPP_CONTEXT_PATH_KEY
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidbootstrapDatabase(com.atlassian.config.db.DatabaseDetails var1, boolean var2)Deprecated.since 7.20.voidbootstrapDatasource(String var1, String var2)Deprecated.since 7.20.voidbootstrapSharedConfiguration(SharedConfigurationMap sharedConfig)Deprecated.since 7.20.voidcheckConfigurationOnStartup()Deprecated.since 7.20, Due to security concern related to Velocity Template.voidcleanupOnShutdown()Deprecated.since 7.20, Due to security concern related to Velocity Template.booleandatabaseContainsExistingData(Connection var1)com.atlassian.config.ApplicationConfigurationgetApplicationConfig()StringgetApplicationHome()StringgetBootstrapFailureReason()Deprecated.since 7.20.StringgetBuildNumber()Deprecated.since 7.20.StringgetConfiguredApplicationHome()Deprecated.since 7.20.FilegetConfiguredLocalHome()Deprecated.since 7.20.StringgetConfluenceHome()Deprecated.since 7.20.Optional<com.atlassian.config.db.DatabaseDetails>getDatabaseDetail(String database)Deprecated.since 7.20.Optional<String>getDataSourceName()Deprecated.since 7.20, Due to security concern related to Velocity Template and not in use in velocity templates.StringgetFilePathProperty(String var1)com.atlassian.config.db.HibernateConfiggetHibernateConfig()Deprecated.since 7.20.com.atlassian.config.db.HibernateConfiguratorgetHibernateConfigurator()Deprecated.since 7.20.StringgetHibernateDialect()Returns the SQL dialect being used by Hibernate.PropertiesgetHibernateProperties()Deprecated.since 7.20.static BootstrapStatusProvidergetInstance()FilegetLocalHome()Deprecated.since 7.20.StringgetOperation()Deprecated.since 7.20.MapgetPropertiesWithPrefix(String var1)Deprecated.since 7.20.ObjectgetProperty(String key)CollectiongetPropertyKeys()Deprecated.since 7.20.com.atlassian.config.setup.SetupPersistergetSetupPersister()FilegetSharedHome()Deprecated.since 7.20.StringgetString(String key)Deprecated.since 7.20.ConnectiongetTestDatabaseConnection(com.atlassian.config.db.DatabaseDetails var1)Deprecated.since 7.20.ConnectiongetTestDatasourceConnection(String var1)Deprecated.since 7.20.StringgetWebAppContextPath()voidinit()Deprecated.since 7.20.booleanisApplicationHomeValid()Deprecated.since 7.20.booleanisBootstrapped()booleanisPropertyTrue(String var1)Deprecated.since 7.20.booleanisSetupComplete()booleanisWebAppContextPathSet()booleanperformPersistenceUpgrade()Deprecated.since 8.6.voidpublishConfiguration()Deprecated.since 7.20.voidremoveProperty(String var1)Deprecated.since 7.20.voidsave()Deprecated.since 7.20.voidsetBuildNumber(String var1)Deprecated.since 7.20.voidsetConfluenceHome(String confluenceHome)Deprecated.since 7.20.voidsetHibernateConfigurator(com.atlassian.config.db.HibernateConfigurator var1)Deprecated.since 7.20.voidsetOperation(String var1)Deprecated.since 7.20.voidsetProperty(String property, Object value)Deprecated.since 7.20.voidsetSetupComplete(boolean var1)Deprecated.since 7.20.voidsetWebAppContextPath(String webAppContextPath)Deprecated.since 7.20.
-
-
-
Method Detail
-
getInstance
public static BootstrapStatusProvider getInstance()
-
isSetupComplete
public boolean isSetupComplete()
- Specified by:
isSetupCompletein interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Specified by:
isSetupCompletein interfaceBootstrapStatusProvider
-
isBootstrapped
public boolean isBootstrapped()
- Specified by:
isBootstrappedin interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Specified by:
isBootstrappedin interfaceBootstrapStatusProvider
-
getProperty
public Object getProperty(String key)
- Specified by:
getPropertyin interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Specified by:
getPropertyin interfaceBootstrapStatusProvider- Since:
- 7.20
-
setProperty
@Deprecated public void setProperty(String property, Object value)
Deprecated.since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates. This will be removed in 8.0.- Specified by:
setPropertyin interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Since:
- 7.20
-
getHibernateDialect
public String getHibernateDialect()
Returns the SQL dialect being used by Hibernate.- Specified by:
getHibernateDialectin interfaceBootstrapManager- Specified by:
getHibernateDialectin interfaceBootstrapStatusProvider- Returns:
- see above
- Since:
- 7.20
- See Also:
AvailableSettings.DIALECT
-
getWebAppContextPath
public String getWebAppContextPath()
- Specified by:
getWebAppContextPathin interfaceBootstrapManager- Specified by:
getWebAppContextPathin interfaceBootstrapStatusProvider
-
isWebAppContextPathSet
public boolean isWebAppContextPathSet()
- Specified by:
isWebAppContextPathSetin interfaceBootstrapManager- Specified by:
isWebAppContextPathSetin interfaceBootstrapStatusProvider
-
getSharedHome
@Deprecated public File getSharedHome()
Deprecated.since 7.20. As copied from BootstrapManager and deprecated inBootstrapManager. UseApplicationProperties.getSharedHomeDirectory()(plugins) or the sharedHome Spring bean (core) This will be removed from 9.0Confluence shared home directory.This directory is shared between all nodes in a cluster. In non-clustered installations without a shared directory, directory called "shared-home" inside local home directory is returned instead.
This directory should be used for data that can be safely shared across a cluster. Any users of this directory should take into account locking to prevent concurrency errors.
- Specified by:
getSharedHomein interfaceBootstrapManager- Returns:
- shared home directory
-
getApplicationConfig
public com.atlassian.config.ApplicationConfiguration getApplicationConfig()
- Specified by:
getApplicationConfigin interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Specified by:
getApplicationConfigin interfaceBootstrapStatusProvider- Since:
- 7.20
-
getSetupPersister
public com.atlassian.config.setup.SetupPersister getSetupPersister()
- Specified by:
getSetupPersisterin interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Specified by:
getSetupPersisterin interfaceBootstrapStatusProvider- Since:
- 7.20
-
getString
@Deprecated public String getString(String key)
Deprecated.since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates. This will be removed in 8.0.- Specified by:
getStringin interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Since:
- 7.20
-
getConfluenceHome
@Deprecated public String getConfluenceHome()
Deprecated.since 7.20. As copied from BootstrapManager and deprecated inBootstrapManager. UseApplicationProperties.getHomeDirectory()(plugins) or confluenceHome Spring bean (core) This will be removed from 9.0Returns local home in standalone installation and shared home in clustered installation.- Specified by:
getConfluenceHomein interfaceBootstrapManager- Returns:
- local home in standalone installation and shared home in clustered installation
-
getLocalHome
@Deprecated public File getLocalHome()
Deprecated.since 7.20. As copied from BootstrapManager and deprecated inBootstrapManager. UseApplicationProperties.getLocalHomeDirectory()(plugins) or the localHome Spring bean (core) This will be removed from 9.0Confluence local home directory.This directory is only visible to the local node in a cluster.
This directory should be used for data that must be node specific and cannot be shared between cluster nodes.
- Specified by:
getLocalHomein interfaceBootstrapManager- Returns:
- local home directory
-
setConfluenceHome
@Deprecated public void setConfluenceHome(String confluenceHome)
Deprecated.since 7.20. As copied from BootstrapManager and deprecated inBootstrapManager. This will be removed from 9.0- Specified by:
setConfluenceHomein interfaceBootstrapManager- Parameters:
confluenceHome-
-
getConfiguredLocalHome
@Deprecated public File getConfiguredLocalHome()
Deprecated.since 7.20. As copied from BootstrapManager and deprecated inBootstrapManager. UseApplicationProperties.getLocalHomeDirectory()(plugins) or localHome Spring bean (core) This will be removed from 9.0Returns the configured local home or null if not configured.Only bootstrap code should need this method. Most code should use
getLocalHome()instead.- Specified by:
getConfiguredLocalHomein interfaceBootstrapManager- Returns:
- configured local home
-
setWebAppContextPath
@Deprecated public void setWebAppContextPath(String webAppContextPath) throws com.atlassian.config.ConfigurationException
Deprecated.since 7.20. As copied from BootstrapManager and deprecated inBootstrapManager. This will be removed from 9.0- Specified by:
setWebAppContextPathin interfaceBootstrapManager- Parameters:
webAppContextPath-- Throws:
com.atlassian.config.ConfigurationException
-
checkConfigurationOnStartup
@Deprecated public void checkConfigurationOnStartup() throws com.atlassian.config.bootstrap.BootstrapException
Deprecated.since 7.20, Due to security concern related to Velocity Template. This will be removed in 8.0.- Specified by:
checkConfigurationOnStartupin interfaceBootstrapManager- Throws:
com.atlassian.config.bootstrap.BootstrapException- Since:
- 7.20
-
cleanupOnShutdown
@Deprecated public void cleanupOnShutdown()
Deprecated.since 7.20, Due to security concern related to Velocity Template. This will be removed in 8.0.If there's any resource that needs to be cleaned up, do it here.- Specified by:
cleanupOnShutdownin interfaceBootstrapManager- Since:
- 7.20
-
getDataSourceName
@Deprecated public Optional<String> getDataSourceName()
Deprecated.since 7.20, Due to security concern related to Velocity Template and not in use in velocity templates. This will be removed in 8.0.Returns the name of the JNDI-based DataSource, if any.- Specified by:
getDataSourceNamein interfaceBootstrapManager- Returns:
- empty if Confluence is using a direct JDBC connection
- Since:
- 7.20
-
bootstrapSharedConfiguration
@Deprecated public void bootstrapSharedConfiguration(SharedConfigurationMap sharedConfig) throws com.atlassian.config.bootstrap.BootstrapException
Deprecated.since 7.20. As copied from BootstrapManager and deprecated inBootstrapManager. This will be removed from 9.0Starts Confluence with a database configuration that has been retrieved from another cluster node.- Specified by:
bootstrapSharedConfigurationin interfaceBootstrapManager- Parameters:
sharedConfig-- Throws:
com.atlassian.config.bootstrap.BootstrapException- Since:
- 7.20
-
isPropertyTrue
@Deprecated public boolean isPropertyTrue(String var1)
Deprecated.since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates. This will be removed from 9.0- Specified by:
isPropertyTruein interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Since:
- 7.20
-
removeProperty
@Deprecated public void removeProperty(String var1)
Deprecated.since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates. This will be removed from 9.0- Specified by:
removePropertyin interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Since:
- 7.20
-
getFilePathProperty
public String getFilePathProperty(String var1)
- Specified by:
getFilePathPropertyin interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Specified by:
getFilePathPropertyin interfaceBootstrapManager- Specified by:
getFilePathPropertyin interfaceBootstrapStatusProvider
-
getPropertyKeys
@Deprecated public Collection getPropertyKeys()
Deprecated.since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates. This will be removed from 9.0- Specified by:
getPropertyKeysin interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Since:
- 7.20
-
getPropertiesWithPrefix
@Deprecated public Map getPropertiesWithPrefix(String var1)
Deprecated.since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates. This will be removed from 9.0- Specified by:
getPropertiesWithPrefixin interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Since:
- 7.20
-
getBuildNumber
@Deprecated public String getBuildNumber()
Deprecated.since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates. This will be removed from 9.0- Specified by:
getBuildNumberin interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Since:
- 7.20
-
setBuildNumber
@Deprecated public void setBuildNumber(String var1)
Deprecated.since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates. This will be removed from 9.0- Specified by:
setBuildNumberin interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Since:
- 7.20
-
isApplicationHomeValid
@Deprecated public boolean isApplicationHomeValid()
Deprecated.since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates. This will be removed from 9.0- Specified by:
isApplicationHomeValidin interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Since:
- 7.20
-
getHibernateProperties
@Deprecated public Properties getHibernateProperties()
Deprecated.since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates. This will be removed from 9.0- Specified by:
getHibernatePropertiesin interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Since:
- 7.20
-
save
@Deprecated public void save() throws com.atlassian.config.ConfigurationException
Deprecated.since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates. This will be removed from 9.0- Specified by:
savein interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Throws:
com.atlassian.config.ConfigurationException- Since:
- 7.20
-
setSetupComplete
@Deprecated public void setSetupComplete(boolean var1)
Deprecated.since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates. This will be removed from 9.0- Specified by:
setSetupCompletein interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Since:
- 7.20
-
getOperation
@Deprecated public String getOperation()
Deprecated.since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates. This will be removed from 9.0- Specified by:
getOperationin interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Since:
- 7.20
-
setOperation
@Deprecated public void setOperation(String var1)
Deprecated.since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates. This will be removed from 9.0- Specified by:
setOperationin interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Since:
- 7.20
-
bootstrapDatasource
@Deprecated public void bootstrapDatasource(String var1, String var2) throws com.atlassian.config.bootstrap.BootstrapException
Deprecated.since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates. This will be removed from 9.0- Specified by:
bootstrapDatasourcein interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Throws:
com.atlassian.config.bootstrap.BootstrapException- Since:
- 7.20
-
getApplicationHome
public String getApplicationHome()
- Specified by:
getApplicationHomein interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Specified by:
getApplicationHomein interfaceBootstrapManager- Specified by:
getApplicationHomein interfaceBootstrapStatusProvider
-
getConfiguredApplicationHome
@Deprecated public String getConfiguredApplicationHome()
Deprecated.since 7.20. As copied from BootstrapManager and deprecated inBootstrapManager. UseApplicationProperties.getHomeDirectory()(plugins) or confluenceHome Spring bean (core) This will be removed from 9.0- Specified by:
getConfiguredApplicationHomein interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Specified by:
getConfiguredApplicationHomein interfaceBootstrapManager- Since:
- 7.20
-
getBootstrapFailureReason
@Deprecated public String getBootstrapFailureReason()
Deprecated.since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates. This will be removed from 9.0- Specified by:
getBootstrapFailureReasonin interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Since:
- 7.20
-
init
@Deprecated public void init() throws com.atlassian.config.bootstrap.BootstrapException
Deprecated.since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates. This will be removed from 9.0- Specified by:
initin interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Throws:
com.atlassian.config.bootstrap.BootstrapException- Since:
- 7.20
-
publishConfiguration
@Deprecated public void publishConfiguration()
Deprecated.since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates. This will be removed from 9.0- Specified by:
publishConfigurationin interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Since:
- 7.20
-
bootstrapDatabase
@Deprecated public void bootstrapDatabase(com.atlassian.config.db.DatabaseDetails var1, boolean var2) throws com.atlassian.config.bootstrap.BootstrapException
Deprecated.since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates. This will be removed from 9.0- Specified by:
bootstrapDatabasein interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Specified by:
bootstrapDatabasein interfaceBootstrapStatusProvider- Throws:
com.atlassian.config.bootstrap.BootstrapException- Since:
- 7.20
-
getHibernateConfigurator
@Deprecated public com.atlassian.config.db.HibernateConfigurator getHibernateConfigurator()
Deprecated.since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates. This will be removed from 9.0- Specified by:
getHibernateConfiguratorin interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Since:
- 7.20
-
setHibernateConfigurator
@Deprecated public void setHibernateConfigurator(com.atlassian.config.db.HibernateConfigurator var1)
Deprecated.since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates. This will be removed from 9.0- Specified by:
setHibernateConfiguratorin interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Since:
- 7.20
-
getHibernateConfig
@Deprecated public com.atlassian.config.db.HibernateConfig getHibernateConfig()
Deprecated.since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates. This will be removed from 9.0- Specified by:
getHibernateConfigin interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Since:
- 7.20
-
getTestDatasourceConnection
@Deprecated public Connection getTestDatasourceConnection(String var1) throws com.atlassian.config.bootstrap.BootstrapException
Deprecated.since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates. This will be removed from 9.0- Specified by:
getTestDatasourceConnectionin interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Throws:
com.atlassian.config.bootstrap.BootstrapException- Since:
- 7.20
-
databaseContainsExistingData
public boolean databaseContainsExistingData(Connection var1)
- Specified by:
databaseContainsExistingDatain interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Specified by:
databaseContainsExistingDatain interfaceBootstrapStatusProvider
-
getTestDatabaseConnection
@Deprecated public Connection getTestDatabaseConnection(com.atlassian.config.db.DatabaseDetails var1) throws com.atlassian.config.bootstrap.BootstrapException
Deprecated.since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates. This will be removed from 9.0- Specified by:
getTestDatabaseConnectionin interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager- Throws:
com.atlassian.config.bootstrap.BootstrapException- Since:
- 7.20
-
getDatabaseDetail
@Deprecated public Optional<com.atlassian.config.db.DatabaseDetails> getDatabaseDetail(String database) throws com.atlassian.config.ConfigurationException
Deprecated.since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates. This will be removed from 9.0Description copied from interface:BootstrapManagerInternalGet Db configuration from config file if we are using db.first setup type- Specified by:
getDatabaseDetailin interfaceBootstrapManagerInternal- Parameters:
database- the name of database- Returns:
- Optional Database Configuration object
- Throws:
com.atlassian.config.ConfigurationException- Since:
- 7.20
-
performPersistenceUpgrade
@Deprecated public boolean performPersistenceUpgrade()
Deprecated.since 8.6. Due to security concern related to Velocity Template and not in use in velocity templates. This will be removed from 9.0Description copied from interface:BootstrapManagerInternalPerform upgrade of DB configuration- Specified by:
performPersistenceUpgradein interfaceBootstrapManagerInternal- Returns:
- true if successful, false if failed
- Since:
- 8.6
-
-