Class IssueStatusHistoryServiceImpl

java.lang.Object
com.atlassian.greenhopper.service.charts.IssueStatusHistoryServiceImpl
All Implemented Interfaces:
IssueStatusHistoryService

public class IssueStatusHistoryServiceImpl extends Object implements 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 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 interface IssueStatusHistoryService
      Parameters:
      user - : the user executing the query
      query - : which issues do we want to look at
      callback - : This will be informed of every status change found in the history.