com.atlassian.bamboo.ww2.actions.setup
Class SetupUtilityBean
java.lang.Object
com.atlassian.bamboo.ww2.actions.setup.SetupUtilityBean
public class SetupUtilityBean
- extends java.lang.Object
Method Summary |
BambooUserManager |
getBambooUserManager()
|
BootstrapManager |
getBootstrapManager()
|
java.lang.String |
getDefaultBaseUrl(java.lang.String requestUrl,
java.lang.String servletPath)
See if we can determine the default base url from the servlet request... |
void |
setBambooUserManager(BambooUserManager bambooUserManager)
|
void |
setupDatasourceDatabase(java.lang.String selectedDatabase,
com.atlassian.config.db.DatabaseDetails dbDetails,
java.lang.String datasourceName,
javax.servlet.ServletContext servletContext,
ErrorCollection errorCollection)
|
void |
setupDefaultGeneralConfiguration(java.lang.String requestUrl,
java.lang.String servletPath,
ErrorCollection errorCollection)
|
void |
setupEmbeddedDatabase(javax.servlet.ServletContext servletContext,
ErrorCollection errorCollection)
|
void |
setupGeneralConfiguration(java.lang.String instanceName,
java.lang.String baseUrl,
java.lang.String configDir,
java.lang.String buildWorkingDir,
java.lang.String buildDir,
java.lang.String artifactsDir,
java.lang.String brokerURI,
ErrorCollection errorCollection)
|
void |
setupStandardDatabase(java.lang.String selectedDatabase,
com.atlassian.config.db.DatabaseDetails dbDetails,
javax.servlet.ServletContext servletContext,
ErrorCollection errorCollection)
|
void |
setupUser(java.lang.String username,
java.lang.String password,
java.lang.String email,
java.lang.String fullName,
ErrorCollection errorCollection)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BAMBOO_HOME_EXPRESSION
protected static final java.lang.String BAMBOO_HOME_EXPRESSION
EMBEDDED_DATABASE_TYPE
public static final java.lang.String EMBEDDED_DATABASE_TYPE
- See Also:
- Constant Field Values
SetupUtilityBean
public SetupUtilityBean()
setupGeneralConfiguration
public void setupGeneralConfiguration(java.lang.String instanceName,
java.lang.String baseUrl,
java.lang.String configDir,
java.lang.String buildWorkingDir,
java.lang.String buildDir,
java.lang.String artifactsDir,
@Nullable
java.lang.String brokerURI,
ErrorCollection errorCollection)
throws java.net.URISyntaxException,
com.atlassian.config.ConfigurationException
- Throws:
java.net.URISyntaxException
com.atlassian.config.ConfigurationException
setupDefaultGeneralConfiguration
public void setupDefaultGeneralConfiguration(java.lang.String requestUrl,
java.lang.String servletPath,
ErrorCollection errorCollection)
throws java.net.URISyntaxException,
com.atlassian.config.ConfigurationException
- Throws:
java.net.URISyntaxException
com.atlassian.config.ConfigurationException
getDefaultBaseUrl
public java.lang.String getDefaultBaseUrl(java.lang.String requestUrl,
java.lang.String servletPath)
- See if we can determine the default base url from the servlet request... otherwise use a preset default one
- Parameters:
request
- - httpservletrequest to try and obtain base url from.
- Returns:
- The url
setupEmbeddedDatabase
public void setupEmbeddedDatabase(javax.servlet.ServletContext servletContext,
ErrorCollection errorCollection)
throws com.atlassian.config.ConfigurationException
- Throws:
com.atlassian.config.ConfigurationException
setupStandardDatabase
public void setupStandardDatabase(java.lang.String selectedDatabase,
com.atlassian.config.db.DatabaseDetails dbDetails,
javax.servlet.ServletContext servletContext,
ErrorCollection errorCollection)
setupDatasourceDatabase
public void setupDatasourceDatabase(java.lang.String selectedDatabase,
com.atlassian.config.db.DatabaseDetails dbDetails,
java.lang.String datasourceName,
javax.servlet.ServletContext servletContext,
ErrorCollection errorCollection)
setupUser
public void setupUser(java.lang.String username,
java.lang.String password,
java.lang.String email,
java.lang.String fullName,
ErrorCollection errorCollection)
getBootstrapManager
public BootstrapManager getBootstrapManager()
setBambooUserManager
public void setBambooUserManager(@Nullable
BambooUserManager bambooUserManager)
getBambooUserManager
@Nullable
public BambooUserManager getBambooUserManager()
Copyright © 2011 Atlassian. All Rights Reserved.