com.atlassian.greenhopper.service.charts
Class AbstractIssueHistoryStatusCallback

java.lang.Object
  extended by com.atlassian.greenhopper.service.charts.AbstractIssueHistoryStatusCallback
All Implemented Interfaces:
ChangeHistoryCallback<com.atlassian.jira.issue.status.Status>, IssueStatusHistoryCallback
Direct Known Subclasses:
DaysInColumnCallback, IssueColumnChangeCollector, IssueCycleTimeCollector

public abstract class AbstractIssueHistoryStatusCallback
extends java.lang.Object
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
protected  LoggerWrapper log
           
 
Constructor Summary
AbstractIssueHistoryStatusCallback()
           
 
Method Summary
 void after(com.atlassian.jira.issue.status.Status status)
          Called after the change history for the given value has been processed, and before the next value will be processed.
 void before(com.atlassian.jira.issue.status.Status status)
          Called before the change history for the given value is processed
 void changedFrom(java.lang.Long issueId, java.lang.String issueKey, org.joda.time.DateTime changeTime, com.atlassian.jira.issue.status.Status changedFromStatus)
          Called for a change from a given previous value
 void changedTo(java.lang.Long issueId, java.lang.String issueKey, org.joda.time.DateTime changeTime, com.atlassian.jira.issue.status.Status changedToStatus)
          Called for a change to a given new value
 
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
 

Field Detail

log

protected final LoggerWrapper log
Constructor Detail

AbstractIssueHistoryStatusCallback

public AbstractIssueHistoryStatusCallback()
Method Detail

before

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

Specified by:
before in interface ChangeHistoryCallback<com.atlassian.jira.issue.status.Status>

changedFrom

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

Specified by:
changedFrom in interface ChangeHistoryCallback<com.atlassian.jira.issue.status.Status>
changeTime - : time when the change was performed, in UTC
changedFromStatus - : the old value the issue has changed from (e.g. old status or version ID)

changedTo

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

Specified by:
changedTo in interface ChangeHistoryCallback<com.atlassian.jira.issue.status.Status>
changeTime - : time when the change was performed, in UTC
changedToStatus - : the new value (e.g. Status or fix version ID) the issue has changed to

after

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

Specified by:
after in interface ChangeHistoryCallback<com.atlassian.jira.issue.status.Status>


Copyright © 2007-2014 Atlassian. All Rights Reserved.