public class PageHelper extends GlobalHelper implements TinyUrlAware
Its behaviours are to be called from a velocity context to make it easy, and uniform, for the invoking of behaviours which all pages in Confluence will need.
Constructor and Description |
---|
PageHelper() |
PageHelper(AbstractPageAction action) |
Modifier and Type | Method and Description |
---|---|
String |
getCustomFooter(String key) |
String |
getCustomHeader(String key) |
CustomPageSettingsManager |
getCustomPageSettingsManager() |
LabelManager |
getLabelManager() |
int |
getNumberOfAttachments() |
String |
getNumberOfAttachmentsAsString() |
int |
getNumberOfLabels() |
String |
getNumberOfLabelsAsString() |
String |
getTinyUrl() |
List |
getViewableLabels() |
boolean |
isChildrenShowing() |
boolean |
isHistoricalVersion() |
boolean |
shouldRenderCommentAsUpdated(Comment comment)
Should this comment be flagged as having been updated in any rendering, using a default grace threshold
|
boolean |
shouldRenderCommentAsUpdated(Comment comment,
int thresholdSeconds)
Should this comment be flagged as having been updated in any rendering
|
getAction, getBreadcrumbs, getDomainName, getEllipsisCrumbs, getLabel, getPage, getSiteTitle, getSpace, getSpaceKey, getSpaceName, getSpaceType, getText, getText, getWikiStyleRenderer, renderConfluenceMacro, renderConfluenceMacro
public PageHelper()
public PageHelper(AbstractPageAction action)
public boolean isHistoricalVersion()
public boolean isChildrenShowing()
public int getNumberOfAttachments()
public String getNumberOfAttachmentsAsString()
public int getNumberOfLabels()
public String getNumberOfLabelsAsString()
public String getTinyUrl()
getTinyUrl
in interface TinyUrlAware
public LabelManager getLabelManager()
public CustomPageSettingsManager getCustomPageSettingsManager()
public List getViewableLabels()
public boolean shouldRenderCommentAsUpdated(Comment comment, int thresholdSeconds)
comment
- Comment to renderthresholdSeconds
- Number of seconds grace since creation in which edits to the comment will not be flagged as an updatepublic boolean shouldRenderCommentAsUpdated(Comment comment)
comment
- Comment to be renderedshouldRenderCommentAsUpdated(com.atlassian.confluence.pages.Comment, int)
Copyright © 2003–2017 Atlassian. All rights reserved.