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
-
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 void
bootstrapDatabase(com.atlassian.config.db.DatabaseDetails var1, boolean var2)
Deprecated.since 7.20.void
bootstrapDatasource(String var1, String var2)
Deprecated.since 7.20.void
bootstrapSharedConfiguration(SharedConfigurationMap sharedConfig)
Deprecated.since 7.20.void
checkConfigurationOnStartup()
Deprecated.since 7.20, Due to security concern related to Velocity Template.void
cleanupOnShutdown()
Deprecated.since 7.20, Due to security concern related to Velocity Template.boolean
databaseContainsExistingData(Connection var1)
com.atlassian.config.ApplicationConfiguration
getApplicationConfig()
String
getApplicationHome()
String
getBootstrapFailureReason()
Deprecated.since 7.20.String
getBuildNumber()
Deprecated.since 7.20.String
getConfiguredApplicationHome()
Deprecated.since 7.20.File
getConfiguredLocalHome()
Deprecated.since 7.20.String
getConfluenceHome()
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.String
getFilePathProperty(String var1)
com.atlassian.config.db.HibernateConfig
getHibernateConfig()
Deprecated.since 7.20.com.atlassian.config.db.HibernateConfigurator
getHibernateConfigurator()
Deprecated.since 7.20.String
getHibernateDialect()
Returns the SQL dialect being used by Hibernate.Properties
getHibernateProperties()
Deprecated.since 7.20.static BootstrapStatusProvider
getInstance()
File
getLocalHome()
Deprecated.since 7.20.String
getOperation()
Deprecated.since 7.20.Map
getPropertiesWithPrefix(String var1)
Deprecated.since 7.20.Object
getProperty(String key)
Collection
getPropertyKeys()
Deprecated.since 7.20.com.atlassian.config.setup.SetupPersister
getSetupPersister()
File
getSharedHome()
Deprecated.since 7.20.String
getString(String key)
Deprecated.since 7.20.Connection
getTestDatabaseConnection(com.atlassian.config.db.DatabaseDetails var1)
Deprecated.since 7.20.Connection
getTestDatasourceConnection(String var1)
Deprecated.since 7.20.String
getWebAppContextPath()
void
init()
Deprecated.since 7.20.boolean
isApplicationHomeValid()
Deprecated.since 7.20.boolean
isBootstrapped()
boolean
isPropertyTrue(String var1)
Deprecated.since 7.20.boolean
isSetupComplete()
boolean
isWebAppContextPathSet()
void
publishConfiguration()
Deprecated.since 7.20.void
removeProperty(String var1)
Deprecated.since 7.20.void
save()
Deprecated.since 7.20.void
setBuildNumber(String var1)
Deprecated.since 7.20.void
setConfluenceHome(String confluenceHome)
Deprecated.since 7.20.void
setHibernateConfigurator(com.atlassian.config.db.HibernateConfigurator var1)
Deprecated.since 7.20.void
setOperation(String var1)
Deprecated.since 7.20.void
setProperty(String property, Object value)
Deprecated.since 7.20.void
setSetupComplete(boolean var1)
Deprecated.since 7.20.void
setWebAppContextPath(String webAppContextPath)
Deprecated.since 7.20.
-
-
-
Method Detail
-
getInstance
public static BootstrapStatusProvider getInstance()
-
isSetupComplete
public boolean isSetupComplete()
- Specified by:
isSetupComplete
in interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager
- Specified by:
isSetupComplete
in interfaceBootstrapStatusProvider
-
isBootstrapped
public boolean isBootstrapped()
- Specified by:
isBootstrapped
in interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager
- Specified by:
isBootstrapped
in interfaceBootstrapStatusProvider
-
getProperty
public Object getProperty(String key)
- Specified by:
getProperty
in interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager
- Specified by:
getProperty
in 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:
setProperty
in interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager
- Since:
- 7.20
-
getHibernateDialect
public String getHibernateDialect()
Returns the SQL dialect being used by Hibernate.- Specified by:
getHibernateDialect
in interfaceBootstrapManager
- Specified by:
getHibernateDialect
in interfaceBootstrapStatusProvider
- Returns:
- see above
- Since:
- 7.20
- See Also:
AvailableSettings.DIALECT
-
getWebAppContextPath
public String getWebAppContextPath()
- Specified by:
getWebAppContextPath
in interfaceBootstrapManager
- Specified by:
getWebAppContextPath
in interfaceBootstrapStatusProvider
-
isWebAppContextPathSet
public boolean isWebAppContextPathSet()
- Specified by:
isWebAppContextPathSet
in interfaceBootstrapManager
- Specified by:
isWebAppContextPathSet
in 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 8.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:
getSharedHome
in interfaceBootstrapManager
- Returns:
- shared home directory
-
getApplicationConfig
public com.atlassian.config.ApplicationConfiguration getApplicationConfig()
- Specified by:
getApplicationConfig
in interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager
- Specified by:
getApplicationConfig
in interfaceBootstrapStatusProvider
- Since:
- 7.20
-
getSetupPersister
public com.atlassian.config.setup.SetupPersister getSetupPersister()
- Specified by:
getSetupPersister
in interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager
- Specified by:
getSetupPersister
in 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:
getString
in 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 8.0Returns local home in standalone installation and shared home in clustered installation.- Specified by:
getConfluenceHome
in 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 8.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:
getLocalHome
in 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 8.0- Specified by:
setConfluenceHome
in 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 8.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:
getConfiguredLocalHome
in 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 8.0- Specified by:
setWebAppContextPath
in 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:
checkConfigurationOnStartup
in 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:
cleanupOnShutdown
in 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:
getDataSourceName
in 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 8.0Starts Confluence with a database configuration that has been retrieved from another cluster node.- Specified by:
bootstrapSharedConfiguration
in 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 8.0- Specified by:
isPropertyTrue
in 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 8.0- Specified by:
removeProperty
in interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager
- Since:
- 7.20
-
getFilePathProperty
public String getFilePathProperty(String var1)
- Specified by:
getFilePathProperty
in interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager
- Specified by:
getFilePathProperty
in interfaceBootstrapManager
- Specified by:
getFilePathProperty
in 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 8.0- Specified by:
getPropertyKeys
in 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 8.0- Specified by:
getPropertiesWithPrefix
in 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 8.0- Specified by:
getBuildNumber
in 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 8.0- Specified by:
setBuildNumber
in 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 8.0- Specified by:
isApplicationHomeValid
in 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 8.0- Specified by:
getHibernateProperties
in 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 8.0- Specified by:
save
in 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 8.0- Specified by:
setSetupComplete
in 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 8.0- Specified by:
getOperation
in 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 8.0- Specified by:
setOperation
in 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 8.0- Specified by:
bootstrapDatasource
in interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager
- Throws:
com.atlassian.config.bootstrap.BootstrapException
- Since:
- 7.20
-
getApplicationHome
public String getApplicationHome()
- Specified by:
getApplicationHome
in interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager
- Specified by:
getApplicationHome
in interfaceBootstrapManager
- Specified by:
getApplicationHome
in 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 8.0- Specified by:
getConfiguredApplicationHome
in interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager
- Specified by:
getConfiguredApplicationHome
in 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 8.0- Specified by:
getBootstrapFailureReason
in 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 8.0- Specified by:
init
in 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 8.0- Specified by:
publishConfiguration
in 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 8.0- Specified by:
bootstrapDatabase
in interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager
- Specified by:
bootstrapDatabase
in 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 8.0- Specified by:
getHibernateConfigurator
in 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 8.0- Specified by:
setHibernateConfigurator
in 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 8.0- Specified by:
getHibernateConfig
in 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 8.0- Specified by:
getTestDatasourceConnection
in interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager
- Throws:
com.atlassian.config.bootstrap.BootstrapException
- Since:
- 7.20
-
databaseContainsExistingData
public boolean databaseContainsExistingData(Connection var1)
- Specified by:
databaseContainsExistingData
in interfacecom.atlassian.config.bootstrap.AtlassianBootstrapManager
- Specified by:
databaseContainsExistingData
in 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 8.0- Specified by:
getTestDatabaseConnection
in 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 8.0Description copied from interface:BootstrapManagerInternal
Get Db configuration from config file if we are using db.first setup type- Specified by:
getDatabaseDetail
in interfaceBootstrapManagerInternal
- Parameters:
database
- the name of database- Returns:
- Optional Database Configuration object
- Throws:
com.atlassian.config.ConfigurationException
- Since:
- 7.20
-
-