Class DefaultIssueEventManager
- All Implemented Interfaces:
IssueEventManager
IssueEventManager.- Since:
- v4.4
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultIssueEventManager(IssueEventParamsTransformer paramsTransformer, com.atlassian.event.api.EventPublisher eventPublisher, TxnAwareEventFactory txnAwareEventFactory, SpanningOperationHolder spanningOperationHolder) -
Method Summary
Modifier and TypeMethodDescriptionvoiddispatchEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, boolean sendMail) Dispatch event of given type, configuring whether or not a mail notification should be sent (useful e.g.voiddispatchEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, Comment comment, Worklog worklog, org.ofbiz.core.entity.GenericValue changelog) Dispatch event of given type.voiddispatchEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, Comment comment, Worklog worklog, org.ofbiz.core.entity.GenericValue changelog, boolean sendMail) Dispatch event of given type.voiddispatchEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, Comment comment, Worklog worklog, org.ofbiz.core.entity.GenericValue changelog, Map params) Dispatch event of given type with custom parameters.voiddispatchEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, Comment comment, Worklog worklog, org.ofbiz.core.entity.GenericValue changelog, Map params, boolean sendMail) Dispatch event of given type with custom parameters.voiddispatchEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, Comment comment, Worklog worklog, org.ofbiz.core.entity.GenericValue changelog, Map params, boolean sendMail, boolean subtasksUpdated) Dispatch event of given type with custom parameters.voiddispatchEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, org.ofbiz.core.entity.GenericValue changelog, boolean sendMail, boolean subtasksUpdated) Dispatch event of given type.voiddispatchEvent(Long eventTypeId, Issue issue, Map<String, Object> params, ApplicationUser remoteUser, boolean sendMail) Dispatch event of given type with custom parameters.voiddispatchEvent(Long eventTypeId, Issue issue, Map params, ApplicationUser remoteUser) Dispatch event of given type with custom parameters.voiddispatchIssueEventBundle(IssueEventBundle issueEventBundle, boolean shouldAlsoDispatchOnCommit) Dispatches a bundle of issue events.voiddispatchIssueEventBundleOnCommit(Supplier<OnCommitIssueEventBundle> onCommitIssueEventBundleSupplier) Dispatches a bundle of issue events.voiddispatchIssueEventOnCommit(Supplier<OnCommitIssueEvent> onCommitIssueEventSupplier) Dispatches an issue event that will be sent after any existing transaction has been commited.voiddispatchRedundantEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, Comment comment, Worklog worklog, org.ofbiz.core.entity.GenericValue changelog) Dispatch a redundant event of given type.voiddispatchRedundantEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, Comment comment, Worklog worklog, org.ofbiz.core.entity.GenericValue changelog, Map params) Dispatch a redundant event of given type with custom parameters.voiddispatchRedundantEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, Comment comment, Worklog worklog, org.ofbiz.core.entity.GenericValue changelog, Map params, boolean sendMail) Dispatch a redundant event of given type with custom parameters.voiddispatchRedundantEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, Comment comment, Worklog worklog, org.ofbiz.core.entity.GenericValue changelog, Map params, boolean sendMail, boolean subtasksUpdated) Dispatch a redundant event of given type with custom parameters.voiddispatchRedundantEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, org.ofbiz.core.entity.GenericValue changelog, boolean sendMail, boolean subtasksUpdated) Dispatch a redundant event of given type.voiddispatchRedundantEvent(Long eventTypeId, Issue issue, Map<String, Object> params, ApplicationUser remoteUser, boolean sendMail) Dispatch a redundant event of given type with custom parameters.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.jira.event.issue.IssueEventManager
dispatchEvent
-
Constructor Details
-
DefaultIssueEventManager
public DefaultIssueEventManager(IssueEventParamsTransformer paramsTransformer, com.atlassian.event.api.EventPublisher eventPublisher, TxnAwareEventFactory txnAwareEventFactory, SpanningOperationHolder spanningOperationHolder)
-
-
Method Details
-
dispatchEvent
public void dispatchEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, boolean sendMail) Description copied from interface:IssueEventManagerDispatch 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
OnCommitIssueEventwith the createdIssueEvent.- Specified by:
dispatchEventin interfaceIssueEventManager- Parameters:
eventTypeId- type of eventissue- affected issueremoteUser- user initiating the eventsendMail- 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:IssueEventManagerDispatch event of given type with custom parameters.Since v7.4.0 this will also dispatch an
OnCommitIssueEventwith the createdIssueEvent.- Specified by:
dispatchEventin interfaceIssueEventManager- Parameters:
eventTypeId- type of eventissue- affected issueparams- custom event parametersremoteUser- user initiating the eventsendMail- 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:IssueEventManagerDispatch a redundant event of given type with custom parameters.Since v7.4.0 this will also dispatch an
OnCommitIssueEventwith the createdIssueEvent.- Specified by:
dispatchRedundantEventin interfaceIssueEventManager- Parameters:
eventTypeId- type of eventissue- affected issueparams- custom event parametersremoteUser- user initiating the eventsendMail- whether or not a mail notification should be sent
-
dispatchEvent
Description copied from interface:IssueEventManagerDispatch event of given type with custom parameters.Since v7.4.0 this will also dispatch an
OnCommitIssueEventwith the createdIssueEvent.- Specified by:
dispatchEventin interfaceIssueEventManager- Parameters:
eventTypeId- type of eventissue- affected issueparams- custom event parametersremoteUser- 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:IssueEventManagerDispatch event of given type.Since v7.4.0 this will also dispatch an
OnCommitIssueEventwith the createdIssueEvent.- Specified by:
dispatchEventin interfaceIssueEventManager- Parameters:
eventTypeId- type of eventissue- affected issueremoteUser- remoteUser user initiating the eventcomment- comment for this eventworklog- worklog for this eventchangelog- 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:IssueEventManagerDispatch a redundant event of given type.Since v7.4.0 this will also dispatch an
OnCommitIssueEventwith the createdIssueEvent.- Specified by:
dispatchRedundantEventin interfaceIssueEventManager- Parameters:
eventTypeId- type of eventissue- affected issueremoteUser- remoteUser user initiating the eventcomment- comment for this eventworklog- worklog for this eventchangelog- 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:IssueEventManagerDispatch event of given type.Since v7.4.0 this will also dispatch an
OnCommitIssueEventwith the createdIssueEvent.- Specified by:
dispatchEventin interfaceIssueEventManager- Parameters:
eventTypeId- type of eventissue- affected issueremoteUser- remoteUser user initiating the eventcomment- comment for this eventworklog- worklog for this eventchangelog- attached changeGroup for this eventsendMail- 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:IssueEventManagerDispatch event of given type with custom parameters.Since v7.4.0 this will also dispatch an
OnCommitIssueEventwith the createdIssueEvent.- Specified by:
dispatchEventin interfaceIssueEventManager- Parameters:
eventTypeId- type of eventissue- affected issueremoteUser- remoteUser user initiating the eventcomment- comment for this eventworklog- worklog for this eventchangelog- attached changeGroup for this eventparams- 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:IssueEventManagerDispatch a redundant event of given type with custom parameters.Since v7.4.0 this will also dispatch an
OnCommitIssueEventwith the createdIssueEvent.- Specified by:
dispatchRedundantEventin interfaceIssueEventManager- Parameters:
eventTypeId- type of eventissue- affected issueremoteUser- remoteUser user initiating the eventcomment- comment for this eventworklog- worklog for this eventchangelog- attached changeGroup for this eventparams- 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:IssueEventManagerDispatch event of given type with custom parameters.Since v7.4.0 this will also dispatch an
OnCommitIssueEventwith the createdIssueEvent.- Specified by:
dispatchEventin interfaceIssueEventManager- Parameters:
eventTypeId- type of eventissue- affected issueremoteUser- remoteUser user initiating the eventcomment- comment for this eventworklog- worklog for this eventchangelog- attached changeGroup for this eventparams- custom event parameterssendMail- 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:IssueEventManagerDispatch a redundant event of given type with custom parameters.Since v7.4.0 this will also dispatch an
OnCommitIssueEventwith the createdIssueEvent.- Specified by:
dispatchRedundantEventin interfaceIssueEventManager- Parameters:
eventTypeId- type of eventissue- affected issueremoteUser- remoteUser user initiating the eventcomment- comment for this eventworklog- worklog for this eventchangelog- attached changeGroup for this eventparams- custom event parameterssendMail- 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:IssueEventManagerDispatch event of given type.Since v7.4.0 this will also dispatch an
OnCommitIssueEventwith the createdIssueEvent.- Specified by:
dispatchEventin interfaceIssueEventManager- Parameters:
eventTypeId- type of eventissue- affected issueremoteUser- remoteUser user initiating the eventchangelog- attached changeGroup for this eventsendMail- whether or not a mail notification should be sentsubtasksUpdated- 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:IssueEventManagerDispatch a redundant event of given type.Since v7.4.0 this will also dispatch an
OnCommitIssueEventwith the createdIssueEvent.- Specified by:
dispatchRedundantEventin interfaceIssueEventManager- Parameters:
eventTypeId- type of eventissue- affected issueremoteUser- remoteUser user initiating the eventchangelog- attached changeGroup for this eventsendMail- whether or not a mail notification should be sentsubtasksUpdated- 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:IssueEventManagerDispatch event of given type with custom parameters.Since v7.4.0 this will also dispatch an
OnCommitIssueEventwith the createdIssueEvent.- Specified by:
dispatchEventin interfaceIssueEventManager- Parameters:
eventTypeId- type of eventissue- affected issueremoteUser- remoteUser user initiating the eventcomment- comment for this eventworklog- worklog for this eventchangelog- attached changeGroup for this eventparams- custom event parameterssendMail- whether or not a mail notification should be sentsubtasksUpdated- 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:IssueEventManagerDispatch a redundant event of given type with custom parameters.- Specified by:
dispatchRedundantEventin interfaceIssueEventManager- Parameters:
eventTypeId- type of eventissue- affected issueremoteUser- remoteUser user initiating the eventcomment- comment for this eventworklog- worklog for this eventchangelog- attached changeGroup for this eventparams- custom event parameterssendMail- whether or not a mail notification should be sentsubtasksUpdated- if subtask have been modified.
-
dispatchIssueEventBundle
public void dispatchIssueEventBundle(IssueEventBundle issueEventBundle, boolean shouldAlsoDispatchOnCommit) Description copied from interface:IssueEventManagerDispatches 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 thisIssueEventBundleinside aOnCommitIssueEventBundleafter the transaction has completed, which may be now if no transaction.In addition this will also send all
JiraIssueEventasOnCommitJiraIssueEventif parameter is true.- Specified by:
dispatchIssueEventBundlein interfaceIssueEventManager- Parameters:
issueEventBundle- The bundle with all the issue events.shouldAlsoDispatchOnCommit- If true will also invokeIssueEventManager.dispatchIssueEventBundleOnCommit(Supplier)- See Also:
-
dispatchIssueEventBundleOnCommit
public void dispatchIssueEventBundleOnCommit(Supplier<OnCommitIssueEventBundle> onCommitIssueEventBundleSupplier) Description copied from interface:IssueEventManagerDispatches 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
JiraIssueEventasOnCommitJiraIssueEvent.- Specified by:
dispatchIssueEventBundleOnCommitin interfaceIssueEventManager- Parameters:
onCommitIssueEventBundleSupplier- The supplier to build the bundle on commit with all the issue events.- See Also:
-
dispatchIssueEventOnCommit
Description copied from interface:IssueEventManagerDispatches 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:
dispatchIssueEventOnCommitin interfaceIssueEventManager- Parameters:
onCommitIssueEventSupplier- The supplier to build the event on commit.- See Also:
-