com.atlassian.greenhopper.service.charts
Interface IssueStatusHistoryCallback

All Known Implementing Classes:
AbstractIssueHistoryStatusCallback, DaysInColumnCallback, IssueColumnChangeCollector, IssueCycleTimeCollector

public interface IssueStatusHistoryCallback

Collector-style callback for gathering issue status change history information. When requesting a status history, implementations will be called for every change that matches the given input. The calls are not guaranteed to be in chronological order. They are, however, batched by status in the same order getStatuses() returns. This means, in practice, that all changes for one status are returned before changes for the next status in the collection returned by getStatuses().

Author:
ahennecke

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
 java.util.Collection<com.atlassian.jira.issue.status.Status> getStatuses()
           
 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
 

Method Detail

statusChangedTo

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

Parameters:
changeTime - : time when the change was performed, in UTC
changedToStatus - : the status the issue has changed to

statusChangedFrom

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

Parameters:
changeTime - : time when the change was performed, in UTC
changedToStatus - : the status the issue has changed from

beforeStatus

void beforeStatus(com.atlassian.jira.issue.status.Status status)
Called before the change history for the given status is processed


afterStatus

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.


getStatuses

java.util.Collection<com.atlassian.jira.issue.status.Status> getStatuses()
Returns:
The statuses to query for. Callbacks will be for each status in the collection, for all issues according to getQuery(), in the order of the collection.


Copyright © 2007-2012 Atlassian. All Rights Reserved.