Class DecoratorUtil
java.lang.Object
com.atlassian.confluence.impl.util.DecoratorUtil
This class provides helper methods for deferred rendering of page sections in main decorator
- Since:
- 5.10
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionMethods returns page/blogpost context, saved into request for deferred (sitemesh) content nav execution.static DecoratorUtil.SideBarContext
Methods returns page/blogpost context, saved into request for deferred (sitemesh) sidebar execution.static boolean
Methods returnstrue
if content navigation context was set to http request,false
otherwisestatic boolean
Methods returnstrue
if sidebar context was set to http request,false
otherwisestatic 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 undercom.atlassian.confluence.util.profiling.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 undercom.atlassian.confluence.util.profiling.DecoratorAction
, which does not contain page/space context of the main request.
-
Constructor Details
-
DecoratorUtil
public DecoratorUtil()
-
-
Method Details
-
setSidebarContext
public 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 undercom.atlassian.confluence.util.profiling.DecoratorAction
, which does not contain page/space context of the main request. Context is saved as attribute inHttpServletRequest
.- Parameters:
page
- current pagepageId
- current page idcontext
- execution context namecontextKey
- context keycollectorKey
- collector key- Since:
- 5.10
-
hasSidebarContext
public static boolean hasSidebarContext()Methods returnstrue
if sidebar context was set to http request,false
otherwise- Since:
- 5.10
-
getSidebarContext
Methods returns page/blogpost context, saved into request for deferred (sitemesh) sidebar execution.- Since:
- 5.10
- See Also:
-