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 String
SETUP_ADMIN
static String
SETUP_DATA
static String
SETUP_DB
static String
SETUP_DEFAULT_DATABASE
static String
SETUP_DEFAULT_GENERAL
static String
SETUP_FINISH
static String
SETUP_GENERAL
static String
SETUP_LICENSE_STEP
-
Constructor Summary
Constructors Constructor Description DefaultSetupPersister()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
executeSetupStep(@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)
void
finishSetup()
Ensures that the bootstrapManager is written to a complete state by overriding all other remaining operations.List<String>
getCompletedSteps()
String
getCurrentStep()
String
getSetupType()
List<String>
getUncompletedSteps()
boolean
isDemonstrationContentInstalled()
void
progessSetupStep()
void
setApplicationConfig(com.atlassian.config.ApplicationConfiguration applicationConfig)
void
setDemonstrationContentInstalled()
void
setSetupType(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:
getUncompletedSteps
in 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:
getCompletedSteps
in interfacecom.atlassian.config.setup.SetupPersister
-
getSetupType
public String getSetupType()
- Specified by:
getSetupType
in 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:
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
public String 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)
-
-