Interface CommentEventPublisher
- All Known Implementing Classes:
CommentEventPublisherImpl
public interface CommentEventPublisher
Handles
CommentEvent publication.- Since:
- 7.1
-
Method Summary
Modifier and TypeMethodDescriptionvoidpublishCommentCreatedEvent(Comment comment, Map<String, Object> parameters) Publishes events when a comment is updated.voidpublishCommentDeletedEvent(Comment comment) Publishes events when a comment is deleted.voidpublishCommentUpdatedEvent(Comment comment, Map<String, Object> parameters) Publishes events when a comment is created.
-
Method Details
-
publishCommentUpdatedEvent
Publishes events when a comment is created. This method publishesCommentCreatedEventandIssueEventwith event typeEventType.ISSUE_COMMENTED_ID.- Parameters:
comment- the comment which was created.parameters- parameters of the newly created comment.
-
publishCommentCreatedEvent
Publishes events when a comment is updated. This method publishesCommentUpdatedEventandIssueEventwith event typeEventType.ISSUE_COMMENT_EDITED_ID.- Parameters:
comment- the comment which was updated.parameters- parameters of the updated comment.
-
publishCommentDeletedEvent
Publishes events when a comment is deleted. UnlikepublishCommentCreatedEvent(Comment, Map)andpublishCommentUpdatedEvent(Comment, Map)this method only publishesCommentDeletedEvent.IssueEventwithEventType.ISSUE_COMMENT_DELETED_IDare published byIssueUpdater.- Parameters:
comment- the comment which was deleted.
-