public abstract class AbstractSetupDatabaseAction extends AbstractSetupAction
Modifier and Type | Field and Description |
---|---|
protected static String |
DATASOURCE_PREFIX |
protected ConfluenceDatabaseDetails |
dbDetails |
bundlePluginService, DEMO_CONTENT_ZIP_FILE, SELECT_BUNDLE, SETUP_BUNDLE_PLUGINS_CREDENTIAL, SETUP_CLUSTER, SETUP_CLUSTER_TO_STANDALONE, SETUP_CONTENT_BLANK, SETUP_CONTENT_DEMO, SETUP_CONTENT_IMPORT, SETUP_CUSTOM, SETUP_DB_CLUSTER_CONN_TYPE, SETUP_DB_CONN_TYPE, SETUP_DB_DATASOURCE, SETUP_DB_EMBEDDED, SETUP_DB_STANDARD, SETUP_DB_TYPE_DATASOURCE, SETUP_DB_TYPE_STANDARD, SETUP_HAS_SELECTED_BUNDLE_PLUGINS, SETUP_PATHS, SETUP_QUICK, SETUP_SESSION_ID_KEY, SETUP_SKIP_TO_NEXT_STEP, SETUP_SKIP_TO_NEXT_STEP_CLUSTER, SETUP_USER_INTERNAL, SETUP_USER_JAACS
accessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
Constructor and Description |
---|
AbstractSetupDatabaseAction() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkDatabaseURL(com.atlassian.config.db.DatabaseDetails dbDetails)
Validate prefix of Database URL.
|
protected boolean |
checkDriver(com.atlassian.config.db.DatabaseDetails dbDetails)
Checks if the given database driver can be resolved in classpath.
|
protected DatabaseTestResult |
convertBootstrapException(String databaseType,
com.atlassian.config.bootstrap.BootstrapException e) |
protected String |
detectDatabaseType(Connection connection) |
protected List<String> |
findDatasourceNames()
Find the configured jndi datasources
|
String |
getDatabase() |
ConfluenceDatabaseDetails |
getDbConfigInfo() |
protected List |
getErrorLevelLogsEvents() |
com.atlassian.config.db.HibernateConfig |
getHibernateConfig() |
protected void |
registerLoggingErrorEventsWithAction(List loggingEvents)
adds these logging events to action errors map so they can be displayed in the action's view
|
void |
setDatabase(String database) |
void |
setDatabaseVerifier(DatabaseVerifier databaseVerifier) |
void |
setDbConfigInfo(ConfluenceDatabaseDetails dbDetails) |
void |
setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig) |
protected DatabaseTestResult |
testConnection(String databaseType,
Connection connection) |
getBootstrapManager, getBundledPlugins, getContainerManager, getLocale, getServerId, getSetupPersister, getSetupSessionId, getSingletonFromMainContext, getSupportEntitlementNumber, getXsrfToken, getXsrfTokenGenerator, isPermitted, retrieveSingletonFromMainContext, saveAuthenticationInfo, setBootstrapSidManager, setBundlePluginService, setContainerManager, setLicenseService, setSetupPersister, setXsrfTokenGenerator, transitionFromColdToTenantedState, transitionFromColdToVacantState, transitionFromVacantToTenantedState
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getAccessMode, getActionName, getActionName, getAuthenticatedUser, getCancel, getCancelResult, getConfluenceAccessManager, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPersonService, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUserAccessor, getUserByName, getUserFullName, getUserHasBrowseUsersPermission, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setAccessModeService, setApiDateFormatService, setApiPersonService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSkipAccessCheck, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, withServletRequestSupplier
addActionError, addActionMessage, addFieldError, execute, getActionErrors, getActionMessages, getErrorMessages, getErrors, getFieldErrors, getText, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, setActionErrors, setActionMessages, setFieldErrors, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
validate
protected static final String DATASOURCE_PREFIX
protected ConfluenceDatabaseDetails dbDetails
public com.atlassian.config.db.HibernateConfig getHibernateConfig()
public void setHibernateConfig(com.atlassian.config.db.HibernateConfig hibernateConfig)
public void setDatabaseVerifier(DatabaseVerifier databaseVerifier)
public String getDatabase()
public void setDatabase(String database)
protected String detectDatabaseType(Connection connection) throws SQLException
SQLException
protected List getErrorLevelLogsEvents()
protected void registerLoggingErrorEventsWithAction(List loggingEvents)
loggingEvents
- List of DatedLoggingEvent objectspublic ConfluenceDatabaseDetails getDbConfigInfo()
public void setDbConfigInfo(ConfluenceDatabaseDetails dbDetails)
protected boolean checkDriver(com.atlassian.config.db.DatabaseDetails dbDetails)
dbDetails
- database detailprotected boolean checkDatabaseURL(com.atlassian.config.db.DatabaseDetails dbDetails)
dbDetails
- database detailprotected List<String> findDatasourceNames()
protected DatabaseTestResult testConnection(String databaseType, Connection connection)
protected DatabaseTestResult convertBootstrapException(String databaseType, com.atlassian.config.bootstrap.BootstrapException e)
Copyright © 2003–2020 Atlassian. All rights reserved.