com.atlassian.greenhopper.customfield.epiclink
Class EpicLinkIssueEventListener

java.lang.Object
  extended by com.atlassian.greenhopper.global.AbstractLoggable
      extended by com.atlassian.greenhopper.service.issue.AbstractIssueEventListener
          extended by com.atlassian.greenhopper.customfield.epiclink.EpicLinkIssueEventListener

@Service
public class EpicLinkIssueEventListener
extends AbstractIssueEventListener

Listens to issue events and updates the epic links for a given issue when the issue type changes


Field Summary
 
Fields inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logger
 
Constructor Summary
EpicLinkIssueEventListener()
           
 
Method Summary
protected  void doOnIssueEvent(java.lang.Long typeId, com.atlassian.jira.issue.Issue issue, com.atlassian.jira.event.issue.IssueEvent event)
           
 void processIssueTypeChange(com.atlassian.crowd.embedded.api.User user, com.atlassian.jira.issue.Issue updatedIssue, com.atlassian.jira.issue.issuetype.IssueType oldIssueType, com.atlassian.jira.issue.issuetype.IssueType newIssueType, com.atlassian.jira.issue.Issue oldParent, com.atlassian.jira.issue.Issue newParent)
          Cleans up stale issue links that could occur as a result of issue type changes This method is called by the EpicLinkIssueEventListener whenever an issue is updated
 
Methods inherited from class com.atlassian.greenhopper.service.issue.AbstractIssueEventListener
onIssueEvent
 
Methods inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logDebug, logError, logException, logInfo, logTrace, logWarn, setInfoLogLevel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EpicLinkIssueEventListener

public EpicLinkIssueEventListener()
Method Detail

doOnIssueEvent

protected void doOnIssueEvent(java.lang.Long typeId,
                              com.atlassian.jira.issue.Issue issue,
                              com.atlassian.jira.event.issue.IssueEvent event)
Specified by:
doOnIssueEvent in class AbstractIssueEventListener
Parameters:
typeId - : see EventType

processIssueTypeChange

public void processIssueTypeChange(com.atlassian.crowd.embedded.api.User user,
                                   @Nonnull
                                   com.atlassian.jira.issue.Issue updatedIssue,
                                   com.atlassian.jira.issue.issuetype.IssueType oldIssueType,
                                   com.atlassian.jira.issue.issuetype.IssueType newIssueType,
                                   com.atlassian.jira.issue.Issue oldParent,
                                   com.atlassian.jira.issue.Issue newParent)
Cleans up stale issue links that could occur as a result of issue type changes This method is called by the EpicLinkIssueEventListener whenever an issue is updated



Copyright © 2007-2013 Atlassian. All Rights Reserved.