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
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionMethods returns page/blogpost context, saved into request for deferred (sitemesh) content nav execution.static DecoratorUtil.SideBarContextMethods returns page/blogpost context, saved into request for deferred (sitemesh) sidebar execution.static booleanMethods returnstrueif content navigation context was set to http request,falseotherwisestatic booleanMethods returnstrueif sidebar context was set to http request,falseotherwisestatic voidsetContentNavContext(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 underDecoratorAction, which does not contain page/space context of the main request.static voidsetSidebarContext(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 underDecoratorAction, 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 underDecoratorAction, 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 returnstrueif sidebar context was set to http request,falseotherwise- Since:
- 5.10
-
getSidebarContext
Methods returns page/blogpost context, saved into request for deferred (sitemesh) sidebar execution.- Since:
- 5.10
- See Also:
-