Class Database
java.lang.Object
com.opensymphony.xwork2.ActionSupport
com.atlassian.crowd.console.action.BaseAction
com.atlassian.crowd.console.action.setup.BaseSetupAction
com.atlassian.crowd.console.action.setup.Database
- 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
Select the type of database to configure Crowd with:
- Embedded (HSQLDB)
- External JDBC (C3P0 pooled)
Once a database type is correctly selected, this action will configure the database with the appropriate schema.
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.atlassian.crowd.console.action.setup.BaseSetupAction
SELECT_SETUP_STEP
Fields inherited from class com.atlassian.crowd.console.action.BaseAction
actionHelper, actionMessageAlertColor, ALERT_BLUE, ALERT_GREEN, ALERT_RED, ALERT_YELLOW, applicationManager, applicationService, clientProperties, clusterService, crowdLicenseManager, directoryManager, initialLoad, propertyManager, rememberMeService, SMALL_AVATAR_SIZE, smallAvatarUrl, tab, tokenAuthenticationManager
Fields inherited from class com.opensymphony.xwork2.ActionSupport
container
Fields inherited from interface com.opensymphony.xwork2.Action
ERROR, INPUT, LOGIN, NONE, SUCCESS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute()
com.atlassian.config.db.DatabaseDetails
getDatabaseDetails
(String database) List<com.atlassian.config.db.DatabaseList.DatabaseType>
com.atlassian.config.db.DatabaseList
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setBannerErrorsTitle
(String title) void
setDatabaseConfiguredListeners
(DatabaseConfiguredListeners databaseConfiguredListeners) void
setDatabaseOption
(String databaseOption) void
setDatabases
(com.atlassian.config.db.DatabaseList databases) void
setJdbcDatabaseType
(String jdbcDatabaseType) void
setJdbcDriverClassName
(String jdbcDriverClassName) void
setJdbcHibernateDialect
(String jdbcHibernateDialect) void
setJdbcOverwriteData
(boolean jdbcOverwriteData) void
setJdbcPassword
(String jdbcPassword) void
setJdbcUrl
(String jdbcUrl) void
setJdbcUsername
(String jdbcUsername) void
setRequiredPluginsStartupCheck
(RequiredPluginsStartupCheck requiredPluginsStartupCheck) update()
Methods inherited from class com.atlassian.crowd.console.action.setup.BaseSetupAction
getCrowdLicenseStore, getSetupPersister, isApplicationHomeOk, isAtCorrectStep, isEverythingOk, isServlet24, setSetupPersister
Methods inherited from class com.atlassian.crowd.console.action.BaseAction
addActionError, addActionMessage, applyFieldError, applyFieldErrors, applyValidationErrors, authorisedToAccessCrowdAdminConsole, authorisedToAccessCrowdConsole, bindInformationAboutLicense, containsActionMessages, containsErrorMessages, directory, findAvatarUrl, getActionMessageAlertColor, getBootstrapManager, getCrowdApplication, getCurrentLicenseResourceTotal, getDisplayableLink, getHttpRequest, getImageLocation, getImageTitle, getLabel, getLicense, getLink, getLocaleProvider, getPasswordComplexityMessage, getRemoteUser, getSession, getSitemeshPageProperties, getSmallAvatarUrl, getTab, getText, getText, getTextProvider, getUserName, getWebFragmentsContextMap, getWebInterfaceManager, getWebItemsForSection, getWebResourceManager, getWebSectionsForLocation, getXsrfToken, getXsrfTokenName, isAtResourceLimit, isAuthenticated, isDataCenterLicense, isEvaluation, isGroupAdmin, isInitialLoad, isLicenseExpired, isLicenseForged, isRestartRequiredToEnableClustering, isSubscription, isSysAdmin, isWithinGracePeriod, renderFreemarkerTemplate, resolveAvatarUri, setActionHelper, setApplicationManager, setApplicationService, setClientProperties, setClusterService, setCrowdApplication, setCrowdLicenseManager, setDirectoryManager, setPropertyManager, setRememberMeService, setTab, setTokenAuthenticationManager, setWebInterfaceManager, setWebResourceManager, setXsrfTokenGenerator
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getContainer, getFieldErrors, getFormatted, getLocale, getText, getText, getText, getText, getText, getText, getText, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
-
Field Details
-
DATABASE_STEP
- See Also:
-
-
Constructor Details
-
Database
public Database()
-
-
Method Details
-
execute
- Specified by:
execute
in interfacecom.opensymphony.xwork2.Action
- Overrides:
execute
in classBaseSetupAction
-
hasErrors
public boolean hasErrors()- Specified by:
hasErrors
in interfacecom.opensymphony.xwork2.interceptor.ValidationAware
- Overrides:
hasErrors
in classcom.opensymphony.xwork2.ActionSupport
-
clearErrors
public void clearErrors()- Overrides:
clearErrors
in classcom.opensymphony.xwork2.ActionSupport
-
update
- Overrides:
update
in classBaseSetupAction
-
getStepName
- Specified by:
getStepName
in classBaseSetupAction
-
getDatabaseDetails
-
getDatabaseOption
-
setDatabaseOption
-
getDatabaseList
-
getEmbeddedValue
-
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
-
setJdbcDatabaseType
-
getJdbcDriverClassName
-
setJdbcDriverClassName
-
getJdbcUrl
-
setJdbcUrl
-
getJdbcUsername
-
setJdbcUsername
-
getJdbcPassword
-
setJdbcPassword
-
getJdbcHibernateDialect
-
setJdbcHibernateDialect
-
isJdbcOverwriteData
public boolean isJdbcOverwriteData() -
setJdbcOverwriteData
public void setJdbcOverwriteData(boolean jdbcOverwriteData) -
isOverwriteExistingData
public boolean isOverwriteExistingData() -
setRequiredPluginsStartupCheck
-
setDatabaseConfiguredListeners
-
getRequiredPluginsStartupCheck
-
getDatabaseOptions
-
isDatabaseContainsExistingData
public boolean isDatabaseContainsExistingData() -
isClusteringEnabled
public boolean isClusteringEnabled() -
isFormEnabled
public boolean isFormEnabled() -
hasCustomBannerErrors
public boolean hasCustomBannerErrors() -
getCustomBannerErrors
-
setBannerErrorsTitle
-
getCustomBannerErrorsTitle
-