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

java.lang.Object
  extended by com.atlassian.greenhopper.service.issue.callback.AbstractCompoundDataCallback
All Implemented Interfaces:
IssueDataCallback
Direct Known Subclasses:
AbstractColumnStatisticsCallback, CreateSprintHelper.IssueKeysAndStatisticsCallback, EpicStatisticCallback, IssueCountAndLastUpdatedCallback, ParentSwimlanesDataCallback, RapidIssueEntryCallback, StatisticFieldAggregationCallback

public abstract class AbstractCompoundDataCallback
extends java.lang.Object
implements IssueDataCallback

Abstract implementation that


Constructor Summary
AbstractCompoundDataCallback()
           
 
Method Summary
protected abstract  void fieldData(java.lang.Long issueId, java.lang.String issueKey, IssueFieldValueProvider data)
          This callback is being called for every issue that matches the query.
 void fieldData(java.lang.Long issueId, java.lang.String issueKey, java.lang.String fieldName, java.lang.String data)
          This callback is being called for every issue that matches the query.
 void issueComplete(java.lang.Long issueId, java.lang.String issueKey)
          Called when all fieldData was returned for a single issue.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.greenhopper.service.issue.callback.IssueDataCallback
getFields
 

Constructor Detail

AbstractCompoundDataCallback

public AbstractCompoundDataCallback()
Method Detail

fieldData

protected abstract void fieldData(java.lang.Long issueId,
                                  java.lang.String issueKey,
                                  IssueFieldValueProvider data)
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.

Parameters:
data - : The data from the document that matches our selected fields.
data - : The raw Lucene data for the given field. Can be null.

fieldData

public void fieldData(java.lang.Long issueId,
                      java.lang.String issueKey,
                      java.lang.String fieldName,
                      java.lang.String data)
Description copied from interface: IssueDataCallback
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.

Specified by:
fieldData in interface IssueDataCallback
fieldName - : The name of the field that this value belongs to. One of the fields specified in getFields(). See DocumentConstants for possible values.
data - : The raw Lucene data for the given field. Can be null.

issueComplete

public void issueComplete(java.lang.Long issueId,
                          java.lang.String issueKey)
Description copied from interface: IssueDataCallback
Called when all fieldData was returned for a single issue.

Specified by:
issueComplete in interface IssueDataCallback


Copyright © 2007-2013 Atlassian. All Rights Reserved.