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 Details

    • getAnchor

      @Nonnull Optional<CommentThreadDiffAnchor> getAnchor()
      Returns:
      the anchor for comment threads created on a diff.
    • getCommentable

      @Nonnull Commentable getCommentable()
      Returns:
      the commentable on which this comment thread is anchored.
    • getCreatedDate

      @Nonnull Date getCreatedDate()
      Returns:
      the date on which this comment thread was created.
    • getId

      long getId()
      Returns:
      the comment thread's ID.
    • getResolvedDate

      @Nullable Date 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

      @Nullable ApplicationUser 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

      @Nonnull Comment getRootComment()
      Returns:
      the root comment in the thread.
    • getUpdatedDate

      @Nonnull Date getUpdatedDate()
      Returns:
      the date on which the latest comment was added to this thread.
    • isAnchored

      boolean isAnchored()
      Returns:
      true if the anchor is present, otherwise false
    • isResolved

      boolean isResolved()
      Returns:
      true if the thread is resolved, otherwise false
      Since:
      8.9