public class

BootstrapSidManager

extends Object
implements ConfluenceSidManager
java.lang.Object
   ↳ com.atlassian.confluence.setup.BootstrapSidManager

Class Overview

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
  • com.atlassian.config.ApplicationConfiguration
  • com.atlassian.license.SIDManager

Summary

Constants
String CONFLUENCE_SETUP_SERVER_ID
Public Constructors
BootstrapSidManager()
Public Methods
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(ApplicationConfiguration applicationConfig)
void setSidManager(SIDManager sidManager)
Set the SID manager responsible for generating SIDs
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.confluence.core.ConfluenceSidManager

Constants

public static final String CONFLUENCE_SETUP_SERVER_ID

Constant Value: "confluence.setup.server.id"

Public Constructors

public BootstrapSidManager ()

Public Methods

public String getSid ()

Retrieve the current instance SID

Returns
  • The current instance SID or null if none exists
Throws
ConfigurationException

public void initSid ()

Generate a new SID from the provided SIDManager and persist it to the application configuration

Throws
ConfigurationException if a server ID has already been created or there is a problem persisting it

public boolean isSidSet ()

Throws
ConfigurationException

public void setApplicationConfig (ApplicationConfiguration applicationConfig)

public void setSidManager (SIDManager sidManager)

Set the SID manager responsible for generating SIDs

Parameters
sidManager SID manager to use during SID initialisation