|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.core.bean.EntityObject
com.atlassian.confluence.core.ConfluenceEntityObject
com.atlassian.confluence.core.AbstractVersionedEntityObject
com.atlassian.confluence.core.ContentEntityObject
public abstract class ContentEntityObject
| Field Summary | |
|---|---|
static String |
CREATED
|
static String |
CURRENT
|
static String |
DELETED
|
static String |
MODIFIED
|
| Constructor Summary | |
|---|---|
protected |
ContentEntityObject()
|
| Method Summary | |
|---|---|
void |
addAttachment(Attachment attachment)
|
void |
addLabelling(Labelling content)
|
void |
addOutgoingLink(OutgoingLink link)
|
void |
addPermission(ContentPermission permission)
Use this function to add ContentPermissions. |
void |
addReferralLink(ReferralLink link)
|
void |
addTrackbackLink(TrackbackLink link)
|
void |
clearPermissions(ContentPermissionManager permissionManager)
|
Object |
clone()
|
int |
compareTo(Object o)
Content entities are naturally ordered alphabetically by "comparison name", which depends on the entity (it's the title for pages, the parent page title for comments, etc.). |
void |
convertToHistoricalVersion()
|
boolean |
equals(Object o)
|
Attachment |
getAttachmentNamed(String fileName)
|
List |
getAttachments()
Don't use it directly, use AttachmentManager.getAttachments(page) instead |
String |
getAttachmentsUrlPath()
|
List |
getBodyContents()
|
String |
getContent()
|
ContentPermission |
getContentPermission(String permissionType)
Gives back the content permission of a specific type. |
String |
getContentStatus()
|
String |
getExcerpt()
|
List |
getGlobalLabels(User user)
List the labels on this content that are global labels |
String |
getIdAsString()
|
int |
getLabelCount()
Get the number of labels that are associated with this object. |
List |
getLabellings()
|
List |
getLabels()
Retrieve the labels that are associated with this object. |
List |
getLabelsForDisplay(User user)
List the labels on this content that are visible to a particular user, and should be shown in a list of labels. |
LabelUtil |
getLabelUtil()
|
List |
getLatestVersionsOfAttachments()
Don't use it directly, use AttachmentManager.getLatestVersionsOfAttachments(page) instead |
protected abstract org.apache.log4j.Category |
getLog()
|
abstract String |
getNameForComparison()
Subclasses should implement this method, giving a String back so that the content can be alphabetically sorted in a mixed-type list of content-entities. |
List |
getOutgoingLinks()
An outgoing link is a link on this page to another confluence page. It could also link to a website URL These links are contained in the page content They are refreshed each time the page is updated (LinkManager.updateOutgoingLinks()) |
List |
getPermissions()
Get all the permissions that apply to this content. |
List |
getPersonalLabels(User user)
List the labels on this content that are personal labels for a particular user |
String |
getRealTitle()
|
List |
getReferralLinks()
|
String |
getRenderedVersionComment()
|
Collection |
getSearchableDependants()
|
String |
getTitle()
|
List |
getTrackbackLinks()
|
abstract String |
getType()
An easy name for the type of this content: makes it easy for things like the #contentLink macro to work out what to draw. |
abstract String |
getUrlPath()
|
UserAccessor |
getUserAccessor()
|
String |
getVersionComment()
|
List |
getVisibleLabels(User user)
List the labels on this content that are visible to a particular user |
int |
hashCode()
|
boolean |
isCurrent()
|
boolean |
isDeleted()
|
boolean |
isFavourite(User user)
Is this object marked as somebody's favourite? |
boolean |
isIndexable()
Content entity objects that are historical versions should not be indexed. |
boolean |
isRecentlyUpdatedFor(User user)
Returns true if the page has been created or modified since the user last logged in. |
boolean |
isVersionCommentAvailable()
|
void |
removeAttachment(Attachment attachment)
|
void |
removeLabelling(Labelling labelling)
|
void |
removeOutgoingLink(OutgoingLink link)
|
void |
removePermission(ContentPermission permission)
this function should just be called by the manager. |
void |
removeReferralLink(ReferralLink link)
|
void |
removeTrackbackLink(TrackbackLink link)
|
void |
setAttachments(List attachments)
|
void |
setBodyContents(List bodyContents)
|
void |
setContent(String content)
|
void |
setContentStatus(String contentStatus)
|
void |
setOutgoingLinks(List outgoingLinks)
|
void |
setPermissions(List permissions)
|
void |
setReferralLinks(List referralLinks)
|
void |
setTitle(String title)
|
void |
setTrackbackLinks(List trackbackLinks)
|
void |
setUserAccessor(UserAccessor userAccessor)
|
void |
setVersionComment(String versionComment)
|
PageContext |
toPageContext()
When the content is rendered, what context is it being rendered in? |
String |
toString()
|
void |
trash()
places content in trash can |
| Methods inherited from class com.atlassian.confluence.core.AbstractVersionedEntityObject |
|---|
getLatestVersion, getOriginalVersion, getVersion, isLatestVersion, isNew, setOriginalVersion, setVersion |
| Methods inherited from class com.atlassian.confluence.core.ConfluenceEntityObject |
|---|
getCreatorName, getLastModifierName, isPersistent, setCreatorName, 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.bonnie.Searchable |
|---|
getId |
| Methods inherited from interface com.atlassian.confluence.core.Addressable |
|---|
getId |
| Field Detail |
|---|
public static final String CURRENT
public static final String DELETED
public static final String CREATED
public static final String MODIFIED
| Constructor Detail |
|---|
protected ContentEntityObject()
| Method Detail |
|---|
public abstract String getType()
getType in interface Addressablepublic String getIdAsString()
public String getRealTitle()
getRealTitle in interface Addressablepublic abstract String getUrlPath()
getUrlPath in interface Addressablepublic String getTitle()
public void setTitle(String title)
public String getContent()
public void setContent(String content)
public List getBodyContents()
public void setBodyContents(List bodyContents)
public List getOutgoingLinks()
public void setOutgoingLinks(List outgoingLinks)
public void addOutgoingLink(OutgoingLink link)
public void removeOutgoingLink(OutgoingLink link)
public List getReferralLinks()
public void setReferralLinks(List referralLinks)
public void addReferralLink(ReferralLink link)
public void removeReferralLink(ReferralLink link)
public List getTrackbackLinks()
public void setTrackbackLinks(List trackbackLinks)
public void addTrackbackLink(TrackbackLink link)
public void removeTrackbackLink(TrackbackLink link)
public void convertToHistoricalVersion()
convertToHistoricalVersion in interface VersionedconvertToHistoricalVersion in class AbstractVersionedEntityObjectpublic boolean equals(Object o)
equals in class EntityObjectpublic int hashCode()
hashCode in class EntityObjectpublic String toString()
toString in class Objectpublic abstract String getNameForComparison()
public final int compareTo(Object o)
compareTo in interface Comparablepublic Collection getSearchableDependants()
getSearchableDependants in interface Searchablepublic final PageContext toPageContext()
public boolean isRecentlyUpdatedFor(User user)
user -
public boolean isIndexable()
isIndexable in interface Searchablepublic void addPermission(ContentPermission permission)
permission - public List getPermissions()
Get all the permissions that apply to this content. Please do not modify the contents of this list! We need to return the list as-is for Hibernate, but modifying the list without going through the addPermission() or removePermission() methods is a Bad Thing.
public ContentPermission getContentPermission(String permissionType)
permissionType -
public void setPermissions(List permissions)
public void removePermission(ContentPermission permission)
permission - public void clearPermissions(ContentPermissionManager permissionManager)
public String getContentStatus()
public void setContentStatus(String contentStatus)
public boolean isCurrent()
public boolean isDeleted()
public void trash()
public List getAttachments()
public List getLatestVersionsOfAttachments()
public void setAttachments(List attachments)
public void addAttachment(Attachment attachment)
public void removeAttachment(Attachment attachment)
public String getExcerpt()
protected abstract org.apache.log4j.Category getLog()
public String getAttachmentsUrlPath()
public Attachment getAttachmentNamed(String fileName)
public List getLabellings()
public void addLabelling(Labelling content)
public void removeLabelling(Labelling labelling)
public List getLabels()
Labelable
getLabels in interface Labelablepublic int getLabelCount()
Labelable
getLabelCount in interface Labelablepublic boolean isFavourite(User user)
Labelable
isFavourite in interface Labelableuser - the user who is being checked against. If user is null
this method must always return false (anonymous users can not
mark anything as a favourite, obviously)
public List getVisibleLabels(User user)
user - the user
public List getPersonalLabels(User user)
user - the user
public List getGlobalLabels(User user)
user - the user
public List getLabelsForDisplay(User user)
user - the user
public LabelUtil getLabelUtil()
public String getVersionComment()
public void setVersionComment(String versionComment)
public boolean isVersionCommentAvailable()
public UserAccessor getUserAccessor()
public void setUserAccessor(UserAccessor userAccessor)
public Object clone()
throws CloneNotSupportedException
clone in class EntityObjectCloneNotSupportedExceptionpublic String getRenderedVersionComment()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||