|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.core.bean.EntityObject com.atlassian.confluence.core.ConfluenceEntityObject com.atlassian.confluence.core.AbstractVersionedEntityObject com.atlassian.confluence.core.AbstractLabelableEntityObject com.atlassian.confluence.core.ContentEntityObject com.atlassian.confluence.core.SpaceContentEntityObject com.atlassian.confluence.pages.AbstractPage
public abstract class AbstractPage
Parent of the concrete Page and BlogPost classes
Field Summary |
---|
Fields inherited from class com.atlassian.confluence.core.ContentEntityObject |
---|
CREATED, CURRENT, DELETED, MODIFIED |
Fields inherited from class com.atlassian.confluence.core.AbstractVersionedEntityObject |
---|
INITIAL_VERSION |
Constructor Summary | |
---|---|
AbstractPage()
|
Method Summary | |
---|---|
void |
convertToHistoricalVersion()
Remove all data from the object that does not need to be saved by historical versions. |
java.lang.String |
getAttachmentsUrlPath()
|
java.lang.String |
getAttachmentUrlPath(Attachment attachment)
Gets the path relative to Confluence's base URL to view the given attachment in the context of this content (for example, highlighted in the content's list of attachments). |
ContentEntityObject |
getContentEntityObject()
|
AbstractPage |
getLatestVersion()
Get the latest, current version of this versioned object. |
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() |
java.util.List<Comment> |
getPageLevelComments()
|
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. |
java.util.Collection<com.atlassian.bonnie.Searchable> |
getSearchableDependants()
|
java.util.List<Comment> |
getTopLevelComments()
|
java.lang.String |
getUrlPath()
|
static boolean |
hasInvalidTitleCharacters(java.lang.String title)
Deprecated. |
static boolean |
isValidPageTitle(java.lang.String title)
|
static boolean |
isValidPageTitleCharacter(char c)
Deprecated. |
static boolean |
isValidTitleLength(java.lang.String title)
|
void |
remove(PageManager pageManager)
Remove this page from the world. |
void |
setContentPropertiesFromDraft(Draft draft)
Initialises the ContentProperties of this AbstractPage by performing
a deep clone of the Draft object's properties. |
void |
setOriginalVersionPage(AbstractPage originalVersionPage)
|
void |
setTitle(java.lang.String title)
|
Methods inherited from class com.atlassian.confluence.core.SpaceContentEntityObject |
---|
addTrackbackLink, getNameForComparison, getSpace, getSpaceKey, hashCode, isIndexable, isInSpace, setSpace |
Methods inherited from class com.atlassian.confluence.core.AbstractLabelableEntityObject |
---|
addLabelling, getGlobalLabels, getLabelCount, getLabellings, getLabels, getLabelsForDisplay, getLabelUtil, getPersonalLabels, getTeamLabels, getVisibleLabels, isFavourite, isFavourite, removeLabelling, setLabellings |
Methods inherited from class com.atlassian.confluence.core.AbstractVersionedEntityObject |
---|
getOriginalVersion, getVersion, isLatestVersion, isNew, setOriginalVersion, setVersion |
Methods inherited from class com.atlassian.confluence.core.ConfluenceEntityObject |
---|
getCreator, getCreatorName, getLastModifier, getLastModifierName, getRealClass, isPersistent, setCreator, setCreatorName, setLastModifier, setLastModifierName |
Methods inherited from class com.atlassian.core.bean.EntityObject |
---|
getCreationDate, getCurrentDate, getId, getLastModificationDate, setClock, setCreationDate, setId, setLastModificationDate |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface com.atlassian.confluence.core.HasLinkWikiMarkup |
---|
getLinkWikiMarkup |
Methods inherited from interface com.atlassian.bonnie.Searchable |
---|
getId |
Methods inherited from interface com.atlassian.confluence.core.Addressable |
---|
getId |
Methods inherited from interface com.atlassian.confluence.labels.EditableLabelable |
---|
getId, isPersistent |
Constructor Detail |
---|
public AbstractPage()
Method Detail |
---|
public static boolean isValidPageTitle(java.lang.String title)
public static boolean isValidTitleLength(java.lang.String title)
@Deprecated public static boolean hasInvalidTitleCharacters(java.lang.String title)
@Deprecated public static boolean isValidPageTitleCharacter(char c)
public ContentEntityObject getContentEntityObject()
public void setTitle(java.lang.String title)
setTitle
in class ContentEntityObject
public void convertToHistoricalVersion()
Versioned
When using Hibernate to persist versioned objects, take special care to null any field that might contain a Hibernate-persisted collection, as Hibernate does not allow two different persistent objects to refer to the same persisted collection at the same time.
convertToHistoricalVersion
in interface Versioned
convertToHistoricalVersion
in class SpaceContentEntityObject
public AbstractPage getOriginalVersionPage()
public void setOriginalVersionPage(AbstractPage originalVersionPage)
public int getPreviousVersion()
public void remove(PageManager pageManager)
public java.util.Collection<com.atlassian.bonnie.Searchable> getSearchableDependants()
getSearchableDependants
in interface com.atlassian.bonnie.Searchable
getSearchableDependants
in class ContentEntityObject
public java.lang.String getUrlPath()
getUrlPath
in interface Addressable
getUrlPath
in class ContentEntityObject
public java.util.List<Comment> getPageLevelComments()
public java.util.List<Comment> getTopLevelComments()
public java.lang.String getAttachmentsUrlPath()
getAttachmentsUrlPath
in class ContentEntityObject
public java.lang.String getAttachmentUrlPath(Attachment attachment)
ContentEntityObject
Attachment.getUrlPath()
instead of this method: if we ever implement
view pages for individual attachments, that's the method that will be changed to point to them.
The default implementation just returns the view page for this content.
getAttachmentUrlPath
in class ContentEntityObject
attachment
- one of this content's attachments
public AbstractPage getLatestVersion()
getLatestVersion
in interface Versioned
getLatestVersion
in class AbstractVersionedEntityObject
public void setContentPropertiesFromDraft(Draft draft)
ContentProperties
of this AbstractPage by performing
a deep clone of the Draft
object's properties.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |