Package com.atlassian.confluence.themes
Class ThemeContext
java.lang.Object
com.atlassian.confluence.themes.ThemeContext
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 Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ThemeContext
get
(javax.servlet.ServletRequest request) getSpace()
boolean
boolean
static boolean
hasThemeContext
(javax.servlet.ServletRequest request) static void
set
(javax.servlet.ServletRequest request, Space currentSpace, Theme currentTheme, Theme globalTheme)
-
Field Details
-
ATTRIBUTE_KEY
- See Also:
-
-
Constructor Details
-
ThemeContext
-
-
Method Details
-
set
-
get
-
hasThemeContext
public static boolean hasThemeContext(javax.servlet.ServletRequest request) - Returns:
- true if the request has some theme context
- Since:
- 7.5
-
getSpace
-
hasSpaceTheme
public boolean hasSpaceTheme() -
getSpaceTheme
-
hasGlobalTheme
public boolean hasGlobalTheme() -
getGlobalTheme
-
getSpaceKey
-
getAppliedTheme
-