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

java.lang.Object
  extended by com.atlassian.greenhopper.service.issue.callback.AbstractIssueDataCallback
      extended by com.atlassian.greenhopper.service.issue.callback.StatusProgressCallback
All Implemented Interfaces:
IssueDataCallback

public class StatusProgressCallback
extends AbstractIssueDataCallback

Initialised with the mapping of ColumnProgress to their sets of Status objects, this callback inspects the status of each issue and assigns it to the appropriate ColumnProgress in a map.


Constructor Summary
StatusProgressCallback(ColumnService.ColumnProgressMap columnProgressMap)
           
 
Method Summary
 void fieldData(java.lang.Long issueId, java.lang.String issueKey, java.lang.String fieldName, java.lang.String statusId)
          This callback is being called for every issue that matches the query.
 java.util.Set<java.lang.String> getFields()
          see DocumentConstants for possible values.
 java.util.Map<java.lang.Long,ColumnProgress> getIssuesToColumnProgress()
           
 
Methods inherited from class com.atlassian.greenhopper.service.issue.callback.AbstractIssueDataCallback
issueComplete
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatusProgressCallback

public StatusProgressCallback(ColumnService.ColumnProgressMap columnProgressMap)
Method Detail

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.


fieldData

public void fieldData(java.lang.Long issueId,
                      java.lang.String issueKey,
                      java.lang.String fieldName,
                      java.lang.String statusId)
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.

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

getIssuesToColumnProgress

public java.util.Map<java.lang.Long,ColumnProgress> getIssuesToColumnProgress()
Returns:
a mapping of issue IDs to the ColumnProgress they are included in.


Copyright © 2007-2012 Atlassian. All Rights Reserved.