Class AbstractSetupAction

    • Constructor Detail

      • AbstractSetupAction

        public AbstractSetupAction()
    • Method Detail

      • isPermitted

        public boolean isPermitted()
        override the parent's implementation - everyone is allowed to perform a setup action.
        Overrides:
        isPermitted in class ConfluenceActionSupport
        Returns:
        true always
      • transitionFromColdToTenantedState

        protected void transitionFromColdToTenantedState()
                                                  throws com.atlassian.config.ConfigurationException
        Throws:
        com.atlassian.config.ConfigurationException
      • transitionFromColdToVacantState

        protected void transitionFromColdToVacantState()
                                                throws com.atlassian.config.ConfigurationException
        Cold to vacant transition.

        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.

        Throws:
        com.atlassian.config.ConfigurationException
        Since:
        5.6
        See Also:
        SplitStartupPluginSystemLifecycle.earlyStartup()
      • transitionFromVacantToTenantedState

        protected void transitionFromVacantToTenantedState()
        Vacant to tenanted transition.

        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.

        Since:
        5.6
        See Also:
        SystemTenant.arrived(), SplitStartupPluginSystemLifecycle.lateStartup()
      • getSingletonFromMainContext

        @Deprecated
        protected <T> com.atlassian.fugue.Maybe<T> getSingletonFromMainContext​(Class<T> type)
        Deprecated.
        Retrieves a single bean of the given type from the main context.
        Type Parameters:
        T - the type of the singleton
        Parameters:
        type - the class instance of the type
        Returns:
        maybe the singleton
        Since:
        5.6
      • retrieveSingletonFromMainContext

        protected <T> Optional<T> retrieveSingletonFromMainContext​(Class<T> type)
        Retrieves a single bean of the given type from the main context.
        Type Parameters:
        T - the type of the singleton
        Parameters:
        type - the class instance of the type
        Returns:
        maybe the singleton
        Since:
        7.0.1
      • getContainerManager

        public com.atlassian.spring.container.ContainerManager getContainerManager()
      • setContainerManager

        public void setContainerManager​(com.atlassian.spring.container.ContainerManager containerManager)
      • getSetupSessionId

        public String getSetupSessionId()
        The following methods are for collecting metadata used for installer analytics (CONFDEV-27425)
      • setBootstrapSidManager

        public void setBootstrapSidManager​(ConfluenceSidManager bootstrapSidManager)
                                    throws com.atlassian.config.ConfigurationException
        Throws:
        com.atlassian.config.ConfigurationException
      • getXsrfToken

        public String getXsrfToken()
      • getXsrfTokenGenerator

        public com.atlassian.xwork.XsrfTokenGenerator getXsrfTokenGenerator()
      • setXsrfTokenGenerator

        public void setXsrfTokenGenerator​(com.atlassian.xwork.XsrfTokenGenerator xsrfTokenGenerator)
      • getServerId

        public String getServerId()
      • setLicenseService

        public void setLicenseService​(LicenseService licenseService)
      • getSupportEntitlementNumber

        public String getSupportEntitlementNumber()
      • setBootstrapConfigurer

        public void setBootstrapConfigurer​(BootstrapConfigurer bootstrapConfigurer)