Package com.atlassian.bamboo.setup
Class DefaultSetupPersister
java.lang.Object
com.atlassian.bamboo.setup.DefaultSetupPersister
- All Implemented Interfaces:
BambooSetupPersister,com.atlassian.config.setup.SetupPersister
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface com.atlassian.config.setup.SetupPersister
SETUP_INSTALL_DEMO_DATA, SETUP_STATE_COMPLETE, SETUP_TYPE_CUSTOM, SETUP_TYPE_INITIAL, SETUP_TYPE_INSTALL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanexecuteSetupStep(@NotNull String expectedStep, @NotNull ErrorCollection errorCollection, @NotNull Runnable runnable) executeSetupStep(@NotNull String expectedStep, @NotNull ErrorCollection errorCollection, @NotNull Callable<T> callable) voidEnsures that the bootstrapManager is written to a complete state by overriding all other remaining operations.booleanvoidvoidsetApplicationConfig(com.atlassian.config.ApplicationConfiguration applicationConfig) voidvoidsetSetupType(String setupType)
-
Field Details
-
SETUP_LICENSE_STEP
- See Also:
-
SETUP_DB
- See Also:
-
SETUP_DATA
- See Also:
-
SETUP_GENERAL
- See Also:
-
SETUP_ADMIN
- See Also:
-
SETUP_FINISH
- See Also:
-
SETUP_DEFAULT_GENERAL
- See Also:
-
SETUP_DEFAULT_DATABASE
- See Also:
-
-
Constructor Details
-
DefaultSetupPersister
public DefaultSetupPersister()
-
-
Method Details
-
getUncompletedSteps
- Specified by:
getUncompletedStepsin interfacecom.atlassian.config.setup.SetupPersister- Returns:
- List of Remaining steps to be completed included the one you are currently on.
-
getCompletedSteps
- Specified by:
getCompletedStepsin interfacecom.atlassian.config.setup.SetupPersister
-
getSetupType
- Specified by:
getSetupTypein interfacecom.atlassian.config.setup.SetupPersister- Returns:
- the bootstrapManager type of the bootstrapManager process - initial, custom or install.
-
setSetupType
- Specified by:
setSetupTypein interfacecom.atlassian.config.setup.SetupPersister
-
executeSetupStep
public boolean executeSetupStep(@NotNull @NotNull String expectedStep, @NotNull @NotNull ErrorCollection errorCollection, @NotNull @NotNull Runnable runnable) - Specified by:
executeSetupStepin interfaceBambooSetupPersister
-
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:
executeSetupStepin interfaceBambooSetupPersister- 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:
finishSetupin interfacecom.atlassian.config.setup.SetupPersister
-
progessSetupStep
public void progessSetupStep()- Specified by:
progessSetupStepin interfacecom.atlassian.config.setup.SetupPersister
-
getCurrentStep
- Specified by:
getCurrentStepin interfacecom.atlassian.config.setup.SetupPersister
-
isDemonstrationContentInstalled
public boolean isDemonstrationContentInstalled()- Specified by:
isDemonstrationContentInstalledin interfacecom.atlassian.config.setup.SetupPersister
-
setDemonstrationContentInstalled
public void setDemonstrationContentInstalled()- Specified by:
setDemonstrationContentInstalledin interfacecom.atlassian.config.setup.SetupPersister
-
setApplicationConfig
public void setApplicationConfig(com.atlassian.config.ApplicationConfiguration applicationConfig)
-