Class VelocitySafeRequestScopeThemeOverrideService

java.lang.Object
com.atlassian.jira.themes.request.VelocitySafeRequestScopeThemeOverrideService
All Implemented Interfaces:
com.atlassian.theme.internal.api.request.RequestScopeThemeOverrideService

public class VelocitySafeRequestScopeThemeOverrideService extends Object implements com.atlassian.theme.internal.api.request.RequestScopeThemeOverrideService
Class needed for dark theme switcher. It returns a bootstrap implementation of RequestScopeThemeOverrideService when UserManager is not ready to be loaded, and the real implementation otherwise.

Ideally, UserManager would always be available and we wouldn't need this proxy at all.

Since:
10.0
  • Constructor Details

    • VelocitySafeRequestScopeThemeOverrideService

      public VelocitySafeRequestScopeThemeOverrideService()
  • Method Details

    • setColorModeOverride

      public void setColorModeOverride(@Nonnull javax.servlet.http.HttpServletRequest httpServletRequest, @Nullable String s)
      Specified by:
      setColorModeOverride in interface com.atlassian.theme.internal.api.request.RequestScopeThemeOverrideService
    • setMatchingUserAgentEnabledOverride

      public void setMatchingUserAgentEnabledOverride(@Nonnull javax.servlet.http.HttpServletRequest httpServletRequest, @Nullable Boolean aBoolean)
      Specified by:
      setMatchingUserAgentEnabledOverride in interface com.atlassian.theme.internal.api.request.RequestScopeThemeOverrideService
    • setDarkThemeOverride

      public void setDarkThemeOverride(@Nonnull javax.servlet.http.HttpServletRequest httpServletRequest, @Nullable String s)
      Specified by:
      setDarkThemeOverride in interface com.atlassian.theme.internal.api.request.RequestScopeThemeOverrideService
    • setLightThemeOverride

      public void setLightThemeOverride(@Nonnull javax.servlet.http.HttpServletRequest httpServletRequest, @Nullable String s)
      Specified by:
      setLightThemeOverride in interface com.atlassian.theme.internal.api.request.RequestScopeThemeOverrideService