Class BootstrapStatusProviderImpl

    • Method Detail

      • isSetupComplete

        public boolean isSetupComplete()
        Specified by:
        isSetupComplete in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
        Specified by:
        isSetupComplete in interface BootstrapStatusProvider
      • isBootstrapped

        public boolean isBootstrapped()
        Specified by:
        isBootstrapped in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
        Specified by:
        isBootstrapped in interface BootstrapStatusProvider
      • getProperty

        public Object getProperty​(String key)
        Specified by:
        getProperty in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
        Specified by:
        getProperty in interface BootstrapStatusProvider
        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 interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
        Since:
        7.20
      • getSharedHome

        @Deprecated
        public 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
        Confluence 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 interface BootstrapManager
        Returns:
        shared home directory
      • getApplicationConfig

        public com.atlassian.config.ApplicationConfiguration getApplicationConfig()
        Specified by:
        getApplicationConfig in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
        Specified by:
        getApplicationConfig in interface BootstrapStatusProvider
        Since:
        7.20
      • getSetupPersister

        public com.atlassian.config.setup.SetupPersister getSetupPersister()
        Specified by:
        getSetupPersister in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
        Specified by:
        getSetupPersister in interface BootstrapStatusProvider
        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 interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
        Since:
        7.20
      • getConfluenceHome

        @Deprecated
        public 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
        Returns local home in standalone installation and shared home in clustered installation.
        Specified by:
        getConfluenceHome in interface BootstrapManager
        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 in BootstrapManager. Use ApplicationProperties.getLocalHomeDirectory() (plugins) or the localHome Spring bean (core) This will be removed from 8.0
        Confluence 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 interface BootstrapManager
        Returns:
        local home directory
      • getConfiguredLocalHome

        @Deprecated
        public 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
        Returns 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 interface BootstrapManager
        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 in BootstrapManager. This will be removed from 8.0
        Specified by:
        setWebAppContextPath in interface BootstrapManager
        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 interface BootstrapManager
        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 interface BootstrapManager
        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 interface BootstrapManager
        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 in BootstrapManager. This will be removed from 8.0
        Starts Confluence with a database configuration that has been retrieved from another cluster node.
        Specified by:
        bootstrapSharedConfiguration in interface BootstrapManager
        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 interface com.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 interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
        Since:
        7.20
      • 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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
        Throws:
        com.atlassian.config.bootstrap.BootstrapException
        Since:
        7.20
      • getConfiguredApplicationHome

        @Deprecated
        public 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
        Specified by:
        getConfiguredApplicationHome in interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
        Specified by:
        getConfiguredApplicationHome in interface BootstrapManager
        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 interface com.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 interface com.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 interface com.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 interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
        Specified by:
        bootstrapDatabase in interface BootstrapStatusProvider
        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 interface com.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 interface com.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 interface com.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 interface com.atlassian.config.bootstrap.AtlassianBootstrapManager
        Throws:
        com.atlassian.config.bootstrap.BootstrapException
        Since:
        7.20
      • 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 interface com.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.0
        Description copied from interface: BootstrapManagerInternal
        Get Db configuration from config file if we are using db.first setup type
        Specified by:
        getDatabaseDetail in interface BootstrapManagerInternal
        Parameters:
        database - the name of database
        Returns:
        Optional Database Configuration object
        Throws:
        com.atlassian.config.ConfigurationException
        Since:
        7.20