Class SetupUtilityBean


  • public class SetupUtilityBean
    extends Object
    • Field Detail

      • BAMBOO_SHARED_HOME_EXPRESSION

        protected static final String BAMBOO_SHARED_HOME_EXPRESSION
      • BAMBOO_HOME_EXPRESSION

        protected static final String BAMBOO_HOME_EXPRESSION
    • Constructor Detail

      • SetupUtilityBean

        public SetupUtilityBean()
    • Method Detail

      • getDefaultBaseUrl

        public String getDefaultBaseUrl​(String requestUrl,
                                        String servletPath)
        See if we can determine the default base url from the servlet request... otherwise use a preset default one
        Parameters:
        requestUrl - - request url
        servletPath - - servlet path
        Returns:
        The url
      • setupAgentsSecurityToken

        public void setupAgentsSecurityToken​(@NotNull
                                             @NotNull ErrorCollection errorCollection,
                                             boolean featureEnabled)
        Initializes the agent security token authentication feature and all related settings for this Bamboo instance.
        Parameters:
        errorCollection - error collection to which errors should be appended if they occur
        featureEnabled - whether the feature should be enabled
      • setupEmbeddedDatabase

        public void setupEmbeddedDatabase​(javax.servlet.ServletContext servletContext,
                                          ErrorCollection errorCollection)
                                   throws com.atlassian.config.ConfigurationException
        Throws:
        com.atlassian.config.ConfigurationException
      • setupStandardDatabase

        public void setupStandardDatabase​(String selectedDatabase,
                                          com.atlassian.config.db.DatabaseDetails dbDetails,
                                          javax.servlet.ServletContext servletContext,
                                          ErrorCollection errorCollection)
      • setupDatasourceDatabase

        public void setupDatasourceDatabase​(String selectedDatasource,
                                            com.atlassian.config.db.DatabaseDetails dbDetails,
                                            String datasourceName,
                                            javax.servlet.ServletContext servletContext,
                                            ErrorCollection errorCollection)