Package com.atlassian.bitbucket.comment
Interface CommentThread
public interface CommentThread
Represents a conversation started on a
commentable
. The comment thread knows about the
commentable commentable
, all the comments in the conversation (accessible through the
root comment
) and (optionally) where the thread is anchored
on a diff.- Since:
- 5.0
-
Method Summary
-
Method Details
-
getAnchor
- Returns:
- the anchor for comment threads created on a diff.
-
getCommentable
- Returns:
- the commentable on which this comment thread is anchored.
-
getCreatedDate
- Returns:
- the date on which this comment thread was created.
-
getId
long getId()- Returns:
- the comment thread's ID.
-
getResolvedDate
- Returns:
- the date that the comment thread was resolved, or null in two separate circumstances: - For resolved comment threads both created and resolved prior to 8.11; or - For unresolved comment threads.
- Since:
- 8.11
-
getResolver
- Returns:
- the user who resolved the comment thread, or null in two separate circumstances: - For resolved comment threads both created and resolved prior to 8.11; or - For unresolved comment threads.
- Since:
- 8.11
-
getRootComment
- Returns:
- the root comment in the thread.
-
getUpdatedDate
- Returns:
- the date on which the latest comment was added to this thread.
-
isAnchored
boolean isAnchored()- Returns:
true
if theanchor
is present, otherwisefalse
-
isResolved
boolean isResolved()- Returns:
true
if the thread is resolved, otherwisefalse
- Since:
- 8.9
-