Class CommentEventPublisherImpl
java.lang.Object
com.atlassian.jira.issue.comments.CommentEventPublisherImpl
- All Implemented Interfaces:
CommentEventPublisher
-
Constructor Summary
ConstructorsConstructorDescriptionCommentEventPublisherImpl(IssueEventManager issueEventManager, com.atlassian.event.api.EventPublisher eventPublisher, IssueEventBundleFactory issueEventBundleFactory) -
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.
-
Constructor Details
-
CommentEventPublisherImpl
public CommentEventPublisherImpl(IssueEventManager issueEventManager, com.atlassian.event.api.EventPublisher eventPublisher, IssueEventBundleFactory issueEventBundleFactory)
-
-
Method Details
-
publishCommentUpdatedEvent
Description copied from interface:CommentEventPublisherPublishes events when a comment is created. This method publishesCommentCreatedEventandIssueEventwith event typeEventType.ISSUE_COMMENTED_ID.- Specified by:
publishCommentUpdatedEventin interfaceCommentEventPublisher- Parameters:
comment- the comment which was created.parameters- parameters of the newly created comment.
-
publishCommentCreatedEvent
Description copied from interface:CommentEventPublisherPublishes events when a comment is updated. This method publishesCommentUpdatedEventandIssueEventwith event typeEventType.ISSUE_COMMENT_EDITED_ID.- Specified by:
publishCommentCreatedEventin interfaceCommentEventPublisher- Parameters:
comment- the comment which was updated.parameters- parameters of the updated comment.
-
publishCommentDeletedEvent
Description copied from interface:CommentEventPublisherPublishes events when a comment is deleted. UnlikeCommentEventPublisher.publishCommentCreatedEvent(Comment, Map)andCommentEventPublisher.publishCommentUpdatedEvent(Comment, Map)this method only publishesCommentDeletedEvent.IssueEventwithEventType.ISSUE_COMMENT_DELETED_IDare published byIssueUpdater.- Specified by:
publishCommentDeletedEventin interfaceCommentEventPublisher- Parameters:
comment- the comment which was deleted.
-