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
Modifier and TypeFieldDescriptionstatic final String
static final String
static final String
static final String
static final String
static final String
static final String
static final String
Fields 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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
executeSetupStep
(@NotNull String expectedStep, @NotNull ErrorCollection errorCollection, @NotNull Runnable runnable) executeSetupStep
(@NotNull String expectedStep, @NotNull ErrorCollection errorCollection, @NotNull Callable<T> callable) void
Ensures that the bootstrapManager is written to a complete state by overriding all other remaining operations.boolean
void
void
setApplicationConfig
(com.atlassian.config.ApplicationConfiguration applicationConfig) void
void
setSetupType
(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:
getUncompletedSteps
in interfacecom.atlassian.config.setup.SetupPersister
- Returns:
- List of Remaining steps to be completed included the one you are currently on.
-
getCompletedSteps
- Specified by:
getCompletedSteps
in interfacecom.atlassian.config.setup.SetupPersister
-
getSetupType
- Specified by:
getSetupType
in interfacecom.atlassian.config.setup.SetupPersister
- Returns:
- the bootstrapManager type of the bootstrapManager process - initial, custom or install.
-
setSetupType
- Specified by:
setSetupType
in interfacecom.atlassian.config.setup.SetupPersister
-
executeSetupStep
public boolean executeSetupStep(@NotNull @NotNull String expectedStep, @NotNull @NotNull ErrorCollection errorCollection, @NotNull @NotNull Runnable runnable) - Specified by:
executeSetupStep
in 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:
executeSetupStep
in 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:
finishSetup
in interfacecom.atlassian.config.setup.SetupPersister
-
progessSetupStep
public void progessSetupStep()- Specified by:
progessSetupStep
in interfacecom.atlassian.config.setup.SetupPersister
-
getCurrentStep
- Specified by:
getCurrentStep
in interfacecom.atlassian.config.setup.SetupPersister
-
isDemonstrationContentInstalled
public boolean isDemonstrationContentInstalled()- Specified by:
isDemonstrationContentInstalled
in interfacecom.atlassian.config.setup.SetupPersister
-
setDemonstrationContentInstalled
public void setDemonstrationContentInstalled()- Specified by:
setDemonstrationContentInstalled
in interfacecom.atlassian.config.setup.SetupPersister
-
setApplicationConfig
public void setApplicationConfig(com.atlassian.config.ApplicationConfiguration applicationConfig)
-