Class DefaultUserThemeService
- java.lang.Object
-
- com.atlassian.confluence.themes.user.DefaultUserThemeService
-
- All Implemented Interfaces:
com.atlassian.theme.internal.api.user.UserThemeService
@ParametersAreNonnullByDefault @ReturnValuesAreNonnullByDefault public class DefaultUserThemeService extends Object implements com.atlassian.theme.internal.api.user.UserThemeService
-
-
Constructor Summary
Constructors Constructor Description DefaultUserThemeService(@NonNull ConfluenceUserResolver confluenceUserResolver, @NonNull com.atlassian.theme.internal.api.ThemeService themeService, @NonNull UserPreferencesAccessor userPreferencesAccessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<com.atlassian.theme.internal.api.user.PreferredColorMode>
getPreferredColorMode(com.atlassian.sal.api.user.UserKey userKey)
Optional<com.atlassian.theme.api.Theme>
getPreferredDarkTheme(com.atlassian.sal.api.user.UserKey userKey)
Optional<com.atlassian.theme.api.Theme>
getPreferredLightTheme(com.atlassian.sal.api.user.UserKey userKey)
void
setPreferredColorMode(com.atlassian.sal.api.user.UserKey userKey, com.atlassian.theme.internal.api.user.PreferredColorMode preferredColorMode)
void
setPreferredDarkTheme(com.atlassian.sal.api.user.UserKey userKey, com.atlassian.theme.api.Theme theme)
void
setPreferredLightTheme(com.atlassian.sal.api.user.UserKey userKey, com.atlassian.theme.api.Theme theme)
-
-
-
Constructor Detail
-
DefaultUserThemeService
public DefaultUserThemeService(@NonNull ConfluenceUserResolver confluenceUserResolver, @NonNull com.atlassian.theme.internal.api.ThemeService themeService, @NonNull UserPreferencesAccessor userPreferencesAccessor)
-
-
Method Detail
-
getPreferredColorMode
public Optional<com.atlassian.theme.internal.api.user.PreferredColorMode> getPreferredColorMode(com.atlassian.sal.api.user.UserKey userKey)
- Specified by:
getPreferredColorMode
in interfacecom.atlassian.theme.internal.api.user.UserThemeService
-
getPreferredDarkTheme
public Optional<com.atlassian.theme.api.Theme> getPreferredDarkTheme(com.atlassian.sal.api.user.UserKey userKey)
- Specified by:
getPreferredDarkTheme
in interfacecom.atlassian.theme.internal.api.user.UserThemeService
-
getPreferredLightTheme
public Optional<com.atlassian.theme.api.Theme> getPreferredLightTheme(com.atlassian.sal.api.user.UserKey userKey)
- Specified by:
getPreferredLightTheme
in interfacecom.atlassian.theme.internal.api.user.UserThemeService
-
setPreferredColorMode
public void setPreferredColorMode(com.atlassian.sal.api.user.UserKey userKey, com.atlassian.theme.internal.api.user.PreferredColorMode preferredColorMode)
- Specified by:
setPreferredColorMode
in interfacecom.atlassian.theme.internal.api.user.UserThemeService
-
setPreferredDarkTheme
public void setPreferredDarkTheme(com.atlassian.sal.api.user.UserKey userKey, com.atlassian.theme.api.Theme theme)
- Specified by:
setPreferredDarkTheme
in interfacecom.atlassian.theme.internal.api.user.UserThemeService
-
setPreferredLightTheme
public void setPreferredLightTheme(com.atlassian.sal.api.user.UserKey userKey, com.atlassian.theme.api.Theme theme)
- Specified by:
setPreferredLightTheme
in interfacecom.atlassian.theme.internal.api.user.UserThemeService
-
-