Class CachingThemeKeyDao
- java.lang.Object
-
- com.atlassian.confluence.impl.themes.CachingThemeKeyDao
-
- All Implemented Interfaces:
ThemeKeyDao
public class CachingThemeKeyDao extends Object implements ThemeKeyDao
An implementation ofThemeKeyDao
that 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 CachingThemeKeyDao
create(ThemeKeyDao delegate, com.atlassian.cache.CacheFactory cacheFactory)
Optional<String>
getGlobalThemeKey()
Optional<String>
getSpaceThemeKey(@Nullable String spaceKey)
void
setGlobalThemeKey(String themeKey)
void
setSpaceThemeKey(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:
getGlobalThemeKey
in interfaceThemeKeyDao
-
getSpaceThemeKey
public Optional<String> getSpaceThemeKey(@Nullable String spaceKey)
- Specified by:
getSpaceThemeKey
in interfaceThemeKeyDao
-
setGlobalThemeKey
public void setGlobalThemeKey(String themeKey)
- Specified by:
setGlobalThemeKey
in interfaceThemeKeyDao
-
setSpaceThemeKey
public void setSpaceThemeKey(String spaceKey, String themeKey)
- Specified by:
setSpaceThemeKey
in interfaceThemeKeyDao
-
-