com.atlassian.bamboo.setup
Class DefaultSetupPersister

java.lang.Object
  extended by com.atlassian.bamboo.setup.DefaultSetupPersister
All Implemented Interfaces:
com.atlassian.config.setup.SetupPersister

public class DefaultSetupPersister
extends java.lang.Object
implements com.atlassian.config.setup.SetupPersister


Field Summary
static java.lang.String SETUP_ADMIN
           
static java.lang.String SETUP_DATA
           
static java.lang.String SETUP_DB
           
static java.lang.String SETUP_DEFAULT_DATABASE
           
static java.lang.String SETUP_DEFAULT_GENERAL
           
static java.lang.String SETUP_FINISH
           
static java.lang.String SETUP_GENERAL
           
static java.lang.String SETUP_LICENSE_STEP
           
 
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
DefaultSetupPersister()
           
 
Method Summary
 void finishSetup()
          Ensures that the bootstrapManager is written to a complete state by overriding all other remaining operations.
 java.util.List<java.lang.String> getCompletedSteps()
           
 java.lang.String getCurrentStep()
           
 java.lang.String getSetupType()
           
 java.util.List<java.lang.String> getUncompletedSteps()
           
 boolean isDemonstrationContentInstalled()
           
 void progessSetupStep()
           
 void setApplicationConfig(com.atlassian.config.ApplicationConfiguration applicationConfig)
           
 void setDemonstrationContentInstalled()
           
 void setSetupType(java.lang.String setupType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SETUP_LICENSE_STEP

public static final java.lang.String SETUP_LICENSE_STEP
See Also:
Constant Field Values

SETUP_DB

public static final java.lang.String SETUP_DB
See Also:
Constant Field Values

SETUP_DATA

public static final java.lang.String SETUP_DATA
See Also:
Constant Field Values

SETUP_GENERAL

public static final java.lang.String SETUP_GENERAL
See Also:
Constant Field Values

SETUP_ADMIN

public static final java.lang.String SETUP_ADMIN
See Also:
Constant Field Values

SETUP_FINISH

public static final java.lang.String SETUP_FINISH
See Also:
Constant Field Values

SETUP_DEFAULT_GENERAL

public static final java.lang.String SETUP_DEFAULT_GENERAL
See Also:
Constant Field Values

SETUP_DEFAULT_DATABASE

public static final java.lang.String SETUP_DEFAULT_DATABASE
See Also:
Constant Field Values
Constructor Detail

DefaultSetupPersister

public DefaultSetupPersister()
Method Detail

getUncompletedSteps

public java.util.List<java.lang.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 java.util.List<java.lang.String> getCompletedSteps()
Specified by:
getCompletedSteps in interface com.atlassian.config.setup.SetupPersister

getSetupType

public java.lang.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(java.lang.String setupType)
Specified by:
setSetupType in interface com.atlassian.config.setup.SetupPersister

finishSetup

public void finishSetup()
                 throws com.atlassian.config.setup.SetupException
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
Throws:
com.atlassian.config.setup.SetupException

progessSetupStep

public void progessSetupStep()
Specified by:
progessSetupStep in interface com.atlassian.config.setup.SetupPersister

getCurrentStep

public java.lang.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)


Copyright © 2010 Atlassian. All Rights Reserved.