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 TypeMethodDescriptionvoid
publishCommentCreatedEvent
(Comment comment, Map<String, Object> parameters) Publishes events when a comment is updated.void
publishCommentDeletedEvent
(Comment comment) Publishes events when a comment is deleted.void
publishCommentUpdatedEvent
(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:CommentEventPublisher
Publishes events when a comment is created. This method publishesCommentCreatedEvent
andIssueEvent
with event typeEventType.ISSUE_COMMENTED_ID
.- Specified by:
publishCommentUpdatedEvent
in interfaceCommentEventPublisher
- Parameters:
comment
- the comment which was created.parameters
- parameters of the newly created comment.
-
publishCommentCreatedEvent
Description copied from interface:CommentEventPublisher
Publishes events when a comment is updated. This method publishesCommentUpdatedEvent
andIssueEvent
with event typeEventType.ISSUE_COMMENT_EDITED_ID
.- Specified by:
publishCommentCreatedEvent
in interfaceCommentEventPublisher
- Parameters:
comment
- the comment which was updated.parameters
- parameters of the updated comment.
-
publishCommentDeletedEvent
Description copied from interface:CommentEventPublisher
Publishes events when a comment is deleted. UnlikeCommentEventPublisher.publishCommentCreatedEvent(Comment, Map)
andCommentEventPublisher.publishCommentUpdatedEvent(Comment, Map)
this method only publishesCommentDeletedEvent
.IssueEvent
withEventType.ISSUE_COMMENT_DELETED_ID
are published byIssueUpdater
.- Specified by:
publishCommentDeletedEvent
in interfaceCommentEventPublisher
- Parameters:
comment
- the comment which was deleted.
-