public class

ThemeContext

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

Class Overview

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.

Summary

Constants
String ATTRIBUTE_KEY
Public Constructors
ThemeContext(Space currentSpace, Theme spaceTheme, Theme globalTheme)
Public Methods
static ThemeContext get(ServletRequest request)
Theme getAppliedTheme()
Theme getGlobalTheme()
Space getSpace()
String getSpaceKey()
Theme getSpaceTheme()
boolean hasGlobalTheme()
boolean hasSpaceTheme()
static void set(ServletRequest request, Space currentSpace, Theme currentTheme, Theme globalTheme)
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final String ATTRIBUTE_KEY

Constant Value: "confluence.themecontext"

Public Constructors

public ThemeContext (Space currentSpace, Theme spaceTheme, Theme globalTheme)

Public Methods

public static ThemeContext get (ServletRequest request)

public Theme getAppliedTheme ()

public Theme getGlobalTheme ()

public Space getSpace ()

public String getSpaceKey ()

public Theme getSpaceTheme ()

public boolean hasGlobalTheme ()

public boolean hasSpaceTheme ()

public static void set (ServletRequest request, Space currentSpace, Theme currentTheme, Theme globalTheme)