Class SetupUtilityBean
java.lang.Object
com.atlassian.bamboo.ww2.actions.setup.SetupUtilityBean
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDefaultBaseUrl(String requestUrl, String servletPath) See if we can determine the default base url from the servlet request... otherwise use a preset default onevoidvoidsetupAgentsSecurityToken(@NotNull ErrorCollection errorCollection, boolean featureEnabled) Initializes the agent security token authentication feature and all related settings for this Bamboo instance.voidsetupDatasourceDatabase(String selectedDatasource, com.atlassian.config.db.DatabaseDetails dbDetails, String datasourceName, javax.servlet.ServletContext servletContext, ErrorCollection errorCollection) voidsetupEmbeddedDatabase(javax.servlet.ServletContext servletContext, ErrorCollection errorCollection) voidsetupGeneralConfiguration(@Nullable String instanceName, String baseUrl, String configDir, String buildWorkingDir, String buildDir, String artifactsDir, @Nullable String brokerClientURI, String repositoryLogsDir, ErrorCollection errorCollection) voidsetupStandardDatabase(String selectedDatabase, com.atlassian.config.db.DatabaseDetails dbDetails, javax.servlet.ServletContext servletContext, ErrorCollection errorCollection) voidsetupUser(String username, String password, String email, String fullName, ErrorCollection errorCollection)
-
Field Details
-
BAMBOO_SHARED_HOME_EXPRESSION
-
BAMBOO_HOME_EXPRESSION
-
EMBEDDED_DATABASE_TYPE
- See Also:
-
-
Constructor Details
-
SetupUtilityBean
public SetupUtilityBean()
-
-
Method Details
-
markGeneralConfigReady
public void markGeneralConfigReady() -
setupGeneralConfiguration
public void setupGeneralConfiguration(@Nullable @Nullable String instanceName, String baseUrl, String configDir, String buildWorkingDir, String buildDir, String artifactsDir, @Nullable @Nullable String brokerClientURI, String repositoryLogsDir, ErrorCollection errorCollection) throws URISyntaxException, com.atlassian.config.ConfigurationException - Throws:
URISyntaxExceptioncom.atlassian.config.ConfigurationException
-
getDefaultBaseUrl
See if we can determine the default base url from the servlet request... otherwise use a preset default one- Parameters:
requestUrl- - request urlservletPath- - 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 occurfeatureEnabled- 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) -
setupUser
public void setupUser(String username, String password, String email, String fullName, ErrorCollection errorCollection)
-