Class PageTemplateContext
- java.lang.Object
-
- com.atlassian.renderer.RenderContext
-
- com.atlassian.confluence.renderer.PageContext
-
- com.atlassian.confluence.renderer.PageTemplateContext
-
- All Implemented Interfaces:
com.atlassian.renderer.links.LinkContext,com.atlassian.renderer.RenderContextOutputType
public class PageTemplateContext extends PageContext
- Since:
- 7.5.0 Context object that gets passed to the renderer to tell it what circumstances the page is being rendered in. Used when rendering Page Templates.
-
-
Constructor Summary
Constructors Constructor Description PageTemplateContext()PageTemplateContext(PageTemplate template)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)ContentEntityObjectgetEntity()PageTemplategetTemplate()inthashCode()-
Methods inherited from class com.atlassian.confluence.renderer.PageContext
contextWithTimeout, createMinimumTimeout, getElementIdCreator, getOriginalContext, getOutputDeviceType, getPageTitle, getPostingDay, getSpaceKey, getTimeout, minimumTimeout, newContextWithTimeout, setOutputDeviceType, timeout, toSearchContext
-
Methods inherited from class com.atlassian.renderer.RenderContext
addExternalReference, addParam, addRenderedContent, addRenderedContent, getAttachmentsPath, getBaseUrl, getCharacterEncoding, getEmbeddedResourceRenderer, getEscaper, getExternalReferences, getImagePath, getLinkRenderer, getOutputType, getParam, getParams, getRenderedContentStore, getRenderMode, getSiteRoot, isRenderingForWysiwyg, popRenderMode, pushRenderMode, setAttachmentsPath, setBaseUrl, setCharacterEncoding, setEmbeddedResourceRenderer, setEscaper, setImagePath, setLinkRenderer, setOutputType, setRenderingForWysiwyg, setSiteRoot
-
-
-
-
Constructor Detail
-
PageTemplateContext
public PageTemplateContext()
-
PageTemplateContext
public PageTemplateContext(PageTemplate template)
-
-
Method Detail
-
getTemplate
public PageTemplate getTemplate()
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classPageContext
-
hashCode
public int hashCode()
- Overrides:
hashCodein classPageContext
-
getEntity
public ContentEntityObject getEntity()
- Overrides:
getEntityin classPageContext- Since:
- 7.5.0 Replaces ContentEntitySimulacrum Used in cases where a PageContext is assumed and something calls getEntity() expecting a proper ContentEntityObject
-
-