Class ThemeContext

java.lang.Object
com.atlassian.confluence.themes.ThemeContext

public class ThemeContext extends Object
Context object placed in the HttpServletRequest attributes that the theme manager can use to determine what the 'context' of the current request might be. Currently we just stick the space in here but there's room for expansion.
  • Field Details

  • Constructor Details

    • ThemeContext

      public ThemeContext(Space currentSpace, Theme spaceTheme, Theme globalTheme)
  • Method Details

    • set

      public static void set(javax.servlet.ServletRequest request, Space currentSpace, Theme currentTheme, Theme globalTheme)
    • get

      public static ThemeContext get(javax.servlet.ServletRequest request)
    • hasThemeContext

      public static boolean hasThemeContext(javax.servlet.ServletRequest request)
      Returns:
      true if the request has some theme context
      Since:
      7.5
    • getSpace

      public Space getSpace()
    • hasSpaceTheme

      public boolean hasSpaceTheme()
    • getSpaceTheme

      public Theme getSpaceTheme()
    • hasGlobalTheme

      public boolean hasGlobalTheme()
    • getGlobalTheme

      public Theme getGlobalTheme()
    • getSpaceKey

      public String getSpaceKey()
    • getAppliedTheme

      public Theme getAppliedTheme()