public abstract class AbstractSetupAction extends ConfluenceActionSupport
All control for setup sequences is, funnily enough, seated in xwork.xml (the Controller).
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 |
---|
AbstractSetupAction() |
Modifier and Type | Method and Description |
---|---|
BootstrapManager |
getBootstrapManager() |
Collection<SetupBundlePluginDescriptor> |
getBundledPlugins() |
com.atlassian.spring.container.ContainerManager |
getContainerManager() |
Locale |
getLocale() |
String |
getServerId() |
ConfluenceSetupPersister |
getSetupPersister() |
String |
getSetupSessionId()
The following methods are for collecting metadata used for installer analytics (CONFDEV-27425)
|
protected <T> com.atlassian.fugue.Maybe<T> |
getSingletonFromMainContext(Class<T> type)
Deprecated.
since 7.0.1. Use
retrieveSingletonFromMainContext(Class) |
String |
getSupportEntitlementNumber() |
String |
getXsrfToken() |
com.atlassian.xwork.XsrfTokenGenerator |
getXsrfTokenGenerator() |
boolean |
isPermitted()
override the parent's implementation - everyone is allowed to perform a setup action.
|
protected <T> Optional<T> |
retrieveSingletonFromMainContext(Class<T> type)
Retrieves a single bean of the given type from the main context.
|
protected void |
saveAuthenticationInfo(String username,
String password) |
void |
setBootstrapSidManager(ConfluenceSidManager bootstrapSidManager) |
void |
setBundlePluginService(BundlePluginService bundlePluginService) |
void |
setContainerManager(com.atlassian.spring.container.ContainerManager containerManager) |
void |
setLicenseService(LicenseService licenseService) |
void |
setSetupPersister(ConfluenceSetupPersister setupPersister) |
void |
setXsrfTokenGenerator(com.atlassian.xwork.XsrfTokenGenerator xsrfTokenGenerator) |
protected void |
transitionFromColdToTenantedState() |
protected void |
transitionFromColdToVacantState()
Cold to vacant transition.
|
protected void |
transitionFromVacantToTenantedState()
Vacant to tenanted transition.
|
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, getLanguageJs, 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
public static final String DEMO_CONTENT_ZIP_FILE
protected static final String SETUP_QUICK
protected static final String SELECT_BUNDLE
protected static final String SETUP_CLUSTER
protected static final String SETUP_CUSTOM
protected static final String SETUP_CLUSTER_TO_STANDALONE
protected static final String SETUP_USER_INTERNAL
protected static final String SETUP_USER_JAACS
protected static final String SETUP_DB_EMBEDDED
protected static final String SETUP_DB_STANDARD
protected static final String SETUP_DB_DATASOURCE
protected static final String SETUP_DB_CONN_TYPE
protected static final String SETUP_DB_CLUSTER_CONN_TYPE
protected static final String SETUP_DB_TYPE_STANDARD
protected static final String SETUP_DB_TYPE_DATASOURCE
protected static final String SETUP_CONTENT_BLANK
protected static final String SETUP_CONTENT_DEMO
protected static final String SETUP_CONTENT_IMPORT
protected static final String SETUP_SESSION_ID_KEY
protected static final String SETUP_PATHS
protected static final String SETUP_SKIP_TO_NEXT_STEP
protected static final String SETUP_SKIP_TO_NEXT_STEP_CLUSTER
public static final String SETUP_HAS_SELECTED_BUNDLE_PLUGINS
public static final String SETUP_BUNDLE_PLUGINS_CREDENTIAL
protected BundlePluginService bundlePluginService
public void setSetupPersister(ConfluenceSetupPersister setupPersister)
public ConfluenceSetupPersister getSetupPersister()
public boolean isPermitted()
isPermitted
in class ConfluenceActionSupport
public BootstrapManager getBootstrapManager()
getBootstrapManager
in class ConfluenceActionSupport
public Locale getLocale()
getLocale
in interface com.opensymphony.xwork.LocaleProvider
getLocale
in class ConfluenceActionSupport
protected void transitionFromColdToTenantedState() throws com.atlassian.config.ConfigurationException
com.atlassian.config.ConfigurationException
protected void transitionFromColdToVacantState() throws com.atlassian.config.ConfigurationException
The main context is initialized without a configured database connection. Plugins which don't need a tenant on enablement or can react to tenant arrival are loaded.
com.atlassian.config.ConfigurationException
SplitStartupPluginSystemLifecycle.earlyStartup()
protected void transitionFromVacantToTenantedState()
Called after the database is configured. The (system) tenant is declared as arrived, allowing the initialisation of the session factories, and the plugins which need a tenant on enablement are loaded.
SystemTenant.arrived()
,
SplitStartupPluginSystemLifecycle.lateStartup()
@Deprecated protected <T> com.atlassian.fugue.Maybe<T> getSingletonFromMainContext(Class<T> type)
retrieveSingletonFromMainContext(Class)
T
- the type of the singletontype
- the class instance of the typeprotected <T> Optional<T> retrieveSingletonFromMainContext(Class<T> type)
T
- the type of the singletontype
- the class instance of the typepublic com.atlassian.spring.container.ContainerManager getContainerManager()
public void setContainerManager(com.atlassian.spring.container.ContainerManager containerManager)
public String getSetupSessionId()
public void setBootstrapSidManager(ConfluenceSidManager bootstrapSidManager) throws com.atlassian.config.ConfigurationException
com.atlassian.config.ConfigurationException
public String getXsrfToken()
public com.atlassian.xwork.XsrfTokenGenerator getXsrfTokenGenerator()
public void setXsrfTokenGenerator(com.atlassian.xwork.XsrfTokenGenerator xsrfTokenGenerator)
public String getServerId()
public void setLicenseService(LicenseService licenseService)
public String getSupportEntitlementNumber()
public void setBundlePluginService(BundlePluginService bundlePluginService)
public Collection<SetupBundlePluginDescriptor> getBundledPlugins()
Copyright © 2003–2020 Atlassian. All rights reserved.