Class DecoratorUtil
- java.lang.Object
-
- com.atlassian.confluence.impl.util.DecoratorUtil
-
public class DecoratorUtil extends Object
This class provides helper methods for deferred rendering of page sections in main decorator- Since:
- 5.10
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDecoratorUtil.ContentNavigationContextstatic classDecoratorUtil.SideBarContext
-
Constructor Summary
Constructors Constructor Description DecoratorUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DecoratorUtil.ContentNavigationContextgetContentNavContext()Methods returns page/blogpost context, saved into request for deferred (sitemesh) content nav execution.static DecoratorUtil.SideBarContextgetSidebarContext()Methods returns page/blogpost context, saved into request for deferred (sitemesh) sidebar execution.static booleanhasContentNavContext()Methods returnstrueif content navigation context was set to http request,falseotherwisestatic booleanhasSidebarContext()Methods 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.
-
-
-
Method Detail
-
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
-
setContentNavContext
public 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 underDecoratorAction, which does not contain page/space context of the main request. Context is saved as attribute inHttpServletRequest.- Parameters:
page- current pagemode- modecontext- execution context namehelper- page helper- Since:
- 5.10
-
hasSidebarContext
public static boolean hasSidebarContext()
Methods returnstrueif sidebar context was set to http request,falseotherwise- Since:
- 5.10
-
hasContentNavContext
public static boolean hasContentNavContext()
Methods returnstrueif content navigation context was set to http request,falseotherwise- Since:
- 5.10
-
getSidebarContext
public static DecoratorUtil.SideBarContext getSidebarContext()
Methods returns page/blogpost context, saved into request for deferred (sitemesh) sidebar execution.- Since:
- 5.10
- See Also:
DecoratorUtil.SideBarContext
-
getContentNavContext
public static DecoratorUtil.ContentNavigationContext getContentNavContext()
Methods returns page/blogpost context, saved into request for deferred (sitemesh) content nav execution.- Since:
- 5.10
- See Also:
DecoratorUtil.ContentNavigationContext
-
-