public class SetupUtilityBean extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
BAMBOO_HOME_EXPRESSION |
static String |
EMBEDDED_DATABASE_TYPE |
Constructor and Description |
---|
SetupUtilityBean() |
Modifier and Type | Method and Description |
---|---|
BootstrapManager |
getBootstrapManager() |
String |
getDefaultBaseUrl(String requestUrl,
String servletPath)
See if we can determine the default base url from the servlet request...
|
void |
setupAgentsSecurityToken(ErrorCollection errorCollection,
boolean featureEnabled)
Initializes the agent security token authentication feature and all related settings for this Bamboo instance.
|
void |
setupDatasourceDatabase(String selectedDatasource,
com.atlassian.config.db.DatabaseDetails dbDetails,
String datasourceName,
javax.servlet.ServletContext servletContext,
ErrorCollection errorCollection) |
void |
setupDefaultGeneralConfiguration(String requestUrl,
String servletPath,
ErrorCollection errorCollection) |
void |
setupEmbeddedDatabase(javax.servlet.ServletContext servletContext,
ErrorCollection errorCollection) |
void |
setupGeneralConfiguration(String instanceName,
String baseUrl,
String configDir,
String buildWorkingDir,
String buildDir,
String artifactsDir,
String brokerURI,
ErrorCollection errorCollection) |
void |
setupGeneralConfiguration(String instanceName,
String baseUrl,
String configDir,
String buildWorkingDir,
String buildDir,
String artifactsDir,
String brokerURI,
ErrorCollection errorCollection,
boolean isOnDemand) |
void |
setupGeneralConfigurationForOnDemand(String instanceName,
String baseUrl,
String configDir,
String buildWorkingDir,
String buildDir,
String artifactsDir,
String brokerURI,
ErrorCollection errorCollection) |
void |
setupStandardDatabase(String selectedDatabase,
com.atlassian.config.db.DatabaseDetails dbDetails,
javax.servlet.ServletContext servletContext,
ErrorCollection errorCollection) |
void |
setupUser(String username,
String password,
String email,
String fullName,
ErrorCollection errorCollection) |
protected static final String BAMBOO_HOME_EXPRESSION
public static final String EMBEDDED_DATABASE_TYPE
public void setupGeneralConfiguration(String instanceName, String baseUrl, String configDir, String buildWorkingDir, String buildDir, String artifactsDir, @Nullable String brokerURI, ErrorCollection errorCollection) throws URISyntaxException, com.atlassian.config.ConfigurationException
URISyntaxException
com.atlassian.config.ConfigurationException
public void setupGeneralConfigurationForOnDemand(String instanceName, String baseUrl, String configDir, String buildWorkingDir, String buildDir, String artifactsDir, @Nullable String brokerURI, ErrorCollection errorCollection) throws URISyntaxException, com.atlassian.config.ConfigurationException
URISyntaxException
com.atlassian.config.ConfigurationException
public void setupGeneralConfiguration(@Nullable String instanceName, String baseUrl, String configDir, String buildWorkingDir, String buildDir, String artifactsDir, @Nullable String brokerURI, ErrorCollection errorCollection, boolean isOnDemand) throws URISyntaxException, com.atlassian.config.ConfigurationException
URISyntaxException
com.atlassian.config.ConfigurationException
public void setupDefaultGeneralConfiguration(String requestUrl, String servletPath, ErrorCollection errorCollection) throws URISyntaxException, com.atlassian.config.ConfigurationException
URISyntaxException
com.atlassian.config.ConfigurationException
public String getDefaultBaseUrl(String requestUrl, String servletPath)
requestUrl
- - request urlservletPath
- - servlet pathpublic void setupAgentsSecurityToken(@NotNull ErrorCollection errorCollection, boolean featureEnabled)
errorCollection
- error collection to which errors should be appended if they occurfeatureEnabled
- whether the feature should be enabledpublic void setupEmbeddedDatabase(javax.servlet.ServletContext servletContext, ErrorCollection errorCollection) throws com.atlassian.config.ConfigurationException
com.atlassian.config.ConfigurationException
public void setupStandardDatabase(String selectedDatabase, com.atlassian.config.db.DatabaseDetails dbDetails, javax.servlet.ServletContext servletContext, ErrorCollection errorCollection)
public void setupDatasourceDatabase(String selectedDatasource, com.atlassian.config.db.DatabaseDetails dbDetails, String datasourceName, javax.servlet.ServletContext servletContext, ErrorCollection errorCollection)
public void setupUser(String username, String password, String email, String fullName, ErrorCollection errorCollection)
public BootstrapManager getBootstrapManager()
Copyright © 2017 Atlassian Software Systems Pty Ltd. All rights reserved.