Package com.atlassian.confluence.themes
Class DefaultThemeManager
java.lang.Object
com.atlassian.confluence.themes.DefaultThemeManager
- All Implemented Interfaces:
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the globally configured theme.getSpaceTheme(String spaceKey) Retrieve the theme configured for an identified space.getSpaceThemeKey(String spaceKey) voidsetAuditingContext(AuditingContext auditingContext) voidsetEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher) voidsetGlobalTheme(String themeCompleteKey) voidsetPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor) voidsetSpaceTheme(String spaceKey, String themeCompleteKey) voidsetThemeKeyDao(ThemeKeyDao themeKeyDao) voidsetUpgradedFlag(UpgradedFlag upgradedFlag)
-
Constructor Details
-
DefaultThemeManager
public DefaultThemeManager()
-
-
Method Details
-
getGlobalTheme
Description copied from interface:ThemeManagerGets the globally configured theme. If no theme is configured or the globally configured theme is a plugin that cannot be found, then theDefaultThemeshould be returned.- Specified by:
getGlobalThemein interfaceThemeManager- Returns:
- a theme, not null.
-
getGlobalThemeKey
- Specified by:
getGlobalThemeKeyin interfaceThemeManager
-
getSpaceTheme
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:
getSpaceThemein interfaceThemeManager
-
getSpaceThemeKey
- Specified by:
getSpaceThemeKeyin interfaceThemeManager
-
setGlobalTheme
- Specified by:
setGlobalThemein interfaceThemeManager
-
setSpaceTheme
- Specified by:
setSpaceThemein interfaceThemeManager
-
getAvailableThemeDescriptors
- Specified by:
getAvailableThemeDescriptorsin interfaceThemeManager
-
setThemeKeyDao
- Since:
- 7.7
-
setEventPublisher
public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher) - Since:
- 8.9
-
setUpgradedFlag
- Since:
- 7.20
-
setAuditingContext
-
setPluginAccessor
public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
-