com.atlassian.confluence.setup
Class DefaultSetupPersister

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

public class DefaultSetupPersister
extends Object
implements SetupPersister


Field Summary
static String SETUP_TYPE_CLUSTER
           
 
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
protected  void configureSetupSequence(String setupType)
          Creates a default bootstrapManager sequence based on current state of confluence.config.xml
 void finishSetup()
          Ensures that the bootstrapManager is written to a complete state by overriding all other remaining operations.
 List getCompletedSteps()
           
 String getCurrentStep()
           
 String getSetupType()
           
 List getUncompletedSteps()
           
 boolean isDemonstrationContentInstalled()
           
 void progessSetupStep()
           
 void setApplicationConfig(ApplicationConfiguration applicationConfig)
           
 void setDemonstrationContentInstalled()
           
 void setSetupType(String setupType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SETUP_TYPE_CLUSTER

public static final String SETUP_TYPE_CLUSTER
See Also:
Constant Field Values
Constructor Detail

DefaultSetupPersister

public DefaultSetupPersister()
Method Detail

setApplicationConfig

public void setApplicationConfig(ApplicationConfiguration applicationConfig)

configureSetupSequence

protected void configureSetupSequence(String setupType)
Creates a default bootstrapManager sequence based on current state of confluence.config.xml


getUncompletedSteps

public List getUncompletedSteps()
Specified by:
getUncompletedSteps in interface SetupPersister

getCompletedSteps

public List getCompletedSteps()
Specified by:
getCompletedSteps in interface SetupPersister

getSetupType

public String getSetupType()
Specified by:
getSetupType in interface SetupPersister
Returns:
the bootstrapManager type of the bootstrapManager process - initial, custom or install.

setSetupType

public void setSetupType(String setupType)
Specified by:
setSetupType in interface SetupPersister

finishSetup

public void finishSetup()
                 throws SetupException
Ensures that the bootstrapManager is written to a complete state by overriding all other remaining operations.

Specified by:
finishSetup in interface SetupPersister
Throws:
SetupException

progessSetupStep

public void progessSetupStep()
Specified by:
progessSetupStep in interface SetupPersister

getCurrentStep

public String getCurrentStep()
Specified by:
getCurrentStep in interface SetupPersister

setDemonstrationContentInstalled

public void setDemonstrationContentInstalled()
Specified by:
setDemonstrationContentInstalled in interface SetupPersister

isDemonstrationContentInstalled

public boolean isDemonstrationContentInstalled()
Specified by:
isDemonstrationContentInstalled in interface SetupPersister


Confluence is developed by Atlassian Pty Ltd.