com.atlassian.confluence.core
Class DatabaseSidManager

java.lang.Object
  extended by com.atlassian.confluence.core.DatabaseSidManager
All Implemented Interfaces:
ConfluenceSidManager

public class DatabaseSidManager
extends Object
implements ConfluenceSidManager

Manages a SID backed by Bandana. This SID manager will initialise the Bandana stored SID by querying the SID of the provided delegate SID manager. This can be used for associated the SID generated during Confluence setup with the database.

See Also:
BootstrapSidManager

Field Summary
static String CONFLUENCE_SERVER_ID
           
 
Constructor Summary
DatabaseSidManager()
           
 
Method Summary
 String getSid()
          Retrieve the current instance SID
 void initSid()
          Initialises the Bandana SID by replicating the SID returned by the delegate ConfluenceSidManager
 boolean isSidSet()
           
 void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
           
 void setBootstrapSidManager(ConfluenceSidManager bootstrapSidManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFLUENCE_SERVER_ID

public static final String CONFLUENCE_SERVER_ID
See Also:
Constant Field Values
Constructor Detail

DatabaseSidManager

public DatabaseSidManager()
Method Detail

initSid

public void initSid()
             throws com.atlassian.config.ConfigurationException
Initialises the Bandana SID by replicating the SID returned by the delegate ConfluenceSidManager

Specified by:
initSid in interface ConfluenceSidManager
Throws:
com.atlassian.config.ConfigurationException - if
  • A SID has already been initialised
  • The delegate SID manager has not been initialised

getSid

public 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

setBandanaManager

public void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)

setBootstrapSidManager

public void setBootstrapSidManager(ConfluenceSidManager bootstrapSidManager)
Parameters:
bootstrapSidManager - Set the delegate SID manager to use for initialisation of the Bandana stored SID


Copyright © 2003-2012 Atlassian. All Rights Reserved.