public class BootstrapStatusProviderImpl extends Object implements BootstrapStatusProvider, BootstrapManagerInternal
JWT_KEY_LENGTH, JWT_PRIVATE_KEY, JWT_PUBLIC_KEY, SYNCHRONY_SERVICE_AUTHTOKEN
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
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.AtlassianBootstrapManager
isSetupComplete
in interface BootstrapStatusProvider
public boolean isBootstrapped()
isBootstrapped
in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
isBootstrapped
in interface BootstrapStatusProvider
public Object getProperty(String key)
getProperty
in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
getProperty
in interface BootstrapStatusProvider
@Deprecated public void setProperty(String property, Object value)
setProperty
in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
public String getHibernateDialect()
getHibernateDialect
in interface BootstrapManager
getHibernateDialect
in interface BootstrapStatusProvider
AvailableSettings.DIALECT
public String getWebAppContextPath()
getWebAppContextPath
in interface BootstrapManager
getWebAppContextPath
in interface BootstrapStatusProvider
public boolean isWebAppContextPathSet()
isWebAppContextPathSet
in interface BootstrapManager
isWebAppContextPathSet
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 BootstrapManager
public com.atlassian.config.ApplicationConfiguration getApplicationConfig()
getApplicationConfig
in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
getApplicationConfig
in interface BootstrapStatusProvider
public com.atlassian.config.setup.SetupPersister getSetupPersister()
getSetupPersister
in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
getSetupPersister
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 BootstrapManager
confluenceHome
- @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 BootstrapManager
webAppContextPath
- com.atlassian.config.ConfigurationException
@Deprecated public void checkConfigurationOnStartup() throws com.atlassian.config.bootstrap.BootstrapException
checkConfigurationOnStartup
in interface BootstrapManager
com.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 BootstrapManager
sharedConfig
- 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.AtlassianBootstrapManager
public String getFilePathProperty(String var1)
getFilePathProperty
in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
getFilePathProperty
in interface BootstrapManager
getFilePathProperty
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.AtlassianBootstrapManager
com.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.AtlassianBootstrapManager
com.atlassian.config.bootstrap.BootstrapException
public String getApplicationHome()
getApplicationHome
in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
getApplicationHome
in interface BootstrapManager
getApplicationHome
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.AtlassianBootstrapManager
getConfiguredApplicationHome
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.AtlassianBootstrapManager
com.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.AtlassianBootstrapManager
bootstrapDatabase
in interface BootstrapStatusProvider
com.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.AtlassianBootstrapManager
com.atlassian.config.bootstrap.BootstrapException
public boolean databaseContainsExistingData(Connection var1)
databaseContainsExistingData
in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
databaseContainsExistingData
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.AtlassianBootstrapManager
com.atlassian.config.bootstrap.BootstrapException
@Deprecated public Optional<com.atlassian.config.db.DatabaseDetails> getDatabaseDetail(String database) throws com.atlassian.config.ConfigurationException
BootstrapManagerInternal
getDatabaseDetail
in interface BootstrapManagerInternal
database
- the name of databasecom.atlassian.config.ConfigurationException
Copyright © 2003–2023 Atlassian. All rights reserved.
View cookie preferences