com.atlassian.crucible.spi.data.CommentData |
Known Indirect Subclasses |
Common attributes of comments on items and general comments on reviews.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
CommentData.Status |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Get the comment's creation date.
| |||||||||||
Get the perma-id of the comment that this comment is a reply to.
| |||||||||||
Get the comment's perma-id.
| |||||||||||
Get the read status of the comment with respect to the user who requested
the comment.
| |||||||||||
Get the direct replies to the comment.
| |||||||||||
Get the comment's author.
| |||||||||||
Set the comment's creation date.
| |||||||||||
Set the parent comment of this comment.
| |||||||||||
Set the comment's perma-id.
| |||||||||||
Set the comment's read status with respect to the user making the request.
| |||||||||||
Set the replies for the comment.
| |||||||||||
Set the comment's author.
|
Get the perma-id of the comment that this comment is a reply to.
PermId
with a null
value for id
Get the read status of the comment with respect to the user who requested the comment.
Get the direct replies to the comment. To get nested replies, get the replies of the replies returned by this method.
Set the comment's creation 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.
Set the parent comment of this comment.
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 comment |
---|
Set the comment's perma-id.
This field should not be set by client code. Perma-ids are allocated when a comment is created.
Set the comment's read status with respect to the user making the request.
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
.
Set the replies for the comment.
When creating or updating a comment, it is illegal to set the replies for that comment. You should create or update each comment individually.
Set the comment's author.
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.