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) void
setAuditingContext
(AuditingContext auditingContext) void
setBandanaManager
(BandanaManager bandanaManager) Deprecated.void
setEventPublisher
(com.atlassian.event.api.EventPublisher eventPublisher) void
setGlobalTheme
(String themeCompleteKey) void
setPluginAccessor
(com.atlassian.plugin.PluginAccessor pluginAccessor) void
setSpaceTheme
(String spaceKey, String themeCompleteKey) void
setThemeKeyDao
(ThemeKeyDao themeKeyDao) void
setUpgradedFlag
(UpgradedFlag upgradedFlag) void
setUpgradeManager
(UpgradeManager upgradeManager) Deprecated.since 7.20 usesetUpgradedFlag(UpgradedFlag)
-
Constructor Details
-
DefaultThemeManager
public DefaultThemeManager()
-
-
Method Details
-
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 theDefaultTheme
should be returned.- Specified by:
getGlobalTheme
in interfaceThemeManager
- Returns:
- a theme, not null.
-
getGlobalThemeKey
- Specified by:
getGlobalThemeKey
in 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:
getSpaceTheme
in interfaceThemeManager
-
getSpaceThemeKey
- Specified by:
getSpaceThemeKey
in interfaceThemeManager
-
setGlobalTheme
- Specified by:
setGlobalTheme
in interfaceThemeManager
-
setSpaceTheme
- Specified by:
setSpaceTheme
in interfaceThemeManager
-
getAvailableThemeDescriptors
- Specified by:
getAvailableThemeDescriptors
in interfaceThemeManager
-
setBandanaManager
Deprecated.since 7.7 usesetThemeKeyDao(ThemeKeyDao)
with aBandanaThemeKeyDao
-
setThemeKeyDao
- Since:
- 7.7
-
setEventPublisher
public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher) - Since:
- 8.9
-
setUpgradeManager
Deprecated.since 7.20 usesetUpgradedFlag(UpgradedFlag)
-
setUpgradedFlag
- Since:
- 7.20
-
setAuditingContext
-
setPluginAccessor
public void setPluginAccessor(com.atlassian.plugin.PluginAccessor pluginAccessor)
-
setThemeKeyDao(ThemeKeyDao)
with aBandanaThemeKeyDao