Package com.atlassian.confluence.core
Class DatabaseSidManager
java.lang.Object
com.atlassian.confluence.core.DatabaseSidManager
- All Implemented Interfaces:
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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetSid()Retrieve the current instance SIDvoidinitSid()Initialises the Bandana SID by replicating the SID returned by the delegateConfluenceSidManagerbooleanisSidSet()voidsetBootstrapSidManager(ConfluenceSidManager bootstrapSidManager) voidsetPluginSettingsFactory(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory pluginSettingsFactory)
-
Constructor Details
-
DatabaseSidManager
public DatabaseSidManager()
-
-
Method Details
-
initSid
public void initSid() throws com.atlassian.config.ConfigurationExceptionInitialises the Bandana SID by replicating the SID returned by the delegateConfluenceSidManager- Specified by:
initSidin interfaceConfluenceSidManager- Throws:
com.atlassian.config.ConfigurationException- if a SID has already been initialised or the delegate SID manager has not been initialised
-
getSid
Description copied from interface:ConfluenceSidManagerRetrieve the current instance SID- Specified by:
getSidin 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:
isSidSetin interfaceConfluenceSidManager- Returns:
- True if a SID has been initialised
- Throws:
com.atlassian.config.ConfigurationException
-
setPluginSettingsFactory
public void setPluginSettingsFactory(com.atlassian.sal.api.pluginsettings.PluginSettingsFactory pluginSettingsFactory) -
setBootstrapSidManager
- Parameters:
bootstrapSidManager- Set the delegate SID manager to use for initialisation of the Bandana stored SID
-