com.atlassian.crucible.spi.data
Class VersionedCommentData

java.lang.Object
  extended by com.atlassian.crucible.spi.data.CommentDataImpl
      extended by com.atlassian.crucible.spi.data.VersionedCommentData
All Implemented Interfaces:
CommentData, java.io.Serializable
Direct Known Subclasses:
VersionedLineCommentData

public abstract class VersionedCommentData
extends CommentDataImpl
implements java.io.Serializable

An abstract base class for beans containing the attributes of comments

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.crucible.spi.data.CommentData
CommentData.Status
 
Field Summary
protected  PermId<ReviewItemData> reviewItemId
           
 
Constructor Summary
VersionedCommentData()
           
VersionedCommentData(PermId<ReviewItemData> reviewItemId, java.lang.String message, boolean draft, boolean defectApproved, CommentData.Status readStatus, UserData user, boolean deleted, java.lang.String permId, java.util.Date createDate, boolean defectRaised, java.util.List<GeneralCommentData> replies, java.util.Map<java.lang.String,CustomFieldData> metrics, java.lang.String parentCommentPermId)
           
 
Method Summary
 PermId<VersionedLineCommentData> getPermaId()
          Get the comment's perma-id.
 PermId<ReviewItemData> getReviewItemId()
           
 void setPermaId(PermId<VersionedLineCommentData> permaId)
          Set the comment's perma-id.
 void setReviewItemId(PermId<ReviewItemData> reviewItemId)
           
 
Methods inherited from class com.atlassian.crucible.spi.data.CommentDataImpl
getCreateDate, getMessage, getMetrics, getParentCommentId, getPermaIdAsString, getReadStatus, getReplies, getUser, isDefectApproved, isDefectRaised, isDeleted, isDraft, setCreateDate, setDefectApproved, setDefectRaised, setDeleted, setDraft, setMessage, setMetrics, setParentCommentId, setPermaIdAsString, setReadStatus, setReplies, setUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reviewItemId

protected PermId<ReviewItemData> reviewItemId
Constructor Detail

VersionedCommentData

public VersionedCommentData(PermId<ReviewItemData> reviewItemId,
                            java.lang.String message,
                            boolean draft,
                            boolean defectApproved,
                            CommentData.Status readStatus,
                            UserData user,
                            boolean deleted,
                            java.lang.String permId,
                            java.util.Date createDate,
                            boolean defectRaised,
                            java.util.List<GeneralCommentData> replies,
                            java.util.Map<java.lang.String,CustomFieldData> metrics,
                            java.lang.String parentCommentPermId)

VersionedCommentData

public VersionedCommentData()
Method Detail

getPermaId

public PermId<VersionedLineCommentData> getPermaId()
Get the comment's perma-id.


setPermaId

public void setPermaId(PermId<VersionedLineCommentData> permaId)
Set the comment's perma-id.

This field should not be set by client code. Perma-ids are allocated when a comment is created.


setReviewItemId

public void setReviewItemId(PermId<ReviewItemData> reviewItemId)

getReviewItemId

public PermId<ReviewItemData> getReviewItemId()