Class DefaultSetupPersister

java.lang.Object
com.atlassian.bamboo.setup.DefaultSetupPersister
All Implemented Interfaces:
BambooSetupPersister, com.atlassian.config.setup.SetupPersister

public class DefaultSetupPersister extends Object implements BambooSetupPersister
  • Field Details

  • Constructor Details

    • DefaultSetupPersister

      public DefaultSetupPersister()
  • Method Details

    • 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 boolean executeSetupStep(@NotNull @NotNull String expectedStep, @NotNull @NotNull ErrorCollection errorCollection, @NotNull @NotNull Runnable runnable)
      Specified by:
      executeSetupStep in interface BambooSetupPersister
    • 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)