Class DefaultIssueEventManager

java.lang.Object
com.atlassian.jira.event.issue.DefaultIssueEventManager
All Implemented Interfaces:
IssueEventManager

public class DefaultIssueEventManager extends Object implements IssueEventManager
Default implementation of IssueEventManager.
Since:
v4.4
  • Constructor Details

  • Method Details

    • dispatchEvent

      public void dispatchEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, boolean sendMail)
      Description copied from interface: IssueEventManager
      Dispatch event of given type, configuring whether or not a mail notification should be sent (useful e.g. for bulk edit).

      Since v7.4.0 this will also dispatch an OnCommitIssueEvent with the created IssueEvent.

      Specified by:
      dispatchEvent in interface IssueEventManager
      Parameters:
      eventTypeId - type of event
      issue - affected issue
      remoteUser - user initiating the event
      sendMail - whether or not a mail notification should be sent
    • dispatchEvent

      public void dispatchEvent(Long eventTypeId, Issue issue, Map<String,Object> params, ApplicationUser remoteUser, boolean sendMail)
      Description copied from interface: IssueEventManager
      Dispatch event of given type with custom parameters.

      Since v7.4.0 this will also dispatch an OnCommitIssueEvent with the created IssueEvent.

      Specified by:
      dispatchEvent in interface IssueEventManager
      Parameters:
      eventTypeId - type of event
      issue - affected issue
      params - custom event parameters
      remoteUser - user initiating the event
      sendMail - whether or not a mail notification should be sent
    • dispatchRedundantEvent

      public void dispatchRedundantEvent(Long eventTypeId, Issue issue, Map<String,Object> params, ApplicationUser remoteUser, boolean sendMail)
      Description copied from interface: IssueEventManager
      Dispatch a redundant event of given type with custom parameters.

      Since v7.4.0 this will also dispatch an OnCommitIssueEvent with the created IssueEvent.

      Specified by:
      dispatchRedundantEvent in interface IssueEventManager
      Parameters:
      eventTypeId - type of event
      issue - affected issue
      params - custom event parameters
      remoteUser - user initiating the event
      sendMail - whether or not a mail notification should be sent
    • dispatchEvent

      public void dispatchEvent(Long eventTypeId, Issue issue, Map params, ApplicationUser remoteUser)
      Description copied from interface: IssueEventManager
      Dispatch event of given type with custom parameters.

      Since v7.4.0 this will also dispatch an OnCommitIssueEvent with the created IssueEvent.

      Specified by:
      dispatchEvent in interface IssueEventManager
      Parameters:
      eventTypeId - type of event
      issue - affected issue
      params - custom event parameters
      remoteUser - user initiating the event
    • dispatchEvent

      public void dispatchEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, Comment comment, Worklog worklog, org.ofbiz.core.entity.GenericValue changelog)
      Description copied from interface: IssueEventManager
      Dispatch event of given type.

      Since v7.4.0 this will also dispatch an OnCommitIssueEvent with the created IssueEvent.

      Specified by:
      dispatchEvent in interface IssueEventManager
      Parameters:
      eventTypeId - type of event
      issue - affected issue
      remoteUser - remoteUser user initiating the event
      comment - comment for this event
      worklog - worklog for this event
      changelog - An attached changeGroup for this event
    • dispatchRedundantEvent

      public void dispatchRedundantEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, Comment comment, Worklog worklog, org.ofbiz.core.entity.GenericValue changelog)
      Description copied from interface: IssueEventManager
      Dispatch a redundant event of given type.

      Since v7.4.0 this will also dispatch an OnCommitIssueEvent with the created IssueEvent.

      Specified by:
      dispatchRedundantEvent in interface IssueEventManager
      Parameters:
      eventTypeId - type of event
      issue - affected issue
      remoteUser - remoteUser user initiating the event
      comment - comment for this event
      worklog - worklog for this event
      changelog - An attached changeGroup for this event
    • dispatchEvent

      public void dispatchEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, Comment comment, Worklog worklog, org.ofbiz.core.entity.GenericValue changelog, boolean sendMail)
      Description copied from interface: IssueEventManager
      Dispatch event of given type.

      Since v7.4.0 this will also dispatch an OnCommitIssueEvent with the created IssueEvent.

      Specified by:
      dispatchEvent in interface IssueEventManager
      Parameters:
      eventTypeId - type of event
      issue - affected issue
      remoteUser - remoteUser user initiating the event
      comment - comment for this event
      worklog - worklog for this event
      changelog - attached changeGroup for this event
      sendMail - whether or not a mail notification should be sent
    • dispatchEvent

      public void dispatchEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, Comment comment, Worklog worklog, org.ofbiz.core.entity.GenericValue changelog, Map params)
      Description copied from interface: IssueEventManager
      Dispatch event of given type with custom parameters.

      Since v7.4.0 this will also dispatch an OnCommitIssueEvent with the created IssueEvent.

      Specified by:
      dispatchEvent in interface IssueEventManager
      Parameters:
      eventTypeId - type of event
      issue - affected issue
      remoteUser - remoteUser user initiating the event
      comment - comment for this event
      worklog - worklog for this event
      changelog - attached changeGroup for this event
      params - custom event parameters
    • dispatchRedundantEvent

      public void dispatchRedundantEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, Comment comment, Worklog worklog, org.ofbiz.core.entity.GenericValue changelog, Map params)
      Description copied from interface: IssueEventManager
      Dispatch a redundant event of given type with custom parameters.

      Since v7.4.0 this will also dispatch an OnCommitIssueEvent with the created IssueEvent.

      Specified by:
      dispatchRedundantEvent in interface IssueEventManager
      Parameters:
      eventTypeId - type of event
      issue - affected issue
      remoteUser - remoteUser user initiating the event
      comment - comment for this event
      worklog - worklog for this event
      changelog - attached changeGroup for this event
      params - custom event parameters
    • dispatchEvent

      public void dispatchEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, Comment comment, Worklog worklog, org.ofbiz.core.entity.GenericValue changelog, Map params, boolean sendMail)
      Description copied from interface: IssueEventManager
      Dispatch event of given type with custom parameters.

      Since v7.4.0 this will also dispatch an OnCommitIssueEvent with the created IssueEvent.

      Specified by:
      dispatchEvent in interface IssueEventManager
      Parameters:
      eventTypeId - type of event
      issue - affected issue
      remoteUser - remoteUser user initiating the event
      comment - comment for this event
      worklog - worklog for this event
      changelog - attached changeGroup for this event
      params - custom event parameters
      sendMail - whether or not a mail notification should be sent
    • dispatchRedundantEvent

      public void dispatchRedundantEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, Comment comment, Worklog worklog, org.ofbiz.core.entity.GenericValue changelog, Map params, boolean sendMail)
      Description copied from interface: IssueEventManager
      Dispatch a redundant event of given type with custom parameters.

      Since v7.4.0 this will also dispatch an OnCommitIssueEvent with the created IssueEvent.

      Specified by:
      dispatchRedundantEvent in interface IssueEventManager
      Parameters:
      eventTypeId - type of event
      issue - affected issue
      remoteUser - remoteUser user initiating the event
      comment - comment for this event
      worklog - worklog for this event
      changelog - attached changeGroup for this event
      params - custom event parameters
      sendMail - whether or not a mail notification should be sent
    • dispatchEvent

      public void dispatchEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, org.ofbiz.core.entity.GenericValue changelog, boolean sendMail, boolean subtasksUpdated)
      Description copied from interface: IssueEventManager
      Dispatch event of given type.

      Since v7.4.0 this will also dispatch an OnCommitIssueEvent with the created IssueEvent.

      Specified by:
      dispatchEvent in interface IssueEventManager
      Parameters:
      eventTypeId - type of event
      issue - affected issue
      remoteUser - remoteUser user initiating the event
      changelog - attached changeGroup for this event
      sendMail - whether or not a mail notification should be sent
      subtasksUpdated - if subtask have been modified.
    • dispatchRedundantEvent

      public void dispatchRedundantEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, org.ofbiz.core.entity.GenericValue changelog, boolean sendMail, boolean subtasksUpdated)
      Description copied from interface: IssueEventManager
      Dispatch a redundant event of given type.

      Since v7.4.0 this will also dispatch an OnCommitIssueEvent with the created IssueEvent.

      Specified by:
      dispatchRedundantEvent in interface IssueEventManager
      Parameters:
      eventTypeId - type of event
      issue - affected issue
      remoteUser - remoteUser user initiating the event
      changelog - attached changeGroup for this event
      sendMail - whether or not a mail notification should be sent
      subtasksUpdated - if subtask have been modified.
    • dispatchEvent

      public void dispatchEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, Comment comment, Worklog worklog, org.ofbiz.core.entity.GenericValue changelog, Map params, boolean sendMail, boolean subtasksUpdated)
      Description copied from interface: IssueEventManager
      Dispatch event of given type with custom parameters.

      Since v7.4.0 this will also dispatch an OnCommitIssueEvent with the created IssueEvent.

      Specified by:
      dispatchEvent in interface IssueEventManager
      Parameters:
      eventTypeId - type of event
      issue - affected issue
      remoteUser - remoteUser user initiating the event
      comment - comment for this event
      worklog - worklog for this event
      changelog - attached changeGroup for this event
      params - custom event parameters
      sendMail - whether or not a mail notification should be sent
      subtasksUpdated - if subtask have been modified.
    • dispatchRedundantEvent

      public void dispatchRedundantEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, Comment comment, Worklog worklog, org.ofbiz.core.entity.GenericValue changelog, Map params, boolean sendMail, boolean subtasksUpdated)
      Description copied from interface: IssueEventManager
      Dispatch a redundant event of given type with custom parameters.
      Specified by:
      dispatchRedundantEvent in interface IssueEventManager
      Parameters:
      eventTypeId - type of event
      issue - affected issue
      remoteUser - remoteUser user initiating the event
      comment - comment for this event
      worklog - worklog for this event
      changelog - attached changeGroup for this event
      params - custom event parameters
      sendMail - whether or not a mail notification should be sent
      subtasksUpdated - if subtask have been modified.
    • dispatchIssueEventBundle

      public void dispatchIssueEventBundle(IssueEventBundle issueEventBundle, boolean shouldAlsoDispatchOnCommit)
      Description copied from interface: IssueEventManager
      Dispatches a bundle of issue events.

      This method will dispatch one event for the bundle itself, and one per event contained in the bundle.

      If true is passed as the parameter, it will also invoke IssueEventManager.dispatchIssueEventBundleOnCommit(Supplier) and send this IssueEventBundle inside a OnCommitIssueEventBundle after the transaction has completed, which may be now if no transaction.

      In addition this will also send all JiraIssueEvent as OnCommitJiraIssueEvent if parameter is true.

      Specified by:
      dispatchIssueEventBundle in interface IssueEventManager
      Parameters:
      issueEventBundle - The bundle with all the issue events.
      shouldAlsoDispatchOnCommit - If true will also invoke IssueEventManager.dispatchIssueEventBundleOnCommit(Supplier)
      See Also:
    • dispatchIssueEventBundleOnCommit

      public void dispatchIssueEventBundleOnCommit(Supplier<OnCommitIssueEventBundle> onCommitIssueEventBundleSupplier)
      Description copied from interface: IssueEventManager
      Dispatches a bundle of issue events.

      This method will dispatch one event for the bundle itself, and one per event contained in the bundle.

      In addition this will also send all JiraIssueEvent as OnCommitJiraIssueEvent.

      Specified by:
      dispatchIssueEventBundleOnCommit in interface IssueEventManager
      Parameters:
      onCommitIssueEventBundleSupplier - The supplier to build the bundle on commit with all the issue events.
      See Also:
    • dispatchIssueEventOnCommit

      public void dispatchIssueEventOnCommit(Supplier<OnCommitIssueEvent> onCommitIssueEventSupplier)
      Description copied from interface: IssueEventManager
      Dispatches an issue event that will be sent after any existing transaction has been commited. If there is no transaction it will send immediately.
      Specified by:
      dispatchIssueEventOnCommit in interface IssueEventManager
      Parameters:
      onCommitIssueEventSupplier - The supplier to build the event on commit.
      See Also: