Class DefaultThemeManager

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

public class DefaultThemeManager extends 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 Details

    • DefaultThemeManager

      public DefaultThemeManager()
  • Method Details

    • getGlobalTheme

      public Theme getGlobalTheme()
      Description copied from interface: ThemeManager
      Gets the globally configured theme. If no theme is configured or the globally configured theme is a plugin that cannot be found, then the DefaultTheme should be returned.
      Specified by:
      getGlobalTheme in interface ThemeManager
      Returns:
      a theme, not null.
    • getGlobalThemeKey

      public String getGlobalThemeKey()
      Specified by:
      getGlobalThemeKey in interface ThemeManager
    • getSpaceTheme

      public Theme getSpaceTheme(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 String getSpaceThemeKey(String spaceKey)
      Specified by:
      getSpaceThemeKey in interface ThemeManager
    • setGlobalTheme

      public void setGlobalTheme(String themeCompleteKey)
      Specified by:
      setGlobalTheme in interface ThemeManager
    • setSpaceTheme

      public void setSpaceTheme(String spaceKey, String themeCompleteKey)
      Specified by:
      setSpaceTheme in interface ThemeManager
    • getAvailableThemeDescriptors

      public List<ThemeModuleDescriptor> getAvailableThemeDescriptors()
      Specified by:
      getAvailableThemeDescriptors in interface ThemeManager
    • setThemeKeyDao

      public void setThemeKeyDao(ThemeKeyDao themeKeyDao)
      Since:
      7.7
    • setEventPublisher

      public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher)
      Since:
      8.9
    • setUpgradedFlag

      public void setUpgradedFlag(UpgradedFlag upgradedFlag)
      Since:
      7.20
    • setAuditingContext

      public void setAuditingContext(AuditingContext auditingContext)
    • setPluginAccessor

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