public class

CommentEventPublisherImpl

extends Object
implements CommentEventPublisher
java.lang.Object
   ↳ com.atlassian.jira.issue.comments.CommentEventPublisherImpl

Summary

Public Constructors
CommentEventPublisherImpl(IssueEventManager issueEventManager, EventPublisher eventPublisher, IssueEventBundleFactory issueEventBundleFactory)
Public Methods
void publishCommentCreatedEvent(Comment comment, Map<StringObject> parameters)
Publishes events when a comment is updated.
void publishCommentDeletedEvent(Comment comment)
Publishes events when a comment is deleted.
void publishCommentUpdatedEvent(Comment comment, Map<StringObject> parameters)
Publishes events when a comment is created.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.comments.CommentEventPublisher

Public Constructors

public CommentEventPublisherImpl (IssueEventManager issueEventManager, EventPublisher eventPublisher, IssueEventBundleFactory issueEventBundleFactory)

Public Methods

public void publishCommentCreatedEvent (Comment comment, Map<StringObject> parameters)

Publishes events when a comment is updated. This method publishes CommentUpdatedEvent and IssueEvent with event type ISSUE_COMMENT_EDITED_ID.

Parameters
comment the comment which was updated.
parameters parameters of the updated comment.

public void publishCommentDeletedEvent (Comment comment)

Publishes events when a comment is deleted. Unlike publishCommentCreatedEvent(Comment, Map) and publishCommentUpdatedEvent(Comment, Map) this method only publishes CommentDeletedEvent. IssueEvent with ISSUE_COMMENT_DELETED_ID are published by IssueUpdater.

Parameters
comment the comment which was deleted.

public void publishCommentUpdatedEvent (Comment comment, Map<StringObject> parameters)

Publishes events when a comment is created. This method publishes CommentCreatedEvent and IssueEvent with event type ISSUE_COMMENTED_ID.

Parameters
comment the comment which was created.
parameters parameters of the newly created comment.