com.atlassian.greenhopper.service.charts
Class AbstractIssueHistoryStatusCallback

java.lang.Object
  extended by com.atlassian.greenhopper.global.AbstractLoggable
      extended by com.atlassian.greenhopper.service.charts.AbstractIssueHistoryStatusCallback
All Implemented Interfaces:
IssueStatusHistoryCallback
Direct Known Subclasses:
DaysInColumnCallback, IssueColumnChangeCollector, IssueCycleTimeCollector

public abstract class AbstractIssueHistoryStatusCallback
extends AbstractLoggable
implements IssueStatusHistoryCallback

No-op superclass for status history callbacks. Not every callback implementation is interested in implementing all callbacks (sounds weird, but makes sense), so they can just override whichever they need.

Author:
ahennecke

Field Summary
 
Fields inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logger
 
Constructor Summary
AbstractIssueHistoryStatusCallback()
           
 
Method Summary
 void afterStatus(com.atlassian.jira.issue.status.Status status)
          Called after the change history for the given status has been processed, and before the next status will be processed.
 void beforeStatus(com.atlassian.jira.issue.status.Status status)
          Called before the change history for the given status is processed
 void statusChangedFrom(java.lang.Long issueId, java.lang.String issueKey, org.joda.time.DateTime changeTime, com.atlassian.jira.issue.status.Status changedFromStatus)
          Called for a status change from a given status
 void statusChangedTo(java.lang.Long issueId, java.lang.String issueKey, org.joda.time.DateTime changeTime, com.atlassian.jira.issue.status.Status changedToStatus)
          Called for a status change to a given status
 
Methods inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logDebug, logError, logException, logInfo, logTrace, logWarn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.greenhopper.service.charts.IssueStatusHistoryCallback
getStatuses
 

Constructor Detail

AbstractIssueHistoryStatusCallback

public AbstractIssueHistoryStatusCallback()
Method Detail

beforeStatus

public void beforeStatus(com.atlassian.jira.issue.status.Status status)
Description copied from interface: IssueStatusHistoryCallback
Called before the change history for the given status is processed

Specified by:
beforeStatus in interface IssueStatusHistoryCallback

statusChangedFrom

public void statusChangedFrom(java.lang.Long issueId,
                              java.lang.String issueKey,
                              org.joda.time.DateTime changeTime,
                              com.atlassian.jira.issue.status.Status changedFromStatus)
Description copied from interface: IssueStatusHistoryCallback
Called for a status change from a given status

Specified by:
statusChangedFrom in interface IssueStatusHistoryCallback
changeTime - : time when the change was performed, in UTC

statusChangedTo

public void statusChangedTo(java.lang.Long issueId,
                            java.lang.String issueKey,
                            org.joda.time.DateTime changeTime,
                            com.atlassian.jira.issue.status.Status changedToStatus)
Description copied from interface: IssueStatusHistoryCallback
Called for a status change to a given status

Specified by:
statusChangedTo in interface IssueStatusHistoryCallback
changeTime - : time when the change was performed, in UTC
changedToStatus - : the status the issue has changed to

afterStatus

public void afterStatus(com.atlassian.jira.issue.status.Status status)
Description copied from interface: IssueStatusHistoryCallback
Called after the change history for the given status has been processed, and before the next status will be processed.

Specified by:
afterStatus in interface IssueStatusHistoryCallback


Copyright © 2007-2012 Atlassian. All Rights Reserved.