public abstract class AbstractDatabaseCreationAction extends AbstractSetupDatabaseAction
Modifier and Type | Field and Description |
---|---|
protected static String |
DATA_EXISTS |
dbDetails, log
DEMO_CONTENT_ZIP_FILE, SETUP_BUNDLE_PLUGINS_CREDENTIAL, SETUP_CLUSTER, SETUP_CLUSTER_TO_STANDALONE, SETUP_CONTENT_BLANK, SETUP_CONTENT_DEMO, SETUP_CONTENT_IMPORT, SETUP_CUSTOM, 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_QUICK, SETUP_SESSION_ID_KEY, SETUP_USER_INTERNAL, SETUP_USER_JAACS
CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, userAccessor, webInterfaceManager
Constructor and Description |
---|
AbstractDatabaseCreationAction() |
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.
|
String |
execute() |
com.atlassian.bandana.BandanaManager |
getBandanaManager() |
KeyPairInitialiser |
getKeyPairInitialiser() |
ConfluenceSidManager |
getSidManager() |
protected Set<String> |
getUnsuccessfulCodes()
Defines the set of codes by which if returned by
setupDatabase() , signifies failure(s)
during database creation. |
protected void |
persistInstanceKey()
Persists instance keys into database.
|
void |
setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager) |
void |
setKeyPairInitialiser(KeyPairInitialiser keyPairInitialiser) |
void |
setSidManager(ConfluenceSidManager sidManager) |
getDatabase, getDbConfigInfo, getErrorLevelLogsEvents, getHibernateConfig, registerLoggingErrorEventsWithAction, setDatabase, setDbConfigInfo, setHibernateConfig
getBootstrapManager, getContainerManager, getLocale, getServerId, getSetupPersister, getSetupSessionId, getSingletonFromMainContext, getSupportEntitlementNumber, isPermitted, saveAuthenticationInfo, setBootstrapSidManager, setContainerManager, setLicenseService, setSetupPersister, transitionFromColdToTenantedState, transitionFromColdToVacantState, transitionFromVacantToTenantedState
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getActionName, getActionName, getAuthenticatedUser, getCancel, getCancelResult, getConfluenceAccessManager, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocLink, getEventManager, getFriendlyDateFormatter, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageManager, getLanguageUserFriendly, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, getTextStatic, getTextStatic, getTextStrict, getTimeZone, getUser, getUserAccessor, getUserByName, getUserFullName, getUserHasLicensedAccess, getUserInterfaceState, getUserLocaleDefaultDatePattern, getUserProfilePicUrl, getWebInterfaceContext, getWebInterfaceManager, hasPermissionForSpace, isAnonymousUser, isCanceled, isDevMode, isEmailVisible, isExternalUserManagementEnabled, isLabelable, isPrintableVersion, isSharedMode, isSkipAccessCheck, isUserStatusPluginEnabled, isUsingH2, isUsingHSQL, setApiDateFormatService, setBootstrapManager, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSkipAccessCheck, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager
addActionError, addActionMessage, addFieldError, 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 DATA_EXISTS
public final String execute() throws com.atlassian.config.ConfigurationException
execute
in interface com.opensymphony.xwork.Action
execute
in class com.opensymphony.xwork.ActionSupport
com.atlassian.config.ConfigurationException
protected Set<String> getUnsuccessfulCodes()
setupDatabase()
, signifies failure(s)
during database creation.protected boolean checkDriver(com.atlassian.config.db.DatabaseDetails dbDetails)
dbDetails
- database detailprotected boolean checkDatabaseURL(com.atlassian.config.db.DatabaseDetails dbDetails)
dbDetails
- database detailprotected void persistInstanceKey()
public ConfluenceSidManager getSidManager()
public com.atlassian.bandana.BandanaManager getBandanaManager()
public void setSidManager(ConfluenceSidManager sidManager)
public void setKeyPairInitialiser(KeyPairInitialiser keyPairInitialiser)
public KeyPairInitialiser getKeyPairInitialiser()
public void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
Copyright © 2003–2015 Atlassian. All rights reserved.