public class DecoratorUtil extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DecoratorUtil.ContentNavigationContext |
static class |
DecoratorUtil.SideBarContext |
Constructor and Description |
---|
DecoratorUtil() |
Modifier and Type | Method and Description |
---|---|
static DecoratorUtil.ContentNavigationContext |
getContentNavContext()
Methods returns page/blogpost context, saved into request for deferred (sitemesh) content nav execution.
|
static DecoratorUtil.SideBarContext |
getSidebarContext()
Methods returns page/blogpost context, saved into request for deferred (sitemesh) sidebar execution.
|
static boolean |
hasContentNavContext()
Methods returns
true if content navigation context was set to http request, false otherwise |
static boolean |
hasSidebarContext()
Methods returns
true if sidebar context was set to http request, false otherwise |
static void |
setContentNavContext(AbstractPage page,
String mode,
String context,
ThemeHelper helper)
Page/blogpost context should be saved for deferred (sitemesh) content navigation execution, because main sitemesh decorator
is executed under
DecoratorAction , which does not contain
page/space context of the main request. |
static void |
setSidebarContext(Space space,
AbstractPage page,
String pageId,
String context,
String contextKey,
String collectorKey)
Page/blogpost context should be saved for deferred (sitemesh) sidebar execution, because main sitemesh decorator
is executed under
DecoratorAction , which does not contain
page/space context of the main request. |
public static void setSidebarContext(Space space, AbstractPage page, String pageId, String context, String contextKey, String collectorKey)
DecoratorAction
, which does not contain
page/space context of the main request. Context is saved as attribute in HttpServletRequest
.page
- current pagepageId
- current page idcontext
- execution context namecontextKey
- context keycollectorKey
- collector keypublic static void setContentNavContext(AbstractPage page, String mode, String context, ThemeHelper helper)
DecoratorAction
, which does not contain
page/space context of the main request. Context is saved as attribute in HttpServletRequest
.page
- current pagemode
- modecontext
- execution context namehelper
- page helperpublic static boolean hasSidebarContext()
true
if sidebar context was set to http request, false
otherwisepublic static boolean hasContentNavContext()
true
if content navigation context was set to http request, false
otherwisepublic static DecoratorUtil.SideBarContext getSidebarContext()
DecoratorUtil.SideBarContext
public static DecoratorUtil.ContentNavigationContext getContentNavContext()
DecoratorUtil.ContentNavigationContext
Copyright © 2003–2017 Atlassian. All rights reserved.