public class BootstrapStatusProviderImpl extends Object implements BootstrapStatusProvider, BootstrapManagerInternal
JWT_KEY_LENGTH, JWT_PRIVATE_KEY, JWT_PUBLIC_KEYATLASSIAN_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| Modifier and Type | Method and Description |
|---|---|
void |
bootstrapDatabase(com.atlassian.config.db.DatabaseDetails var1,
boolean var2)
Deprecated.
since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates.
This will be removed from 8.0
|
void |
bootstrapDatasource(String var1,
String var2)
Deprecated.
since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates.
This will be removed from 8.0
|
void |
bootstrapSharedConfiguration(SharedConfigurationMap sharedConfig)
Deprecated.
since 7.20. As copied from BootstrapManager and deprecated in
BootstrapManager.
This will be removed from 8.0 |
void |
checkConfigurationOnStartup()
Deprecated.
since 7.20, Due to security concern related to Velocity Template.
This will be removed in 8.0.
|
void |
cleanupOnShutdown()
Deprecated.
since 7.20, Due to security concern related to Velocity Template.
This will be removed in 8.0.
|
boolean |
databaseContainsExistingData(Connection var1) |
com.atlassian.config.ApplicationConfiguration |
getApplicationConfig() |
String |
getApplicationHome() |
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 8.0
|
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 8.0
|
String |
getConfiguredApplicationHome()
Deprecated.
since 7.20. As copied from BootstrapManager and deprecated in
BootstrapManager. Use ApplicationProperties.getHomeDirectory() (plugins) or confluenceHome Spring bean (core)
This will be removed from 8.0 |
File |
getConfiguredLocalHome()
Deprecated.
since 7.20. As copied from BootstrapManager and deprecated in
BootstrapManager. Use ApplicationProperties.getLocalHomeDirectory() (plugins) or localHome Spring bean (core)
This will be removed from 8.0 |
String |
getConfluenceHome()
Deprecated.
since 7.20. As copied from BootstrapManager and deprecated in
BootstrapManager. Use ApplicationProperties.getHomeDirectory() (plugins) or confluenceHome Spring bean (core)
This will be removed from 8.0 |
Optional<com.atlassian.config.db.DatabaseDetails> |
getDatabaseDetail(String database)
Deprecated.
since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates.
This will be removed from 8.0
|
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.
|
String |
getFilePathProperty(String var1) |
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 8.0
|
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 8.0
|
String |
getHibernateDialect()
Returns the SQL dialect being used by Hibernate.
|
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 8.0
|
static BootstrapStatusProvider |
getInstance() |
File |
getLocalHome()
Deprecated.
since 7.20. As copied from BootstrapManager and deprecated in
BootstrapManager. Use ApplicationProperties.getLocalHomeDirectory() (plugins) or the localHome Spring bean (core)
This will be removed from 8.0 |
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 8.0
|
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 8.0
|
Object |
getProperty(String key) |
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 8.0
|
com.atlassian.config.setup.SetupPersister |
getSetupPersister() |
File |
getSharedHome()
Deprecated.
since 7.20. As copied from BootstrapManager and deprecated in
BootstrapManager. Use ApplicationProperties.getSharedHomeDirectory() (plugins) or the sharedHome Spring bean (core)
This will be removed from 8.0 |
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.
|
Connection |
getTestDatabaseConnection(com.atlassian.config.db.DatabaseDetails 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 8.0
|
Connection |
getTestDatasourceConnection(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 8.0
|
String |
getWebAppContextPath() |
void |
init()
Deprecated.
since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates.
This will be removed from 8.0
|
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 8.0
|
boolean |
isBootstrapped() |
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 8.0
|
boolean |
isSetupComplete() |
boolean |
isWebAppContextPathSet() |
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 8.0
|
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 8.0
|
void |
save()
Deprecated.
since 7.20. Due to security concern related to Velocity Template and not in use in velocity templates.
This will be removed from 8.0
|
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 8.0
|
void |
setConfluenceHome(String confluenceHome)
Deprecated.
since 7.20. As copied from BootstrapManager and deprecated in
BootstrapManager.
This will be removed from 8.0 |
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 8.0
|
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 8.0
|
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.
|
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 8.0
|
void |
setWebAppContextPath(String webAppContextPath)
Deprecated.
since 7.20. As copied from BootstrapManager and deprecated in
BootstrapManager.
This will be removed from 8.0 |
public static BootstrapStatusProvider getInstance()
public boolean isSetupComplete()
isSetupComplete in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagerisSetupComplete in interface BootstrapStatusProviderpublic boolean isBootstrapped()
isBootstrapped in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagerisBootstrapped in interface BootstrapStatusProviderpublic Object getProperty(String key)
getProperty in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagergetProperty in interface BootstrapStatusProvider@Deprecated public void setProperty(String property, Object value)
setProperty in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagerpublic String getHibernateDialect()
getHibernateDialect in interface BootstrapManagergetHibernateDialect in interface BootstrapStatusProviderAvailableSettings.DIALECTpublic String getWebAppContextPath()
getWebAppContextPath in interface BootstrapManagergetWebAppContextPath in interface BootstrapStatusProviderpublic boolean isWebAppContextPathSet()
isWebAppContextPathSet in interface BootstrapManagerisWebAppContextPathSet in interface BootstrapStatusProvider@Deprecated public File getSharedHome()
BootstrapManager. Use ApplicationProperties.getSharedHomeDirectory() (plugins) or the sharedHome Spring bean (core)
This will be removed from 8.0This 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.
getSharedHome in interface BootstrapManagerpublic com.atlassian.config.ApplicationConfiguration getApplicationConfig()
getApplicationConfig in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagergetApplicationConfig in interface BootstrapStatusProviderpublic com.atlassian.config.setup.SetupPersister getSetupPersister()
getSetupPersister in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagergetSetupPersister in interface BootstrapStatusProvider@Deprecated public String getString(String key)
getString in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager@Deprecated public String getConfluenceHome()
BootstrapManager. Use ApplicationProperties.getHomeDirectory() (plugins) or confluenceHome Spring bean (core)
This will be removed from 8.0getConfluenceHome in interface BootstrapManager@Deprecated public File getLocalHome()
BootstrapManager. Use ApplicationProperties.getLocalHomeDirectory() (plugins) or the localHome Spring bean (core)
This will be removed from 8.0This 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.
getLocalHome in interface BootstrapManager@Deprecated public void setConfluenceHome(String confluenceHome)
BootstrapManager.
This will be removed from 8.0setConfluenceHome in interface BootstrapManagerconfluenceHome - @Deprecated public File getConfiguredLocalHome()
BootstrapManager. Use ApplicationProperties.getLocalHomeDirectory() (plugins) or localHome Spring bean (core)
This will be removed from 8.0
Only bootstrap code should need this method. Most code should use
getLocalHome() instead.
getConfiguredLocalHome in interface BootstrapManager@Deprecated public void setWebAppContextPath(String webAppContextPath) throws com.atlassian.config.ConfigurationException
BootstrapManager.
This will be removed from 8.0setWebAppContextPath in interface BootstrapManagerwebAppContextPath - com.atlassian.config.ConfigurationException@Deprecated public void checkConfigurationOnStartup() throws com.atlassian.config.bootstrap.BootstrapException
checkConfigurationOnStartup in interface BootstrapManagercom.atlassian.config.bootstrap.BootstrapException@Deprecated public void cleanupOnShutdown()
cleanupOnShutdown in interface BootstrapManager@Deprecated public Optional<String> getDataSourceName()
getDataSourceName in interface BootstrapManager@Deprecated public void bootstrapSharedConfiguration(SharedConfigurationMap sharedConfig) throws com.atlassian.config.bootstrap.BootstrapException
BootstrapManager.
This will be removed from 8.0bootstrapSharedConfiguration in interface BootstrapManagersharedConfig - com.atlassian.config.bootstrap.BootstrapException@Deprecated public boolean isPropertyTrue(String var1)
isPropertyTrue in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager@Deprecated public void removeProperty(String var1)
removeProperty in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagerpublic String getFilePathProperty(String var1)
getFilePathProperty in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagergetFilePathProperty in interface BootstrapManagergetFilePathProperty in interface BootstrapStatusProvider@Deprecated public Collection getPropertyKeys()
getPropertyKeys in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager@Deprecated public Map getPropertiesWithPrefix(String var1)
getPropertiesWithPrefix in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager@Deprecated public String getBuildNumber()
getBuildNumber in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager@Deprecated public void setBuildNumber(String var1)
setBuildNumber in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager@Deprecated public boolean isApplicationHomeValid()
isApplicationHomeValid in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager@Deprecated public Properties getHibernateProperties()
getHibernateProperties in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager@Deprecated public void save() throws com.atlassian.config.ConfigurationException
save in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagercom.atlassian.config.ConfigurationException@Deprecated public void setSetupComplete(boolean var1)
setSetupComplete in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager@Deprecated public String getOperation()
getOperation in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager@Deprecated public void setOperation(String var1)
setOperation in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager@Deprecated public void bootstrapDatasource(String var1, String var2) throws com.atlassian.config.bootstrap.BootstrapException
bootstrapDatasource in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagercom.atlassian.config.bootstrap.BootstrapExceptionpublic String getApplicationHome()
getApplicationHome in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagergetApplicationHome in interface BootstrapManagergetApplicationHome in interface BootstrapStatusProvider@Deprecated public String getConfiguredApplicationHome()
BootstrapManager. Use ApplicationProperties.getHomeDirectory() (plugins) or confluenceHome Spring bean (core)
This will be removed from 8.0getConfiguredApplicationHome in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagergetConfiguredApplicationHome in interface BootstrapManager@Deprecated public String getBootstrapFailureReason()
getBootstrapFailureReason in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager@Deprecated public void init() throws com.atlassian.config.bootstrap.BootstrapException
init in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagercom.atlassian.config.bootstrap.BootstrapException@Deprecated public void publishConfiguration()
publishConfiguration in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager@Deprecated public void bootstrapDatabase(com.atlassian.config.db.DatabaseDetails var1, boolean var2) throws com.atlassian.config.bootstrap.BootstrapException
bootstrapDatabase in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagerbootstrapDatabase in interface BootstrapStatusProvidercom.atlassian.config.bootstrap.BootstrapException@Deprecated public com.atlassian.config.db.HibernateConfigurator getHibernateConfigurator()
getHibernateConfigurator in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager@Deprecated public void setHibernateConfigurator(com.atlassian.config.db.HibernateConfigurator var1)
setHibernateConfigurator in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager@Deprecated public com.atlassian.config.db.HibernateConfig getHibernateConfig()
getHibernateConfig in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager@Deprecated public Connection getTestDatasourceConnection(String var1) throws com.atlassian.config.bootstrap.BootstrapException
getTestDatasourceConnection in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagercom.atlassian.config.bootstrap.BootstrapExceptionpublic boolean databaseContainsExistingData(Connection var1)
databaseContainsExistingData in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagerdatabaseContainsExistingData in interface BootstrapStatusProvider@Deprecated public Connection getTestDatabaseConnection(com.atlassian.config.db.DatabaseDetails var1) throws com.atlassian.config.bootstrap.BootstrapException
getTestDatabaseConnection in interface com.atlassian.config.bootstrap.AtlassianBootstrapManagercom.atlassian.config.bootstrap.BootstrapException@Deprecated public Optional<com.atlassian.config.db.DatabaseDetails> getDatabaseDetail(String database) throws com.atlassian.config.ConfigurationException
BootstrapManagerInternalgetDatabaseDetail in interface BootstrapManagerInternaldatabase - the name of databasecom.atlassian.config.ConfigurationExceptionCopyright © 2003–2022 Atlassian. All rights reserved.