Class AbstractDatabaseCreationAction
- java.lang.Object
-
- com.opensymphony.xwork2.ActionSupport
-
- com.atlassian.confluence.core.ConfluenceActionSupport
-
- com.atlassian.confluence.setup.actions.AbstractSetupAction
-
- com.atlassian.confluence.setup.actions.AbstractSetupDatabaseAction
-
- com.atlassian.confluence.setup.actions.AbstractDatabaseCreationAction
-
- All Implemented Interfaces:
WebInterface
,MessageHolderAware
,com.opensymphony.xwork2.Action
,com.opensymphony.xwork2.interceptor.ValidationAware
,com.opensymphony.xwork2.LocaleProvider
,com.opensymphony.xwork2.TextProvider
,com.opensymphony.xwork2.Validateable
,Serializable
- Direct Known Subclasses:
SetupDatasourceAction
,SetupDBTypeAction
,SetupEmbeddedDatabaseAction
public abstract class AbstractDatabaseCreationAction extends AbstractSetupDatabaseAction
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
DATA_EXISTS
protected static String
DATABASE_CREATION_UNFINISHED
-
Fields inherited from class com.atlassian.confluence.setup.actions.AbstractSetupDatabaseAction
DATASOURCE_PREFIX, dbDetails
-
Fields inherited from class com.atlassian.confluence.setup.actions.AbstractSetupAction
DEMO_CONTENT_ZIP_FILE, 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_PATHS, SETUP_QUICK, SETUP_SESSION_ID_KEY, SETUP_SKIP_TO_NEXT_STEP, SETUP_SKIP_TO_NEXT_STEP_CLUSTER, SETUP_USER_INTERNAL, SETUP_USER_JAACS
-
Fields inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
accessModeService, CANCEL, DEVMODE, eventManager, i18NBeanFactory, labelManager, languageManager, LICENSE_EXPIRED, LICENSE_USERS_EXCEEDED, messageHolder, permissionManager, permitted, personService, pluginAccessor, PREVIEW, settingsManager, spacePermissionManager, systemInformationService, userAccessor, webInterfaceManager
-
-
Constructor Summary
Constructors Constructor Description AbstractDatabaseCreationAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
execute()
com.atlassian.bandana.BandanaManager
getBandanaManager()
KeyPairInitialiser
getKeyPairInitialiser()
ConfluenceSidManager
getSidManager()
protected Set<String>
getUnsuccessfulCodes()
Defines the set of codes by which if returned bysetupDatabase()
, 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
setSetupLocks(SetupLocks setupLocks)
void
setSidManager(ConfluenceSidManager sidManager)
-
Methods inherited from class com.atlassian.confluence.setup.actions.AbstractSetupDatabaseAction
checkDatabaseURL, checkDriver, convertBootstrapException, detectDatabaseType, findDatasourceNames, getDatabase, getDbConfigInfo, getHibernateConfig, setDatabase, setDatabaseVerifier, setDbConfigInfo, setHibernateConfig, testConnection
-
Methods inherited from class com.atlassian.confluence.setup.actions.AbstractSetupAction
bootstrapConfigurer, getBootstrapManager, getContainerManager, getLocale, getServerId, getSetupPersister, getSetupSessionId, getSingletonFromMainContext, getSupportEntitlementNumber, getXsrfToken, getXsrfTokenGenerator, isPermitted, performEarlyStartup, performLateStartup, retrieveSingletonFromMainContext, setBootstrapConfigurer, setBootstrapSidManager, setContainerManager, setLicenseService, setSetupPersister, setXsrfTokenGenerator, transitionFromColdToTenantedState, transitionFromColdToVacantState, transitionFromVacantToTenantedState
-
Methods inherited from class com.atlassian.confluence.core.ConfluenceActionSupport
addActionError, addActionMessage, addFieldError, addPermissionTypeTo, addToHistory, doDefault, formatFriendlyDate, getAccessMode, getActionName, getActionName, getAuthenticatedUser, getBootstrapStatusProvider, getCancel, getCancelResult, getConfluenceAccessManager, getContentUiSupport, getContext, getCurrentRequest, getCurrentSession, getDateFormatSetting, getDateFormatter, getDefaultResourceBundle, getDefaultTimeZone, getDocBean, getDocLink, getEventManager, getFriendlyDateFormatter, getFrontendServiceURL, getGlobalSettings, getHelper, getI18n, getInstalledLanguages, getLabelManager, getLanguageJs, getLanguageManager, getLanguageUserFriendly, getLocaleManager, getLocaleString, getMessageHolder, getNiceContentType, getPermissionManager, getPermissionTypes, getPermittedEntitiesOf, getPermittedEntitiesOf, getPermittedEntitiesOf, getPersonService, getPreviousLoginDate, getRemoteUser, getSession, getSystemInformationService, getText, getText, getText, getText, 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, setBootstrapStatusProvider, setCancel, setConfluenceAccessManager, setContentUiSupport, setEventManager, setFormatSettingsManager, setI18NBean, setI18NBeanFactory, setLabelManager, setLanguageManager, setLocaleManager, setLoginManager, setMessageHolder, setPermissionManager, setPluginAccessor, setPreviousLoginDate, setServletRequestSupplier, setSettingsManager, setSpacePermissionManager, setSystemInformationService, setTimeZoneManager, setUserAccessor, setWebInterfaceManager, useSkipAccessCheck, withServletRequestSupplier
-
Methods inherited from class com.opensymphony.xwork2.ActionSupport
addActionError, addActionMessage, addFieldError, clearActionErrors, clearErrors, clearErrorsAndMessages, clearFieldErrors, clearMessages, clone, getActionErrors, getActionMessages, getContainer, getFieldErrors, getFormatted, getLocaleProvider, getText, getText, getTextProvider, getTexts, getTexts, hasActionErrors, hasActionMessages, hasErrors, hasFieldErrors, hasKey, input, isValidLocale, isValidLocaleString, pause, setActionErrors, setActionMessages, setContainer, setFieldErrors, validate
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.opensymphony.xwork2.LocaleProvider
isValidLocale, isValidLocaleString
-
Methods inherited from interface com.atlassian.confluence.validation.MessageHolderAware
validate
-
-
-
-
Field Detail
-
DATA_EXISTS
protected static final String DATA_EXISTS
- See Also:
- Constant Field Values
-
DATABASE_CREATION_UNFINISHED
protected static final String DATABASE_CREATION_UNFINISHED
- See Also:
- Constant Field Values
-
-
Method Detail
-
execute
public String execute() throws com.atlassian.config.ConfigurationException
- Specified by:
execute
in interfacecom.opensymphony.xwork2.Action
- Overrides:
execute
in classcom.opensymphony.xwork2.ActionSupport
- Throws:
com.atlassian.config.ConfigurationException
-
getUnsuccessfulCodes
protected Set<String> getUnsuccessfulCodes()
Defines the set of codes by which if returned bysetupDatabase()
, signifies failure(s) during database creation.- Returns:
- set of unsuccessful codes
-
persistInstanceKey
protected void persistInstanceKey()
Persists instance keys into database.
-
getSidManager
public ConfluenceSidManager getSidManager()
-
getBandanaManager
public com.atlassian.bandana.BandanaManager getBandanaManager()
-
setSidManager
public void setSidManager(ConfluenceSidManager sidManager)
-
setSetupLocks
public void setSetupLocks(SetupLocks setupLocks)
-
setKeyPairInitialiser
public void setKeyPairInitialiser(KeyPairInitialiser keyPairInitialiser)
-
getKeyPairInitialiser
public KeyPairInitialiser getKeyPairInitialiser()
-
setBandanaManager
public void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
-
-