java.lang.Object
com.opensymphony.xwork2.ActionSupport
All Implemented Interfaces:
com.opensymphony.xwork2.Action, com.opensymphony.xwork2.interceptor.ValidationAware, com.opensymphony.xwork2.LocaleProvider, com.opensymphony.xwork2.TextProvider, com.opensymphony.xwork2.Validateable, Serializable

public class Database extends BaseSetupAction
Select the type of database to configure Crowd with:
  1. Embedded (HSQLDB)
  2. External JDBC (C3P0 pooled)

Once a database type is correctly selected, this action will configure the database with the appropriate schema.

See Also:
  • Field Details

  • Constructor Details

    • Database

      public Database()
  • Method Details

    • execute

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

      public boolean hasErrors()
      Specified by:
      hasErrors in interface com.opensymphony.xwork2.interceptor.ValidationAware
      Overrides:
      hasErrors in class com.opensymphony.xwork2.ActionSupport
    • clearErrors

      public void clearErrors()
      Overrides:
      clearErrors in class com.opensymphony.xwork2.ActionSupport
    • update

      public String update()
      Overrides:
      update in class BaseSetupAction
    • getStepName

      public String getStepName()
      Specified by:
      getStepName in class BaseSetupAction
    • getDatabaseDetails

      public com.atlassian.config.db.DatabaseDetails getDatabaseDetails(String database)
    • getDatabaseOption

      public String getDatabaseOption()
    • setDatabaseOption

      public void setDatabaseOption(String databaseOption)
    • getDatabaseList

      public List<com.atlassian.config.db.DatabaseList.DatabaseType> getDatabaseList()
    • getEmbeddedValue

      public String getEmbeddedValue()
    • getJdbcValue

      public String getJdbcValue()
    • isEmbeddedSelected

      public boolean isEmbeddedSelected()
    • isJdbcSelected

      public boolean isJdbcSelected()
    • getDatabases

      public com.atlassian.config.db.DatabaseList getDatabases()
    • setDatabases

      public void setDatabases(com.atlassian.config.db.DatabaseList databases)
    • getJdbcDatabaseType

      public String getJdbcDatabaseType()
    • setJdbcDatabaseType

      public void setJdbcDatabaseType(String jdbcDatabaseType)
    • getJdbcDriverClassName

      public String getJdbcDriverClassName()
    • setJdbcDriverClassName

      public void setJdbcDriverClassName(String jdbcDriverClassName)
    • getJdbcUrl

      public String getJdbcUrl()
    • setJdbcUrl

      public void setJdbcUrl(String jdbcUrl)
    • getJdbcUsername

      public String getJdbcUsername()
    • setJdbcUsername

      public void setJdbcUsername(String jdbcUsername)
    • getJdbcPassword

      public String getJdbcPassword()
    • setJdbcPassword

      public void setJdbcPassword(String jdbcPassword)
    • getJdbcHibernateDialect

      public String getJdbcHibernateDialect()
    • setJdbcHibernateDialect

      public void setJdbcHibernateDialect(String jdbcHibernateDialect)
    • isJdbcOverwriteData

      public boolean isJdbcOverwriteData()
    • setJdbcOverwriteData

      public void setJdbcOverwriteData(boolean jdbcOverwriteData)
    • isOverwriteExistingData

      public boolean isOverwriteExistingData()
    • setRequiredPluginsStartupCheck

      public void setRequiredPluginsStartupCheck(RequiredPluginsStartupCheck requiredPluginsStartupCheck)
    • setDatabaseConfiguredListeners

      public void setDatabaseConfiguredListeners(DatabaseConfiguredListeners databaseConfiguredListeners)
    • getRequiredPluginsStartupCheck

      public RequiredPluginsStartupCheck getRequiredPluginsStartupCheck()
    • getDatabaseOptions

      public List<Map<String,String>> getDatabaseOptions()
    • isDatabaseContainsExistingData

      public boolean isDatabaseContainsExistingData()
    • isClusteringEnabled

      public boolean isClusteringEnabled()
    • isFormEnabled

      public boolean isFormEnabled()
    • hasCustomBannerErrors

      public boolean hasCustomBannerErrors()
    • getCustomBannerErrors

      public List<Database.CustomBannerError> getCustomBannerErrors()
    • setBannerErrorsTitle

      public void setBannerErrorsTitle(String title)
    • getCustomBannerErrorsTitle

      public Optional<String> getCustomBannerErrorsTitle()