Interface CommentRetriever

All Known Implementing Classes:
DefaultCommentRetriever

public interface CommentRetriever
Retrieves comments associated with an issue to be indexed
Since:
11.0
  • Method Details

    • retrieve

      List<Comment> retrieve(Issue issue)
      Retrieves comments for the given issue.
      Parameters:
      issue - the issue for which comments are to be retrieved
      Returns:
      a list of comments associated with the issue, sorted by creation date in descending order
    • retrieveById

      Optional<Comment> retrieveById(Long commentId)
      Retrieves a comment by its ID.
      Parameters:
      commentId - the ID of the comment to retrieve
      Returns:
      an Optional containing the comment if found, or empty if not found