public class BootstrapSidManager extends Object implements ConfluenceSidManager
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.
ApplicationConfiguration
Modifier and Type | Field and Description |
---|---|
static String |
CONFLUENCE_SETUP_SERVER_ID |
Constructor and Description |
---|
BootstrapSidManager(com.atlassian.config.ApplicationConfiguration applicationConfig) |
Modifier and Type | Method and Description |
---|---|
String |
getSid()
Retrieve the current instance SID
|
void |
initSid()
Generate a new SID from the provided SIDManager and persist it to the application configuration
|
boolean |
isSidSet() |
public static final String CONFLUENCE_SETUP_SERVER_ID
public BootstrapSidManager(com.atlassian.config.ApplicationConfiguration applicationConfig)
public void initSid() throws com.atlassian.config.ConfigurationException
initSid
in interface ConfluenceSidManager
com.atlassian.config.ConfigurationException
- if a server ID has already been created or there is a problem persisting itpublic String getSid() throws com.atlassian.config.ConfigurationException
ConfluenceSidManager
getSid
in interface ConfluenceSidManager
com.atlassian.config.ConfigurationException
public boolean isSidSet() throws com.atlassian.config.ConfigurationException
isSidSet
in interface ConfluenceSidManager
com.atlassian.config.ConfigurationException
Copyright © 2003–2016 Atlassian. All rights reserved.