Package com.atlassian.confluence.themes
Class PageHelper
java.lang.Object
com.atlassian.confluence.themes.GlobalHelper
com.atlassian.confluence.themes.PageHelper
- All Implemented Interfaces:
TinyUrlAware
,ThemeHelper
Note - this is not a helper for the Page object but rather a helper for rendering
pages in Confluence themes in general.
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCustomFooter
(String key) getCustomHeader
(String key) int
int
boolean
boolean
boolean
shouldRenderCommentAsUpdated
(Comment comment) Should this comment be flagged as having been updated in any rendering, using a default grace thresholdboolean
shouldRenderCommentAsUpdated
(Comment comment, int thresholdSeconds) Should this comment be flagged as having been updated in any renderingMethods inherited from class com.atlassian.confluence.themes.GlobalHelper
getAction, getBreadcrumbs, getDomainName, getEllipsisCrumbs, getLabel, getPage, getSpace, getSpaceKey, getSpaceName, getSpaceType, getText, getText, renderConfluenceMacro, renderConfluenceMacro
-
Constructor Details
-
PageHelper
public PageHelper() -
PageHelper
-
-
Method Details
-
isHistoricalVersion
public boolean isHistoricalVersion() -
isChildrenShowing
public boolean isChildrenShowing()- Returns:
- false if the page is not an instance of ViewPageAction, otherwise it will return the value of viewPageAction.getChildrenShowing
-
getNumberOfAttachments
public int getNumberOfAttachments()- Overrides:
getNumberOfAttachments
in classGlobalHelper
-
getCustomHeader
-
getNumberOfAttachmentsAsString
-
getNumberOfLabels
public int getNumberOfLabels() -
getNumberOfLabelsAsString
-
getTinyUrl
- Specified by:
getTinyUrl
in interfaceTinyUrlAware
-
getLabelManager
-
getCustomPageSettingsManager
-
getViewableLabels
-
shouldRenderCommentAsUpdated
Should this comment be flagged as having been updated in any rendering- Parameters:
comment
- Comment to renderthresholdSeconds
- Number of seconds grace since creation in which edits to the comment will not be flagged as an update- Returns:
- Whether the comment should be rendered as updated
-
shouldRenderCommentAsUpdated
Should this comment be flagged as having been updated in any rendering, using a default grace threshold- Parameters:
comment
- Comment to be rendered- Returns:
- Whether the comment should be rendered as updated
- See Also:
-