public class DefaultIssueEventManager extends Object implements IssueEventManager
IssueEventManager
.Constructor and Description |
---|
DefaultIssueEventManager(IssueEventParamsTransformer paramsTransformer,
com.atlassian.event.api.EventPublisher eventPublisher,
TxnAwareEventFactory txnAwareEventFactory) |
Modifier and Type | Method and Description |
---|---|
void |
dispatchEvent(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.
|
void |
dispatchEvent(Long eventTypeId,
Issue issue,
ApplicationUser remoteUser,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changelog)
Dispatch event of given type.
|
void |
dispatchEvent(Long eventTypeId,
Issue issue,
ApplicationUser remoteUser,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changelog,
boolean sendMail)
Dispatch event of given type.
|
void |
dispatchEvent(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.
|
void |
dispatchEvent(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.
|
void |
dispatchEvent(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.
|
void |
dispatchEvent(Long eventTypeId,
Issue issue,
ApplicationUser remoteUser,
org.ofbiz.core.entity.GenericValue changelog,
boolean sendMail,
boolean subtasksUpdated)
Dispatch event of given type.
|
void |
dispatchEvent(Long eventTypeId,
Issue issue,
Map<String,Object> params,
ApplicationUser remoteUser,
boolean sendMail)
Dispatch event of given type with custom parameters.
|
void |
dispatchEvent(Long eventTypeId,
Issue issue,
Map params,
ApplicationUser remoteUser)
Dispatch event of given type with custom parameters.
|
void |
dispatchIssueEventBundle(IssueEventBundle issueEventBundle,
boolean shouldAlsoDispatchOnCommit)
Dispatches a bundle of issue events.
|
void |
dispatchIssueEventBundleOnCommit(java.util.function.Supplier<OnCommitIssueEventBundle> onCommitIssueEventBundleSupplier)
Dispatches a bundle of issue events.
|
void |
dispatchIssueEventOnCommit(java.util.function.Supplier<OnCommitIssueEvent> onCommitIssueEventSupplier)
Dispatches an issue event that will be sent after any existing transaction has been commited.
|
void |
dispatchRedundantEvent(Long eventTypeId,
Issue issue,
ApplicationUser remoteUser,
Comment comment,
Worklog worklog,
org.ofbiz.core.entity.GenericValue changelog)
Dispatch a redundant event of given type.
|
void |
dispatchRedundantEvent(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.
|
void |
dispatchRedundantEvent(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.
|
void |
dispatchRedundantEvent(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.
|
void |
dispatchRedundantEvent(Long eventTypeId,
Issue issue,
ApplicationUser remoteUser,
org.ofbiz.core.entity.GenericValue changelog,
boolean sendMail,
boolean subtasksUpdated)
Dispatch a redundant event of given type.
|
void |
dispatchRedundantEvent(Long eventTypeId,
Issue issue,
Map<String,Object> params,
ApplicationUser remoteUser,
boolean sendMail)
Dispatch a redundant event of given type with custom parameters.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispatchEvent
public DefaultIssueEventManager(IssueEventParamsTransformer paramsTransformer, com.atlassian.event.api.EventPublisher eventPublisher, TxnAwareEventFactory txnAwareEventFactory)
public void dispatchEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, boolean sendMail)
IssueEventManager
Since v7.4.0 this will also dispatch an OnCommitIssueEvent
with the created IssueEvent
.
dispatchEvent
in interface IssueEventManager
eventTypeId
- type of eventissue
- affected issueremoteUser
- user initiating the eventsendMail
- whether or not a mail notification should be sentpublic void dispatchEvent(Long eventTypeId, Issue issue, Map<String,Object> params, ApplicationUser remoteUser, boolean sendMail)
IssueEventManager
Since v7.4.0 this will also dispatch an OnCommitIssueEvent
with the created IssueEvent
.
dispatchEvent
in interface IssueEventManager
eventTypeId
- type of eventissue
- affected issueparams
- custom event parametersremoteUser
- user initiating the eventsendMail
- whether or not a mail notification should be sentpublic void dispatchRedundantEvent(Long eventTypeId, Issue issue, Map<String,Object> params, ApplicationUser remoteUser, boolean sendMail)
IssueEventManager
Since v7.4.0 this will also dispatch an OnCommitIssueEvent
with the created IssueEvent
.
dispatchRedundantEvent
in interface IssueEventManager
eventTypeId
- type of eventissue
- affected issueparams
- custom event parametersremoteUser
- user initiating the eventsendMail
- whether or not a mail notification should be sentpublic void dispatchEvent(Long eventTypeId, Issue issue, Map params, ApplicationUser remoteUser)
IssueEventManager
Since v7.4.0 this will also dispatch an OnCommitIssueEvent
with the created IssueEvent
.
dispatchEvent
in interface IssueEventManager
eventTypeId
- type of eventissue
- affected issueparams
- custom event parametersremoteUser
- user initiating the eventpublic void dispatchEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, Comment comment, Worklog worklog, org.ofbiz.core.entity.GenericValue changelog)
IssueEventManager
Since v7.4.0 this will also dispatch an OnCommitIssueEvent
with the created IssueEvent
.
dispatchEvent
in interface IssueEventManager
eventTypeId
- type of eventissue
- affected issueremoteUser
- remoteUser user initiating the eventcomment
- comment for this eventworklog
- worklog for this eventchangelog
- An attached changeGroup for this eventpublic void dispatchRedundantEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, Comment comment, Worklog worklog, org.ofbiz.core.entity.GenericValue changelog)
IssueEventManager
Since v7.4.0 this will also dispatch an OnCommitIssueEvent
with the created IssueEvent
.
dispatchRedundantEvent
in interface IssueEventManager
eventTypeId
- type of eventissue
- affected issueremoteUser
- remoteUser user initiating the eventcomment
- comment for this eventworklog
- worklog for this eventchangelog
- An attached changeGroup for this eventpublic void dispatchEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, Comment comment, Worklog worklog, org.ofbiz.core.entity.GenericValue changelog, boolean sendMail)
IssueEventManager
Since v7.4.0 this will also dispatch an OnCommitIssueEvent
with the created IssueEvent
.
dispatchEvent
in interface IssueEventManager
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 sentpublic void dispatchEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, Comment comment, Worklog worklog, org.ofbiz.core.entity.GenericValue changelog, Map params)
IssueEventManager
Since v7.4.0 this will also dispatch an OnCommitIssueEvent
with the created IssueEvent
.
dispatchEvent
in interface IssueEventManager
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 parameterspublic void dispatchRedundantEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, Comment comment, Worklog worklog, org.ofbiz.core.entity.GenericValue changelog, Map params)
IssueEventManager
Since v7.4.0 this will also dispatch an OnCommitIssueEvent
with the created IssueEvent
.
dispatchRedundantEvent
in interface IssueEventManager
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 parameterspublic void dispatchEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, Comment comment, Worklog worklog, org.ofbiz.core.entity.GenericValue changelog, Map params, boolean sendMail)
IssueEventManager
Since v7.4.0 this will also dispatch an OnCommitIssueEvent
with the created IssueEvent
.
dispatchEvent
in interface IssueEventManager
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 sentpublic void dispatchRedundantEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, Comment comment, Worklog worklog, org.ofbiz.core.entity.GenericValue changelog, Map params, boolean sendMail)
IssueEventManager
Since v7.4.0 this will also dispatch an OnCommitIssueEvent
with the created IssueEvent
.
dispatchRedundantEvent
in interface IssueEventManager
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 sentpublic void dispatchEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, org.ofbiz.core.entity.GenericValue changelog, boolean sendMail, boolean subtasksUpdated)
IssueEventManager
Since v7.4.0 this will also dispatch an OnCommitIssueEvent
with the created IssueEvent
.
dispatchEvent
in interface IssueEventManager
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.public void dispatchRedundantEvent(Long eventTypeId, Issue issue, ApplicationUser remoteUser, org.ofbiz.core.entity.GenericValue changelog, boolean sendMail, boolean subtasksUpdated)
IssueEventManager
Since v7.4.0 this will also dispatch an OnCommitIssueEvent
with the created IssueEvent
.
dispatchRedundantEvent
in interface IssueEventManager
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.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)
IssueEventManager
Since v7.4.0 this will also dispatch an OnCommitIssueEvent
with the created IssueEvent
.
dispatchEvent
in interface IssueEventManager
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.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)
IssueEventManager
dispatchRedundantEvent
in interface IssueEventManager
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.public void dispatchIssueEventBundle(IssueEventBundle issueEventBundle, boolean shouldAlsoDispatchOnCommit)
IssueEventManager
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.
dispatchIssueEventBundle
in interface IssueEventManager
issueEventBundle
- The bundle with all the issue events.shouldAlsoDispatchOnCommit
- If true will also invoke IssueEventManager.dispatchIssueEventBundleOnCommit(Supplier)
IssueEventBundle
,
OnCommitIssueEventBundle
,
JiraIssueEvent
,
OnCommitJiraIssueEvent
public void dispatchIssueEventBundleOnCommit(java.util.function.Supplier<OnCommitIssueEventBundle> onCommitIssueEventBundleSupplier)
IssueEventManager
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
.
dispatchIssueEventBundleOnCommit
in interface IssueEventManager
onCommitIssueEventBundleSupplier
- The supplier to build the bundle on commit with all the issue events.IssueEventBundle
,
OnCommitIssueEventBundle
public void dispatchIssueEventOnCommit(java.util.function.Supplier<OnCommitIssueEvent> onCommitIssueEventSupplier)
IssueEventManager
dispatchIssueEventOnCommit
in interface IssueEventManager
onCommitIssueEventSupplier
- The supplier to build the event on commit.IssueEvent
,
OnCommitIssueEvent
Copyright © 2002-2017 Atlassian. All Rights Reserved.