com.atlassian.confluence.themes
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ATTRIBUTE_KEY
public static final String ATTRIBUTE_KEY
- See Also:
- Constant Field Values
ThemeContext
public ThemeContext(Space currentSpace,
Theme spaceTheme,
Theme globalTheme)
set
public static void set(ServletRequest request,
Space currentSpace,
Theme currentTheme,
Theme globalTheme)
get
public static ThemeContext get(ServletRequest request)
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()