com.atlassian.confluence.it
Class Comment

java.lang.Object
  extended by com.atlassian.confluence.it.AbstractContentEntity
      extended by com.atlassian.confluence.it.Comment
All Implemented Interfaces:
ContentEntity, LinkableContent, TitledContent, VersionedContent, ContentConvertible

public class Comment
extends AbstractContentEntity
implements LinkableContent


Field Summary
static Comment TEST
           
 
Fields inherited from class com.atlassian.confluence.it.AbstractContentEntity
content, id, lastModificationDate, lastModifier, version
 
Constructor Summary
Comment(AbstractPageEntity page, Attachment attachment, String content, long parentId)
           
Comment(AbstractPageEntity page, String content)
           
Comment(AbstractPageEntity page, String content, long parentId)
           
 
Method Summary
 Attachment getAttachment()
           
 long getCommentId()
           
 ContentType getContentType()
           
 String getEditUrl()
           
 AbstractPageEntity getPage()
           
 long getPageId()
           
 long getParentId()
           
 String getRemoveUrl()
           
 UrlBuilder getReplyUrl()
           
 Space getSpace()
           
 String getTitle()
           
 String getUrl()
           
 UrlBuilder getUrlBuilder()
           
 boolean isFileAnnotation()
           
 boolean shouldConvertToContent()
           
 
Methods inherited from class com.atlassian.confluence.it.AbstractContentEntity
getContent, getContentId, getContentTypeObject, getId, getIdAsString, getLastModificationDate, getLastModifier, getVersion, isMinorEdit, setContent, setId, setId, setLastModificationDate, setLastModifier, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEST

public static Comment TEST
Constructor Detail

Comment

public Comment(AbstractPageEntity page,
               String content)

Comment

public Comment(AbstractPageEntity page,
               String content,
               long parentId)

Comment

public Comment(AbstractPageEntity page,
               Attachment attachment,
               String content,
               long parentId)
Method Detail

getAttachment

public Attachment getAttachment()

isFileAnnotation

public boolean isFileAnnotation()

getPage

public AbstractPageEntity getPage()

getPageId

public long getPageId()

getCommentId

public long getCommentId()

getParentId

public long getParentId()

getTitle

public String getTitle()
Specified by:
getTitle in interface ContentEntity
Specified by:
getTitle in interface TitledContent
Returns:
the title of this entity

getUrl

public String getUrl()
Specified by:
getUrl in interface LinkableContent

getUrlBuilder

public UrlBuilder getUrlBuilder()
Specified by:
getUrlBuilder in interface LinkableContent

getEditUrl

public String getEditUrl()
Specified by:
getEditUrl in interface ContentEntity
Returns:
the url where this entity can be edited.

getRemoveUrl

public String getRemoveUrl()

getReplyUrl

public UrlBuilder getReplyUrl()

getSpace

public Space getSpace()
Specified by:
getSpace in interface ContentEntity
Returns:
the space this content belongs to.

getContentType

public ContentType getContentType()
Specified by:
getContentType in interface ContentEntity
Overrides:
getContentType in class AbstractContentEntity
Returns:
the ContentType of this entity

shouldConvertToContent

public boolean shouldConvertToContent()
Specified by:
shouldConvertToContent in interface ContentConvertible
Returns:
true if the implementer wants to be part of the core API (default value), false otherwise


Copyright © 2003–2015 Atlassian. All rights reserved.