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)
CommentEventPublisherCommentCreatedEvent
and IssueEvent with event type EventType.ISSUE_COMMENTED_ID.publishCommentUpdatedEvent in interface CommentEventPublishercomment - the comment which was created.parameters - parameters of the newly created comment.public void publishCommentCreatedEvent(Comment comment, Map<String,Object> parameters)
CommentEventPublisherCommentUpdatedEvent
and IssueEvent with event type EventType.ISSUE_COMMENT_EDITED_ID.publishCommentCreatedEvent in interface CommentEventPublishercomment - the comment which was updated.parameters - parameters of the updated comment.public void publishCommentDeletedEvent(Comment comment)
CommentEventPublisherCommentEventPublisher.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 CommentEventPublishercomment - the comment which was deleted.Copyright © 2002-2024 Atlassian. All Rights Reserved.