Class 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 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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.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 interface com.atlassian.theme.internal.api.user.UserThemeService