com.atlassian.confluence.themes
Class DefaultThemeManager

java.lang.Object
  extended by com.atlassian.confluence.themes.DefaultThemeManager
All Implemented Interfaces:
ThemeManager

public class DefaultThemeManager
extends java.lang.Object
implements ThemeManager

For CONF-9959, this manager will only retrieve theme 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.


Constructor Summary
DefaultThemeManager()
           
 
Method Summary
 java.util.List getAvailableThemeDescriptors()
           
 Theme getGlobalTheme()
           
 java.lang.String getGlobalThemeKey()
           
 Theme getSpaceTheme(java.lang.String spaceKey)
          Retrieve the theme configured for an identified space.
 java.lang.String getSpaceThemeKey(java.lang.String spaceKey)
           
 void setBandanaManager(com.atlassian.bandana.BandanaManager bandanaManager)
           
 void setEventManager(com.atlassian.event.EventManager eventManager)
           
 void setGlobalTheme(java.lang.String themeCompleteKey)
           
 void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
           
 void setSpaceTheme(java.lang.String spaceKey, java.lang.String themeCompleteKey)
           
 void setUpgradeManager(UpgradeManager upgradeManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultThemeManager

public DefaultThemeManager()
Method Detail

setPluginAccessor

public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)

getGlobalTheme

public Theme getGlobalTheme()
Specified by:
getGlobalTheme in interface ThemeManager

getGlobalThemeKey

public java.lang.String getGlobalThemeKey()
Specified by:
getGlobalThemeKey in interface ThemeManager

getSpaceTheme

public Theme getSpaceTheme(java.lang.String spaceKey)
Retrieve the theme configured for an identified space. If no theme is found for the space then the global theme will be returned.

Specified by:
getSpaceTheme in interface ThemeManager

getSpaceThemeKey

public java.lang.String getSpaceThemeKey(java.lang.String spaceKey)
Specified by:
getSpaceThemeKey in interface ThemeManager

setGlobalTheme

public void setGlobalTheme(java.lang.String themeCompleteKey)
Specified by:
setGlobalTheme in interface ThemeManager

setSpaceTheme

public void setSpaceTheme(java.lang.String spaceKey,
                          java.lang.String themeCompleteKey)
Specified by:
setSpaceTheme in interface ThemeManager

getAvailableThemeDescriptors

public java.util.List getAvailableThemeDescriptors()
Specified by:
getAvailableThemeDescriptors in interface ThemeManager

setBandanaManager

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

setEventManager

public void setEventManager(com.atlassian.event.EventManager eventManager)

setUpgradeManager

public void setUpgradeManager(UpgradeManager upgradeManager)


Copyright © 2003-2010 Atlassian. All Rights Reserved.