|
||||||||||
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.ContentEntityObject com.atlassian.confluence.pages.Comment
public class Comment
Field Summary | |
---|---|
static String |
CONTENT_TYPE
|
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 | |
---|---|
Comment()
|
Method Summary | |
---|---|
void |
addChild(Comment child)
|
Object |
clone()
|
void |
convertToHistoricalVersion()
Remove all data from the object that does not need to be saved by historical versions. |
List<Comment> |
getChildren()
|
ContentEntityObject |
getContentEntityObject()
|
int |
getDepth()
|
Set<String> |
getDescendantAuthors()
|
int |
getDescendantsCount()
|
String |
getDisplayTitle()
Returns the display title. |
String |
getLinkWikiMarkup()
|
String |
getNameForComparison()
Since the ContentEntityObject falls back on ordering by creation date, comments should always end up being sorted in their order of posting, below the page they were created in. |
ContentEntityObject |
getOwner()
|
AbstractPage |
getPage()
Deprecated. since 4.0. Please use getOwner() instead. |
Comment |
getParent()
|
Space |
getSpace()
Deprecated. Since 3.3 Use getOwner() |
String |
getSpaceKey()
Deprecated. |
Date |
getThreadChangedDate()
|
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. |
String |
getUrlPath()
|
void |
removeChild(Comment child)
|
void |
reparentChildren(Comment newParent)
|
void |
setChildren(List<Comment> children)
|
void |
setOwner(ContentEntityObject owner)
|
void |
setPage(AbstractPage page)
Deprecated. Since 3.3 Use setOwner(com.atlassian.confluence.core.ContentEntityObject) |
void |
setParent(Comment parent)
|
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, getRealClass, 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 CONTENT_TYPE
Constructor Detail |
---|
public Comment()
Method Detail |
---|
public ContentEntityObject getContentEntityObject()
public ContentEntityObject getOwner()
public void setOwner(ContentEntityObject owner)
@Deprecated public AbstractPage getPage()
getOwner()
instead.
getOwner()
instead.
@Deprecated public void setPage(AbstractPage page)
setOwner(com.atlassian.confluence.core.ContentEntityObject)
@Deprecated public Space getSpace()
getOwner()
public String getDisplayTitle()
ContentEntityObject
getDisplayTitle
in interface Addressable
getDisplayTitle
in class ContentEntityObject
public String getUrlPath()
getUrlPath
in interface Addressable
getUrlPath
in class ContentEntityObject
public String getType()
ContentEntityObject
getType
in interface ContentTypeAware
getType
in class ContentEntityObject
public String getNameForComparison()
getNameForComparison
in class ContentEntityObject
@Deprecated public String getSpaceKey()
public Comment getParent()
public void setParent(Comment parent)
public List<Comment> getChildren()
public void setChildren(List<Comment> children)
public void addChild(Comment child)
public int getDescendantsCount()
public Set<String> getDescendantAuthors()
public int getDepth()
public Date getThreadChangedDate()
public void reparentChildren(Comment newParent)
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 ContentEntityObject
public void removeChild(Comment child)
public Object clone() throws CloneNotSupportedException
clone
in class ContentEntityObject
CloneNotSupportedException
public String getLinkWikiMarkup()
getLinkWikiMarkup
in interface HasLinkWikiMarkup
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |