Class SetupDatabaseConnectionAction

java.lang.Object
com.opensymphony.xwork2.ActionSupport
com.atlassian.bamboo.ww2.BambooActionSupport
com.atlassian.bamboo.ww2.actions.setup.AbstractSetupAction
com.atlassian.bamboo.ww2.actions.setup.SetupDatabaseConnectionAction
All Implemented Interfaces:
JsonStreamingAction, ErrorCollection, BambooSessionAware, BypassValidationAware, JsonStatusProvider, NavigationAware, DomainObjectSecurityAware, GlobalReadSecurityAware, ReturnUrlAware, com.atlassian.config.internal.SetupConstants, com.atlassian.core.i18n.I18nTextProvider, com.atlassian.struts.TextProvider, com.atlassian.struts.ValidationAware, com.opensymphony.xwork.ValidationAware, com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable, org.apache.struts2.util.ServletContextAware

public class SetupDatabaseConnectionAction extends AbstractSetupAction implements org.apache.struts2.util.ServletContextAware, JsonStatusProvider, BypassValidationAware
See Also:
  • Constructor Details

    • SetupDatabaseConnectionAction

      public SetupDatabaseConnectionAction()
  • Method Details

    • input

      public String input() throws Exception
      Overrides:
      input in class com.opensymphony.xwork2.ActionSupport
      Throws:
      Exception
    • execute

      public String execute()
      Specified by:
      execute in interface com.opensymphony.xwork2.Action
      Overrides:
      execute in class com.opensymphony.xwork2.ActionSupport
    • isValidationBypassed

      public boolean isValidationBypassed()
      Specified by:
      isValidationBypassed in interface BypassValidationAware
    • setBackButton

      public void setBackButton(String backButton)
    • getConnectionTypes

      public List<com.atlassian.core.util.PairType> getConnectionTypes()
    • getSelectedDatabase

      public String getSelectedDatabase()
    • setSelectedDatabase

      public void setSelectedDatabase(String selectedDatabase)
    • getConnectionChoice

      public String getConnectionChoice()
    • setConnectionChoice

      public void setConnectionChoice(String connectionChoice)
    • getDatasourceName

      public String getDatasourceName()
    • setDatasourceName

      public void setDatasourceName(String datasourceName)
    • getDbConfigInfo

      public com.atlassian.config.db.DatabaseDetails getDbConfigInfo()
    • setDbConfigInfo

      public void setDbConfigInfo(com.atlassian.config.db.DatabaseDetails dbDetails)
    • setServletContext

      public void setServletContext(javax.servlet.ServletContext context)
      Specified by:
      setServletContext in interface org.apache.struts2.util.ServletContextAware
    • getWaitMessage

      public String getWaitMessage()
    • getWaitStep

      public int getWaitStep()
    • getJsonStatus

      public com.opensymphony.webwork.dispatcher.json.JSONObject getJsonStatus() throws Exception
      Specified by:
      getJsonStatus in interface JsonStatusProvider
      Returns:
      JSONObject with status information required to update the UI.
      Throws:
      Exception