public class

IssueEventBundleFactoryImpl

extends Object
implements IssueEventBundleFactory
java.lang.Object
   ↳ com.atlassian.jira.event.issue.IssueEventBundleFactoryImpl

Summary

Public Constructors
IssueEventBundleFactoryImpl(IssueEventParamsTransformer paramsTransformer, EventTypesForIssueChange eventsForIssueChange)
Public Methods
IssueEventBundle createCommentAddedBundle(Issue issue, ApplicationUser user, Comment comment, Map<StringObject> params)
Creates an IssueEventBundle for scenarios where a comment is added to an issue.
IssueEventBundle createCommentEditedBundle(Issue issue, ApplicationUser user, Comment comment, Map<StringObject> params)
Creates an IssueEventBundle for scenarios where a comment is edited.
IssueEventBundle createIssueDeleteEventBundle(Issue issue, DefaultIssueDeleteHelper.DeletedIssueEventData deletedIssueEventData, ApplicationUser user)
Creates an IssueEventBundle for scenarios where an issue is deleted.
IssueEventBundle createIssueUpdateEventBundle(Issue issue, GenericValue changeGroup, IssueUpdateBean iub, ApplicationUser user)
This method uses EventTypesForIssueChange to raise events during update.
IssueEventBundle createWorkflowEventBundle(Long eventType, Issue issue, ApplicationUser user, Comment comment, GenericValue changeGroup, Map<StringObject> params, boolean sendMail, String originalAssigneeId)
Creates an IssueEventBundle for scenarios where a workflow transition is executed.
IssueEventBundle createWorklogEventBundle(Issue issue, GenericValue changeGroup, IssueUpdateBean iub, ApplicationUser user)
Creates an IssueEventBundle for scenarios where the worklog of an issue has been updated.
IssueEventBundle wrapInBundle(IssueEvent issueEvent)
Creates a IssueEventBundle that contains only one event equivalent to the given IssueEvent.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.event.issue.IssueEventBundleFactory

Public Constructors

public IssueEventBundleFactoryImpl (IssueEventParamsTransformer paramsTransformer, EventTypesForIssueChange eventsForIssueChange)

Public Methods

public IssueEventBundle createCommentAddedBundle (Issue issue, ApplicationUser user, Comment comment, Map<StringObject> params)

Creates an IssueEventBundle for scenarios where a comment is added to an issue.

Parameters
issue The issue for which the comment was added
user The user that added the comment
comment The comment that was added
params Some extra parameters that can be passed to create the event.
Returns
  • The IssueEventBundle with all the events to be dispatched due to the new comment being added

public IssueEventBundle createCommentEditedBundle (Issue issue, ApplicationUser user, Comment comment, Map<StringObject> params)

Creates an IssueEventBundle for scenarios where a comment is edited.

Parameters
issue The issue for which the comment is edited.
user The user that edited the comment
comment The comment that was edited
params Some extra parameters that can be passed to create the event.
Returns
  • The IssueEventBundle with all the events to be dispatched due to the comment being edited

public IssueEventBundle createIssueDeleteEventBundle (Issue issue, DefaultIssueDeleteHelper.DeletedIssueEventData deletedIssueEventData, ApplicationUser user)

Creates an IssueEventBundle for scenarios where an issue is deleted.

Parameters
issue The deleted issue issue
deletedIssueEventData An object encapsulating information about the delete operation
user The user that deleted the issue
Returns
  • The IssueEventBundle with all the events to be dispatched due to the issue deletion

public IssueEventBundle createIssueUpdateEventBundle (Issue issue, GenericValue changeGroup, IssueUpdateBean iub, ApplicationUser user)

This method uses EventTypesForIssueChange to raise events during update.

Parameters
issue The updated issue
changeGroup The group of changes applied to the issue
iub The issue update bean containing all the information about the changes on the issue
user The user that made the issue update
Returns
  • The IssueEventBundle with all the events to be dispatched due to the issue update

public IssueEventBundle createWorkflowEventBundle (Long eventType, Issue issue, ApplicationUser user, Comment comment, GenericValue changeGroup, Map<StringObject> params, boolean sendMail, String originalAssigneeId)

Creates an IssueEventBundle for scenarios where a workflow transition is executed.

Parameters
eventType The type of the event
issue The issue that was transitioned
user The user that transitioned the issue
comment A comment that could have been added on the transition
changeGroup The group of changes applied to the issue
params Some extra parameters that can be passed to create the event.
sendMail A boolean indicating whether the IssueEventBundle can be sent by email
originalAssigneeId The identifier of the original assignee of the issue before the transition occurred
Returns
  • The IssueEventBundle with all the events to be dispatched due to the workflow transition

public IssueEventBundle createWorklogEventBundle (Issue issue, GenericValue changeGroup, IssueUpdateBean iub, ApplicationUser user)

Creates an IssueEventBundle for scenarios where the worklog of an issue has been updated.

Parameters
issue The updated issue
changeGroup The group of changes applied to the issue
iub The issue update bean containing all the information about the changes on the issue
Returns
  • The IssueEventBundle with all the events to be dispatched due to the issue update

public IssueEventBundle wrapInBundle (IssueEvent issueEvent)

Creates a IssueEventBundle that contains only one event equivalent to the given IssueEvent.

Parameters
issueEvent The given issue event to be wrapped on an IssueEventBundle
Returns
  • An IssueEventBundle wrapping the given IssueEvent