public class CommentEventPublisherImpl extends Object implements CommentEventPublisher
Constructor and Description |
---|
CommentEventPublisherImpl(IssueEventManager issueEventManager,
com.atlassian.event.api.EventPublisher eventPublisher,
IssueEventBundleFactory issueEventBundleFactory) |
Modifier and Type | Method and Description |
---|---|
void |
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.
|
public CommentEventPublisherImpl(IssueEventManager issueEventManager, com.atlassian.event.api.EventPublisher eventPublisher, IssueEventBundleFactory issueEventBundleFactory)
public void publishCommentUpdatedEvent(Comment comment, Map<String,Object> parameters)
CommentEventPublisher
CommentCreatedEvent
and IssueEvent
with event type EventType.ISSUE_COMMENTED_ID
.publishCommentUpdatedEvent
in interface CommentEventPublisher
comment
- the comment which was created.parameters
- parameters of the newly created comment.public void publishCommentCreatedEvent(Comment comment, Map<String,Object> parameters)
CommentEventPublisher
CommentUpdatedEvent
and IssueEvent
with event type EventType.ISSUE_COMMENT_EDITED_ID
.publishCommentCreatedEvent
in interface CommentEventPublisher
comment
- the comment which was updated.parameters
- parameters of the updated comment.public void publishCommentDeletedEvent(Comment comment)
CommentEventPublisher
CommentEventPublisher.publishCommentCreatedEvent(Comment, Map)
and CommentEventPublisher.publishCommentUpdatedEvent(Comment, Map)
this method only publishes CommentDeletedEvent
.
IssueEvent
with EventType.ISSUE_COMMENT_DELETED_ID
are published by
IssueUpdater
.publishCommentDeletedEvent
in interface CommentEventPublisher
comment
- the comment which was deleted.Copyright © 2002-2022 Atlassian. All Rights Reserved.