Class DefaultSetupPersister

    • Constructor Detail

      • DefaultSetupPersister

        public DefaultSetupPersister()
    • Method Detail

      • getUncompletedSteps

        public List<String> getUncompletedSteps()
        Specified by:
        getUncompletedSteps in interface com.atlassian.config.setup.SetupPersister
        Returns:
        List of Remaining steps to be completed included the one you are currently on.
      • getCompletedSteps

        public List<String> getCompletedSteps()
        Specified by:
        getCompletedSteps in interface com.atlassian.config.setup.SetupPersister
      • getSetupType

        public String getSetupType()
        Specified by:
        getSetupType in interface com.atlassian.config.setup.SetupPersister
        Returns:
        the bootstrapManager type of the bootstrapManager process - initial, custom or install.
      • setSetupType

        public void setSetupType​(String setupType)
        Specified by:
        setSetupType in interface com.atlassian.config.setup.SetupPersister
      • executeSetupStep

        public <T> io.atlassian.fugue.Either<Boolean,​Optional<T>> executeSetupStep​(@NotNull
                                                                                         @NotNull String expectedStep,
                                                                                         @NotNull
                                                                                         @NotNull ErrorCollection errorCollection,
                                                                                         @NotNull
                                                                                         @NotNull Callable<T> callable)
                                                                                  throws com.atlassian.config.setup.SetupException
        Specified by:
        executeSetupStep in interface BambooSetupPersister
        Throws:
        com.atlassian.config.setup.SetupException
      • finishSetup

        public void finishSetup()
        Ensures that the bootstrapManager is written to a complete state by overriding all other remaining operations.
        Specified by:
        finishSetup in interface com.atlassian.config.setup.SetupPersister
      • progessSetupStep

        public void progessSetupStep()
        Specified by:
        progessSetupStep in interface com.atlassian.config.setup.SetupPersister
      • getCurrentStep

        public String getCurrentStep()
        Specified by:
        getCurrentStep in interface com.atlassian.config.setup.SetupPersister
      • isDemonstrationContentInstalled

        public boolean isDemonstrationContentInstalled()
        Specified by:
        isDemonstrationContentInstalled in interface com.atlassian.config.setup.SetupPersister
      • setDemonstrationContentInstalled

        public void setDemonstrationContentInstalled()
        Specified by:
        setDemonstrationContentInstalled in interface com.atlassian.config.setup.SetupPersister
      • setApplicationConfig

        public void setApplicationConfig​(com.atlassian.config.ApplicationConfiguration applicationConfig)