Package com.atlassian.bamboo.setup
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 Summary
Fields Modifier and Type Field Description static StringSETUP_ADMINstatic StringSETUP_DATAstatic StringSETUP_DBstatic StringSETUP_DEFAULT_DATABASEstatic StringSETUP_DEFAULT_GENERALstatic StringSETUP_FINISHstatic StringSETUP_GENERALstatic StringSETUP_LICENSE_STEP
-
Constructor Summary
Constructors Constructor Description DefaultSetupPersister()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanexecuteSetupStep(@NotNull String expectedStep, @NotNull ErrorCollection errorCollection, @NotNull Runnable runnable)<T> io.atlassian.fugue.Either<Boolean,Optional<T>>executeSetupStep(@NotNull String expectedStep, @NotNull ErrorCollection errorCollection, @NotNull Callable<T> callable)voidfinishSetup()Ensures that the bootstrapManager is written to a complete state by overriding all other remaining operations.List<String>getCompletedSteps()StringgetCurrentStep()StringgetSetupType()List<String>getUncompletedSteps()booleanisDemonstrationContentInstalled()voidprogessSetupStep()voidsetApplicationConfig(com.atlassian.config.ApplicationConfiguration applicationConfig)voidsetDemonstrationContentInstalled()voidsetSetupType(String setupType)
-
-
-
Field Detail
-
SETUP_LICENSE_STEP
public static final String SETUP_LICENSE_STEP
- See Also:
- Constant Field Values
-
SETUP_DB
public static final String SETUP_DB
- See Also:
- Constant Field Values
-
SETUP_DATA
public static final String SETUP_DATA
- See Also:
- Constant Field Values
-
SETUP_GENERAL
public static final String SETUP_GENERAL
- See Also:
- Constant Field Values
-
SETUP_ADMIN
public static final String SETUP_ADMIN
- See Also:
- Constant Field Values
-
SETUP_FINISH
public static final String SETUP_FINISH
- See Also:
- Constant Field Values
-
SETUP_DEFAULT_GENERAL
public static final String SETUP_DEFAULT_GENERAL
- See Also:
- Constant Field Values
-
SETUP_DEFAULT_DATABASE
public static final String SETUP_DEFAULT_DATABASE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getUncompletedSteps
public List<String> 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
public List<String> getCompletedSteps()
- Specified by:
getCompletedStepsin interfacecom.atlassian.config.setup.SetupPersister
-
getSetupType
public String getSetupType()
- Specified by:
getSetupTypein interfacecom.atlassian.config.setup.SetupPersister- Returns:
- the bootstrapManager type of the bootstrapManager process - initial, custom or install.
-
setSetupType
public void setSetupType(String setupType)
- 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
public String 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)
-
-