|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CommentData
Common attributes of comments on items and general comments on reviews.
Nested Class Summary | |
---|---|
static class |
CommentData.Status
|
Method Summary | |
---|---|
java.util.Date |
getCreateDate()
Get the comment's creation date. |
java.lang.String |
getMessage()
|
java.util.Map<java.lang.String,CustomFieldData> |
getMetrics()
|
PermId<CommentData> |
getParentCommentId()
Get the perma-id of the comment that this comment is a reply to. |
java.lang.String |
getPermaIdAsString()
Get the comment's perma-id. |
CommentData.Status |
getReadStatus()
Get the read status of the comment with respect to the user who requested the comment. |
java.util.List<GeneralCommentData> |
getReplies()
Get the direct replies to the comment. |
UserData |
getUser()
Get the comment's author. |
boolean |
isDefectApproved()
|
boolean |
isDefectRaised()
|
boolean |
isDeleted()
|
boolean |
isDraft()
|
void |
setCreateDate(java.util.Date date)
Set the comment's creation date. |
void |
setDefectApproved(boolean defectApproved)
|
void |
setDefectRaised(boolean defectRaised)
|
void |
setDeleted(boolean deleted)
|
void |
setDraft(boolean draft)
|
void |
setMessage(java.lang.String message)
|
void |
setMetrics(java.util.Map<java.lang.String,CustomFieldData> metrics)
|
void |
setParentCommentId(PermId<CommentData> parentId)
Set the parent comment of this comment. |
void |
setPermaIdAsString(java.lang.String permaId)
Set the comment's perma-id. |
void |
setReadStatus(CommentData.Status status)
Set the comment's read status with respect to the user making the request. |
void |
setReplies(java.util.List<GeneralCommentData> replies)
Set the replies for the comment. |
void |
setUser(UserData user)
Set the comment's author. |
Method Detail |
---|
java.lang.String getPermaIdAsString()
void setPermaIdAsString(java.lang.String permaId)
This field should not be set by client code. Perma-ids are allocated when a comment is created.
java.lang.String getMessage()
void setMessage(java.lang.String message)
boolean isDraft()
void setDraft(boolean draft)
boolean isDeleted()
void setDeleted(boolean deleted)
boolean isDefectRaised()
void setDefectRaised(boolean defectRaised)
boolean isDefectApproved()
void setDefectApproved(boolean defectApproved)
CommentData.Status getReadStatus()
void setReadStatus(CommentData.Status status)
This field should not be set by client code. For the author of the
comment, the read status is always READ
, thus
it is set to this value upon creation. To update the read status for other users, see
markCommentAsRead
,
markCommentAsLeaveUnread
, and
markAllCommentsAsRead
.
UserData getUser()
void setUser(UserData user)
This field should not be set by client code. When creating or updating a comment, it is ignored: the user who requested the comment creation is set as its author.
java.util.Date getCreateDate()
void setCreateDate(java.util.Date date)
This field should not be set by client code. When creating or updating a comment, it is ignored: the date when the comment was created is set as its creation date.
java.util.List<GeneralCommentData> getReplies()
void setReplies(java.util.List<GeneralCommentData> replies)
When creating or updating a comment, it is illegal to set the replies for that comment. You should create or update each comment individually.
java.util.Map<java.lang.String,CustomFieldData> getMetrics()
void setMetrics(java.util.Map<java.lang.String,CustomFieldData> metrics)
PermId<CommentData> getParentCommentId()
PermId
with a null
value for id
void setParentCommentId(PermId<CommentData> parentId)
This field should not be set by client code. When creating or updating a comment, it is ignored: it is set (automatically) for replies only.
parentId
- the perma-id of the parent of this commentReviewService.addReply(com.atlassian.crucible.spi.PermId, GeneralCommentData)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |