public interface

Comment

implements PropertySupport TaskAnchor
com.atlassian.bitbucket.comment.Comment

Class Overview

A comment on a pull request or commit.

Summary

Public Methods
@Nonnull Optional<CommentThreadDiffAnchor> getAnchor()
This is a short-hand for comment.getThread().getAnchor()
@Nonnull ApplicationUser getAuthor()
@Nonnull List<Comment> getComments()
@Nonnull Date getCreatedDate()
long getId()
@Nonnull Optional<CommentOperations> getPermittedOperations()
@Nonnull List<Task> getTasks()
@Nonnull @RequiredString String getText()
@Nonnull CommentThread getThread()
@Nonnull Date getUpdatedDate()
int getVersion()
[Expand]
Inherited Methods
From interface com.atlassian.bitbucket.property.PropertySupport
From interface com.atlassian.bitbucket.task.TaskAnchor

Public Methods

@Nonnull public Optional<CommentThreadDiffAnchor> getAnchor ()

This is a short-hand for comment.getThread().getAnchor()

Returns
  • the anchor associated with this comment's thread

@Nonnull public ApplicationUser getAuthor ()

Returns
  • the author of the comment

@Nonnull public List<Comment> getComments ()

Returns
  • the direct replies to the comment, or an empty list of there are none

@Nonnull public Date getCreatedDate ()

Returns
  • the date when the comment was originally created
See Also

public long getId ()

Returns
  • the comment's ID, which is globally unique

@Nonnull public Optional<CommentOperations> getPermittedOperations ()

Returns
  • the operations allowed by the current user. If not present then none are permitted

@Nonnull public List<Task> getTasks ()

Returns
  • the tasks attached to this comment, or an empty list if there are none

@Nonnull @RequiredString public String getText ()

Returns
  • the raw text of the comment (limited to 32k)

@Nonnull public CommentThread getThread ()

Returns
  • the thread this comment is a part of

@Nonnull public Date getUpdatedDate ()

Returns
  • the date of the last update
See Also

public int getVersion ()

Returns
  • the current version of the comment
See Also