Class IssueStatusHistoryServiceImpl
java.lang.Object
com.atlassian.greenhopper.service.charts.IssueStatusHistoryServiceImpl
- All Implemented Interfaces:
IssueStatusHistoryService
Produces status history from the Lucene change history index. The low-level Lucene part of this is a candidate to be pushed to JIRA.
- Author:
- ahennecke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncollectStatusHistory
(com.atlassian.jira.user.ApplicationUser user, com.atlassian.query.Query query, IssueStatusHistoryCallback callback) Read the status history from the Lucene history index.
-
Constructor Details
-
IssueStatusHistoryServiceImpl
public IssueStatusHistoryServiceImpl()
-
-
Method Details
-
collectStatusHistory
public ServiceResult collectStatusHistory(com.atlassian.jira.user.ApplicationUser user, com.atlassian.query.Query query, IssueStatusHistoryCallback callback) Read the status history from the Lucene history index. The index itself is having a very shallow document part: Documents only contain change date, issue ID and issue key. This means we can't query the index directly and read all we want from the documents in one pass, but rather have to use multiple passes for each status to find the matching changes.The results are being fed back into the provided callback implementation.
- Specified by:
collectStatusHistory
in interfaceIssueStatusHistoryService
- Parameters:
user
- : the user executing the queryquery
- : which issues do we want to look atcallback
- : This will be informed of every status change found in the history.
-