Interface IssueEventBundleFactory

All Known Implementing Classes:
IssueEventBundleFactoryImpl

public interface IssueEventBundleFactory
Factory to create IssueEventBundle objects.
  • Method Details

    • createIssueUpdateEventBundle

      IssueEventBundle createIssueUpdateEventBundle(Issue issue, org.ofbiz.core.entity.GenericValue changeGroup, IssueUpdateBean iub, ApplicationUser user)
      Creates an IssueEventBundle for scenarios where an issue has been updated.

      NB: When firing this event, also be sure to call TxnAwareEventFactory.issueChangedEventOnCommit(long, ApplicationUser, Comment, long, boolean) to ensure the corresponding IssueChangedEvent is also fired.

      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
    • createWorklogEventBundle

      IssueEventBundle createWorklogEventBundle(Issue issue, org.ofbiz.core.entity.GenericValue changeGroup, IssueUpdateBean iub, ApplicationUser applicationUser)
      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
      user - The user that made the issue update
      Returns:
      The IssueEventBundle with all the events to be dispatched due to the issue update
    • createIssueDeleteEventBundle

      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
    • createCommentAddedBundle

      IssueEventBundle createCommentAddedBundle(Issue issue, ApplicationUser user, Comment comment, Map<String,Object> 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
    • createCommentEditedBundle

      IssueEventBundle createCommentEditedBundle(Issue issue, ApplicationUser user, Comment comment, Map<String,Object> 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
    • createWorkflowEventBundle

      IssueEventBundle createWorkflowEventBundle(Long eventType, Issue issue, ApplicationUser user, Comment comment, org.ofbiz.core.entity.GenericValue changeGroup, Map<String,Object> 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
    • wrapInBundle

      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
    • createIssueArchivingRelatedEventBundle

      IssueEventBundle createIssueArchivingRelatedEventBundle(Issue issue, IssueUpdateBean iub, ApplicationUser user)
    • createCommentDeletedBundle

      IssueEventBundle createCommentDeletedBundle(Issue issue, ApplicationUser user, Map params)
      Creates an IssueEventBundle for scenarios where a comment is deleted from an issue.
      Parameters:
      issue - The issue for which the comment was deleted
      user - The user that deleted the comment
      params - parameters which must contain 'originalcomment' key with the deleted comment as a value
      Returns:
      The IssueEventBundle with all the events to be dispatched due to the comment being deleted