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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ThemeContextget(jakarta.servlet.ServletRequest request) getSpace()booleanbooleanstatic booleanhasThemeContext(jakarta.servlet.ServletRequest request) static voidset(jakarta.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(jakarta.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
-