com.atlassian.confluence.renderer
Class PageContext

java.lang.Object
  extended by com.atlassian.renderer.RenderContext
      extended by com.atlassian.confluence.renderer.PageContext
All Implemented Interfaces:
com.atlassian.renderer.links.LinkContext, com.atlassian.renderer.RenderContextOutputType

public class PageContext
extends com.atlassian.renderer.RenderContext
implements com.atlassian.renderer.links.LinkContext

Context object that gets passed to the renderer to tell it what circumstances the page is being rendered in. This is used for all rendering in Confluence, not just rendering pages.


Field Summary
 
Fields inherited from interface com.atlassian.renderer.RenderContextOutputType
DISPLAY, EMAIL, FEED, HTML_EXPORT, PDF, PREVIEW, WORD
 
Constructor Summary
PageContext()
           
PageContext(ContentEntityObject entity)
           
PageContext(ContentEntityObject entity, PageContext previousContext)
           
PageContext(String spaceKey)
           
 
Method Summary
 boolean equals(Object o)
           
 ContentEntityObject getEntity()
           
 PageContext getOriginalContext()
           
 String getPageTitle()
           
 Calendar getPostingDay()
           
 String getSpaceKey()
           
 int hashCode()
           
 
Methods inherited from class com.atlassian.renderer.RenderContext
addExternalReference, addParam, addRenderedContent, addRenderedContent, getAttachmentsPath, getBaseUrl, getCharacterEncoding, getEmbeddedResourceRenderer, getExternalReferences, getImagePath, getLinkRenderer, getOutputType, getParam, getParams, getRenderedContentStore, getRenderMode, getSiteRoot, isRenderingForWysiwyg, popRenderMode, pushRenderMode, setAttachmentsPath, setBaseUrl, setCharacterEncoding, setEmbeddedResourceRenderer, setImagePath, setLinkRenderer, setOutputType, setRenderingForWysiwyg, setSiteRoot
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PageContext

public PageContext()

PageContext

public PageContext(String spaceKey)

PageContext

public PageContext(ContentEntityObject entity)

PageContext

public PageContext(ContentEntityObject entity,
                   PageContext previousContext)
Method Detail

getOriginalContext

public PageContext getOriginalContext()

getSpaceKey

public String getSpaceKey()

getPageTitle

public String getPageTitle()

getPostingDay

public Calendar getPostingDay()

getEntity

public ContentEntityObject getEntity()

equals

public boolean equals(Object o)
Overrides:
equals in class com.atlassian.renderer.RenderContext

hashCode

public int hashCode()
Overrides:
hashCode in class com.atlassian.renderer.RenderContext


Copyright © 2003-2010 Atlassian. All Rights Reserved.