Package com.atlassian.confluence.setup
Class BootstrapSidManager
- java.lang.Object
-
- com.atlassian.confluence.setup.BootstrapSidManager
-
- All Implemented Interfaces:
ConfluenceSidManager
public class BootstrapSidManager extends Object implements ConfluenceSidManager
Manages SID generation and persistence before the database is available.The generated SID is persisted to the application configuration in Confluence home so that if setup is aborted and resumed the same SID will be associated. This is desirable as the user may have generated an evaluation license based on the SID shown on the initial license setup screen.
- See Also:
ApplicationConfiguration
-
-
Field Summary
Fields Modifier and Type Field Description static String
CONFLUENCE_SETUP_SERVER_ID
-
Constructor Summary
Constructors Constructor Description BootstrapSidManager(com.atlassian.config.ApplicationConfiguration applicationConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSid()
Retrieve the current instance SIDvoid
initSid()
Generate a new SID from the provided SIDManager and persist it to the application configurationboolean
isSidSet()
-
-
-
Field Detail
-
CONFLUENCE_SETUP_SERVER_ID
public static final String CONFLUENCE_SETUP_SERVER_ID
- See Also:
- Constant Field Values
-
-
Method Detail
-
initSid
public void initSid() throws com.atlassian.config.ConfigurationException
Generate a new SID from the provided SIDManager and persist it to the application configuration- Specified by:
initSid
in interfaceConfluenceSidManager
- Throws:
com.atlassian.config.ConfigurationException
- if a server ID has already been created or there is a problem persisting it
-
getSid
public String getSid() throws com.atlassian.config.ConfigurationException
Description copied from interface:ConfluenceSidManager
Retrieve the current instance SID- Specified by:
getSid
in interfaceConfluenceSidManager
- Returns:
- The current instance SID or null if none exists
- Throws:
com.atlassian.config.ConfigurationException
-
isSidSet
public boolean isSidSet() throws com.atlassian.config.ConfigurationException
- Specified by:
isSidSet
in interfaceConfluenceSidManager
- Returns:
- True if a SID has been initialised
- Throws:
com.atlassian.config.ConfigurationException
-
-