com.atlassian.confluence.pages
Class AbstractPage
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.confluence.core.ConfluenceEntityObject
com.atlassian.confluence.core.AbstractVersionedEntityObject
com.atlassian.confluence.core.ContentEntityObject
com.atlassian.confluence.core.SpaceContentEntityObject
com.atlassian.confluence.pages.AbstractPage
- All Implemented Interfaces:
- Searchable, Addressable, Versioned, Labelable, Serializable, Cloneable, Comparable
- Direct Known Subclasses:
- BlogPost, Page
public abstract class AbstractPage
- extends SpaceContentEntityObject
Parent of the concrete Page and BlogPost classes
- See Also:
- Serialized Form
| Methods inherited from class com.atlassian.confluence.core.ContentEntityObject |
addAttachment, addLabelling, addOutgoingLink, addPermission, addReferralLink, clearPermissions, clone, compareTo, equals, getAttachmentNamed, getAttachments, getBodyContents, getContent, getContentPermission, getContentStatus, getExcerpt, getGlobalLabels, getIdAsString, getLabelCount, getLabellings, getLabels, getLabelsForDisplay, getLabelUtil, getLatestVersionsOfAttachments, getLog, getOutgoingLinks, getPermissions, getPersonalLabels, getRealTitle, getReferralLinks, getRenderedVersionComment, getTitle, getTrackbackLinks, getType, getUserAccessor, getVersionComment, getVisibleLabels, isCurrent, isDeleted, isFavourite, isRecentlyUpdatedFor, isVersionCommentAvailable, removeAttachment, removeLabelling, removeOutgoingLink, removePermission, removeReferralLink, removeTrackbackLink, setAttachments, setBodyContents, setContent, setContentStatus, setOutgoingLinks, setPermissions, setReferralLinks, setTrackbackLinks, setUserAccessor, setVersionComment, toPageContext, toString, trash |
| Methods inherited from interface com.atlassian.confluence.core.Addressable |
getId |
AbstractPage
public AbstractPage()
isValidPageTitle
public static boolean isValidPageTitle(String title)
isValidPageTitleCharacter
public static boolean isValidPageTitleCharacter(char c)
setTitle
public void setTitle(String title)
- Overrides:
setTitle in class ContentEntityObject
getComments
public List getComments()
setComments
public void setComments(List comments)
addComment
public void addComment(Comment comment)
removeComment
public void removeComment(Comment comment)
convertToHistoricalVersion
public void convertToHistoricalVersion()
- Specified by:
convertToHistoricalVersion in interface Versioned- Overrides:
convertToHistoricalVersion in class SpaceContentEntityObject
getOriginalVersionPage
public AbstractPage getOriginalVersionPage()
- if this page is a historical version, then this method returns the current/latest version of this page
if this page is the latest version, then this returns null
this method name should really be refactored to getCurrentVersionOfPage()
setOriginalVersionPage
public void setOriginalVersionPage(AbstractPage originalVersionPage)
getPreviousVersion
public int getPreviousVersion()
- Convenience method to get the immediately prior version since we can't perform arithmetic in velocity (assume that versions are sequential)
Method is used in email templates where session is not available. Hence we cannot load previousVersions to return a page object
remove
public void remove(PageManager pageManager)
- Remove this page from the world. This method should sever any inverse
relationships this page may have with other objects.
getSearchableDependants
public Collection getSearchableDependants()
- Specified by:
getSearchableDependants in interface Searchable- Overrides:
getSearchableDependants in class ContentEntityObject
getUrlPath
public String getUrlPath()
- Specified by:
getUrlPath in interface Addressable- Specified by:
getUrlPath in class ContentEntityObject
getTopLevelComments
public List getTopLevelComments()
getAttachmentsUrlPath
public String getAttachmentsUrlPath()
- Overrides:
getAttachmentsUrlPath in class ContentEntityObject