View Javadoc

1   package com.atlassian.config.setup;
2   
3   import java.util.List;
4   
5   public interface SetupPersister
6   {
7       /**
8        * Different configuration constants for setting up Confluence.
9        */
10      String SETUP_TYPE_INITIAL = "initial";
11      String SETUP_TYPE_INSTALL = "install"; // refers to quick setup
12      String SETUP_TYPE_CUSTOM = "custom";
13      /**
14       * An instruction to tell the Setup to install demo content
15       */
16      String SETUP_INSTALL_DEMO_DATA = "demo";
17      /**
18       *  confluence bootstrapManager states
19       */
20      String SETUP_STATE_COMPLETE = "complete";
21  
22      List getUncompletedSteps();
23  
24      List getCompletedSteps();
25  
26      /**
27       * @return the bootstrapManager type of the bootstrapManager process - initial, custom or install.
28       */
29      String getSetupType();
30  
31      void setSetupType(String setupType);
32  
33      /**
34       * Ensures that the bootstrapManager is written to a complete state
35       * by overriding all other remaining operations.
36       */
37      void finishSetup() throws SetupException;
38  
39      void progessSetupStep();
40  
41      String getCurrentStep();
42  
43      boolean isDemonstrationContentInstalled();
44  
45      void setDemonstrationContentInstalled();
46  }