Class CachingThemeKeyDao
- java.lang.Object
-
- com.atlassian.confluence.impl.themes.CachingThemeKeyDao
-
- All Implemented Interfaces:
ThemeKeyDao
public class CachingThemeKeyDao extends Object implements ThemeKeyDao
An implementation ofThemeKeyDaothat caches the responses from a delegate.- Since:
- 7.7
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CachingThemeKeyDaocreate(ThemeKeyDao delegate, com.atlassian.cache.CacheFactory cacheFactory)Optional<String>getGlobalThemeKey()Optional<String>getSpaceThemeKey(String spaceKey)voidsetGlobalThemeKey(String themeKey)voidsetSpaceThemeKey(String spaceKey, String themeKey)
-
-
-
Method Detail
-
create
public static CachingThemeKeyDao create(ThemeKeyDao delegate, com.atlassian.cache.CacheFactory cacheFactory)
-
getGlobalThemeKey
public Optional<String> getGlobalThemeKey()
- Specified by:
getGlobalThemeKeyin interfaceThemeKeyDao
-
getSpaceThemeKey
public Optional<String> getSpaceThemeKey(@Nullable String spaceKey)
- Specified by:
getSpaceThemeKeyin interfaceThemeKeyDao
-
setGlobalThemeKey
public void setGlobalThemeKey(String themeKey)
- Specified by:
setGlobalThemeKeyin interfaceThemeKeyDao
-
setSpaceThemeKey
public void setSpaceThemeKey(String spaceKey, String themeKey)
- Specified by:
setSpaceThemeKeyin interfaceThemeKeyDao
-
-