com.atlassian.confluence.setup.settings
Class DefaultSettingsManager

java.lang.Object
  extended by com.atlassian.confluence.setup.settings.DefaultSettingsManager
All Implemented Interfaces:
ConfluenceBandanaKeys, SettingsManager

public class DefaultSettingsManager
extends java.lang.Object
implements SettingsManager, ConfluenceBandanaKeys

For CONF-9959, this manager will only retrieve global and space settings from bandana if the system has been successfully upgraded. This check is done via the UpgradeManager and is done to avoid SQL on missing tables while we try and display an upgrade error to a client.


Field Summary
 
Fields inherited from interface com.atlassian.confluence.setup.bandana.ConfluenceBandanaKeys
COLOUR_SCHEME, CSS_RESOURCE_COUNTER, CUSTOM_CSS, HTTP_CONFIG, MAIL_ACCOUNTS, PLUGINS_SETTINGS_PREFIX, SETTINGS, SHORTCUT_LINKS, SPACE_MAIL_ACCOUNTS, SPACE_SETTINGS, THEME_SETTINGS, USER_MACROS, USER_RESOURCES
 
Constructor Summary
DefaultSettingsManager()
           
 
Method Summary
 GlobalDescription getGlobalDescription()
           
 Settings getGlobalSettings()
           
 java.io.Serializable getPluginSettings(java.lang.String pluginKey)
           
 SpaceSettings getSpaceSettings(java.lang.String spaceKey)
           
 boolean isNofollowExternalLinks()
           
 void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
           
 void setGlobalDescriptionDao(GlobalDescriptionDao globalDescriptionDao)
           
 void setUpgradeManager(UpgradeManager upgradeManager)
           
 void updateGlobalDescription(GlobalDescription globalDescription)
           
 void updateGlobalSettings(Settings settings)
           
 void updatePluginSettings(java.lang.String pluginKey, java.io.Serializable pluginSettings)
           
 void updateSpaceSettings(SpaceSettings spaceSettings)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultSettingsManager

public DefaultSettingsManager()
Method Detail

getGlobalSettings

public Settings getGlobalSettings()
Specified by:
getGlobalSettings in interface SettingsManager

updateGlobalSettings

public void updateGlobalSettings(Settings settings)
Specified by:
updateGlobalSettings in interface SettingsManager

getSpaceSettings

public SpaceSettings getSpaceSettings(java.lang.String spaceKey)
Specified by:
getSpaceSettings in interface SettingsManager

updateSpaceSettings

public void updateSpaceSettings(SpaceSettings spaceSettings)
Specified by:
updateSpaceSettings in interface SettingsManager

getPluginSettings

public java.io.Serializable getPluginSettings(java.lang.String pluginKey)
Specified by:
getPluginSettings in interface SettingsManager

updatePluginSettings

public void updatePluginSettings(java.lang.String pluginKey,
                                 java.io.Serializable pluginSettings)
Specified by:
updatePluginSettings in interface SettingsManager

setBandanaManager

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

isNofollowExternalLinks

public boolean isNofollowExternalLinks()

setUpgradeManager

public void setUpgradeManager(UpgradeManager upgradeManager)

getGlobalDescription

public GlobalDescription getGlobalDescription()
Specified by:
getGlobalDescription in interface SettingsManager

updateGlobalDescription

public void updateGlobalDescription(GlobalDescription globalDescription)
Specified by:
updateGlobalDescription in interface SettingsManager

setGlobalDescriptionDao

public void setGlobalDescriptionDao(GlobalDescriptionDao globalDescriptionDao)


Copyright © 2003-2014 Atlassian. All Rights Reserved.