com.atlassian.crucible.spi.data
Class GeneralCommentData

java.lang.Object
  extended by com.atlassian.crucible.spi.data.CommentDataImpl
      extended by com.atlassian.crucible.spi.data.GeneralCommentData
All Implemented Interfaces:
CommentData, java.io.Serializable

public class GeneralCommentData
extends CommentDataImpl
implements java.io.Serializable

Holds the attributes of a general comment on a Review

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.atlassian.crucible.spi.data.CommentData
CommentData.Status
 
Constructor Summary
GeneralCommentData()
           
GeneralCommentData(java.lang.String message, boolean draft, boolean deleted, boolean defectRaised, boolean defectApproved, CommentData.Status readStatus, UserData user, java.util.Date createDate, java.util.List<GeneralCommentData> replies, java.util.Map<java.lang.String,CustomFieldData> metrics, java.lang.String parentCommentPermId)
           
GeneralCommentData(java.lang.String message, boolean draft, boolean deleted, boolean defectRaised, boolean defectApproved, CommentData.Status readStatus, UserData user, java.util.Date createDate, java.lang.String permId, java.util.List<GeneralCommentData> replies, java.util.Map<java.lang.String,CustomFieldData> metrics, java.lang.String parentCommentPermId)
           
 
Method Summary
 PermId<GeneralCommentData> getPermaId()
          Get the comment's perma-id.
 PermId<GeneralCommentData> getPermId()
          Deprecated. Replaced by getPermaId().
 void setPermaId(PermId<GeneralCommentData> id)
          Set the comment's perma-id.
 void setPermId(PermId<GeneralCommentData> id)
          Deprecated. Replaced by setPermaId(com.atlassian.crucible.spi.PermId).
 
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
 

Constructor Detail

GeneralCommentData

public GeneralCommentData()

GeneralCommentData

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

GeneralCommentData

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

getPermId

@Deprecated
public PermId<GeneralCommentData> getPermId()
Deprecated. Replaced by getPermaId().


setPermId

@Deprecated
public void setPermId(PermId<GeneralCommentData> id)
Deprecated. Replaced by setPermaId(com.atlassian.crucible.spi.PermId).


getPermaId

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


setPermaId

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

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