com.atlassian.greenhopper.service.issue.callback
Class JiraFieldStatisticsCallback

java.lang.Object
  extended by com.atlassian.greenhopper.service.issue.callback.AbstractCompoundDataCallback
      extended by com.atlassian.greenhopper.service.issue.callback.AbstractColumnStatisticsCallback
          extended by com.atlassian.greenhopper.service.issue.callback.JiraFieldStatisticsCallback
All Implemented Interfaces:
IssueDataCallback, RapidIssueEntryCallbackComponent

public class JiraFieldStatisticsCallback
extends AbstractColumnStatisticsCallback

If and when fields are supported as a column constraint, this will be used to calculate the value of each document by looking up the field's indexed value.

See Also:
ColumnStatisticsCallbackFactory

Constructor Summary
JiraFieldStatisticsCallback(java.util.Map<java.lang.String,Column> columnsByStatusId, StatisticsFieldConfig statisticsField)
           
 
Method Summary
protected  java.lang.Double getStatisticsValue(java.lang.Long issueId, java.lang.String issueKey, IssueFieldValueProvider data)
          Compute the statistics value for this column constraint based on the document data.
 
Methods inherited from class com.atlassian.greenhopper.service.issue.callback.AbstractColumnStatisticsCallback
fieldData, getFields, getStatisticsValuesByColumn, processFieldData
 
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

JiraFieldStatisticsCallback

public JiraFieldStatisticsCallback(java.util.Map<java.lang.String,Column> columnsByStatusId,
                                   StatisticsFieldConfig statisticsField)
Method Detail

getStatisticsValue

@Nonnull
protected java.lang.Double getStatisticsValue(java.lang.Long issueId,
                                                      java.lang.String issueKey,
                                                      IssueFieldValueProvider data)
Description copied from class: AbstractColumnStatisticsCallback
Compute the statistics value for this column constraint based on the document data.

Specified by:
getStatisticsValue in class AbstractColumnStatisticsCallback
Parameters:
issueId - issue ID
issueKey - issue Key
data - all document data
Returns:
the value


Copyright © 2007-2013 Atlassian. All Rights Reserved.