com.atlassian.confluence.setup
Class SetupSidManager
java.lang.Object
com.atlassian.confluence.setup.SetupSidManager
- All Implemented Interfaces:
- ConfluenceSidManager
public class SetupSidManager
- extends java.lang.Object
- implements ConfluenceSidManager
Manages SID generation and persistence during Confluence setup
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
,
SIDManager
Method Summary |
java.lang.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()
|
void |
setApplicationConfig(com.atlassian.config.ApplicationConfiguration applicationConfig)
|
void |
setSidManager(com.atlassian.license.SIDManager sidManager)
Set the SID manager responsible for generating SIDs |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONFLUENCE_SETUP_SERVER_ID
public static final java.lang.String CONFLUENCE_SETUP_SERVER_ID
- See Also:
- Constant Field Values
SetupSidManager
public SetupSidManager()
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 interface ConfluenceSidManager
- Throws:
com.atlassian.config.ConfigurationException
- if a server ID has already been created or there is a problem persisting it
getSid
public java.lang.String getSid()
throws com.atlassian.config.ConfigurationException
- Description copied from interface:
ConfluenceSidManager
- Retrieve the current instance SID
- Specified by:
getSid
in interface ConfluenceSidManager
- 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 interface ConfluenceSidManager
- Returns:
- True if a SID has been initialised
- Throws:
com.atlassian.config.ConfigurationException
setSidManager
public void setSidManager(com.atlassian.license.SIDManager sidManager)
- Set the SID manager responsible for generating SIDs
- Parameters:
sidManager
- SID manager to use during SID initialisation
setApplicationConfig
public void setApplicationConfig(com.atlassian.config.ApplicationConfiguration applicationConfig)
Copyright © 2003-2010 Atlassian. All Rights Reserved.