com.atlassian.greenhopper.web.rapid.sprint
Class StartSprintHelper.IssueKeysAndStatisticsCallback

java.lang.Object
  extended by com.atlassian.greenhopper.service.issue.callback.AbstractCompoundDataCallback
      extended by com.atlassian.greenhopper.web.rapid.sprint.StartSprintHelper.IssueKeysAndStatisticsCallback
All Implemented Interfaces:
IssueDataCallback
Enclosing class:
StartSprintHelper

public static class StartSprintHelper.IssueKeysAndStatisticsCallback
extends AbstractCompoundDataCallback

Gathers all issue keys as well as statistics field values up to (including) a lastIssue. Used to find all issues in sprint.


Constructor Summary
StartSprintHelper.IssueKeysAndStatisticsCallback(Sprint sprint, DocumentStatisticValueResolver documentStatisticValueResolver, EstimateStatisticService estimateStatisticService)
           
 
Method Summary
protected  void fieldData(java.lang.Long issueId, java.lang.String issueKey, IssueFieldValueProvider data)
          This callback is being called for every issue that matches the query.
 int getCountNotEstimatedIssues()
           
 java.util.Set<java.lang.String> getFields()
          see DocumentConstants for possible values.
 java.util.List<java.lang.String> getIssueKeys()
           
 java.util.List<java.lang.String> getIssuesNotEstimated()
           
 double getStatsValue()
           
 
Methods inherited from class com.atlassian.greenhopper.service.issue.callback.AbstractCompoundDataCallback
fieldData, issueComplete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StartSprintHelper.IssueKeysAndStatisticsCallback

public StartSprintHelper.IssueKeysAndStatisticsCallback(Sprint sprint,
                                                        DocumentStatisticValueResolver documentStatisticValueResolver,
                                                        EstimateStatisticService estimateStatisticService)
Method Detail

fieldData

protected void fieldData(java.lang.Long issueId,
                         java.lang.String issueKey,
                         IssueFieldValueProvider data)
Description copied from class: AbstractCompoundDataCallback
This callback is being called for every issue that matches the query. For memory efficiency, try to avoid buffering all results in memory but rather stream them to the target object, like a REST template.

This is only called once per issue.

Specified by:
fieldData in class AbstractCompoundDataCallback
data - : The data from the document that matches our selected fields.

getFields

public java.util.Set<java.lang.String> getFields()
Description copied from interface: IssueDataCallback
see DocumentConstants for possible values. These are the issue fields that we want to read from the Lucene index.


getStatsValue

public double getStatsValue()

getCountNotEstimatedIssues

public int getCountNotEstimatedIssues()

getIssuesNotEstimated

public java.util.List<java.lang.String> getIssuesNotEstimated()

getIssueKeys

public java.util.List<java.lang.String> getIssueKeys()


Copyright © 2007-2014 Atlassian. All Rights Reserved.