com.atlassian.jira.event.issue
Class DefaultIssueEventManager

java.lang.Object
  extended by 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 Summary
DefaultIssueEventManager(ApplicationProperties applicationProperties, com.atlassian.event.api.EventPublisher eventPublisher)
           
 
Method Summary
 void dispatchEvent(Long eventTypeId, Issue issue, Map<String,Object> params, com.atlassian.crowd.embedded.api.User remoteUser, boolean sendMail)
          Dispatch event of given type with custom parameters.
 void dispatchEvent(Long eventTypeId, Issue issue, Map params, com.atlassian.crowd.embedded.api.User remoteUser)
          Dispatch event of given type with custom parameters.
 void dispatchEvent(Long eventTypeId, Issue issue, com.atlassian.crowd.embedded.api.User 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, com.atlassian.crowd.embedded.api.User remoteUser, Comment comment, Worklog worklog, org.ofbiz.core.entity.GenericValue changelog)
          Dispatch event of given type.
 void dispatchEvent(Long eventTypeId, Issue issue, com.atlassian.crowd.embedded.api.User remoteUser, Comment comment, Worklog worklog, org.ofbiz.core.entity.GenericValue changelog, boolean sendMail)
          Dispatch event of given type.
 void dispatchEvent(Long eventTypeId, Issue issue, com.atlassian.crowd.embedded.api.User 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, com.atlassian.crowd.embedded.api.User 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, com.atlassian.crowd.embedded.api.User 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, com.atlassian.crowd.embedded.api.User remoteUser, org.ofbiz.core.entity.GenericValue changelog, boolean sendMail, boolean subtasksUpdated)
          Dispatch event of given type.
protected  void fillInDefaultParams(Map<String,Object> params)
           
protected  void publishEvent(IssueEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultIssueEventManager

public DefaultIssueEventManager(ApplicationProperties applicationProperties,
                                com.atlassian.event.api.EventPublisher eventPublisher)
Method Detail

dispatchEvent

public void dispatchEvent(Long eventTypeId,
                          Issue issue,
                          com.atlassian.crowd.embedded.api.User 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).

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,
                          com.atlassian.crowd.embedded.api.User remoteUser,
                          boolean sendMail)
Description copied from interface: IssueEventManager
Dispatch event of given type with custom parameters.

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

dispatchEvent

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

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,
                          com.atlassian.crowd.embedded.api.User remoteUser,
                          Comment comment,
                          Worklog worklog,
                          org.ofbiz.core.entity.GenericValue changelog)
Description copied from interface: IssueEventManager
Dispatch event of given type.

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

dispatchEvent

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

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,
                          com.atlassian.crowd.embedded.api.User 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.

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

dispatchEvent

public void dispatchEvent(Long eventTypeId,
                          Issue issue,
                          com.atlassian.crowd.embedded.api.User 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.

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

dispatchEvent

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

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.

dispatchEvent

public void dispatchEvent(Long eventTypeId,
                          Issue issue,
                          com.atlassian.crowd.embedded.api.User 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.

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.

fillInDefaultParams

protected void fillInDefaultParams(Map<String,Object> params)

publishEvent

protected void publishEvent(IssueEvent event)


Copyright © 2002-2012 Atlassian. All Rights Reserved.