com.atlassian.greenhopper.web.rapid.work
Class ParentSwimlanesDataCallback

java.lang.Object
  extended by com.atlassian.greenhopper.service.issue.callback.AbstractCompoundDataCallback
      extended by com.atlassian.greenhopper.web.rapid.work.ParentSwimlanesDataCallback
All Implemented Interfaces:
IssueDataCallback

public class ParentSwimlanesDataCallback
extends AbstractCompoundDataCallback

Gathers information about parent swimlanes. This callback is expected to run over a query that already filters against all status ids of a board, thus all status ids that neither match the todo nor the done column must be in one of the middle columns.


Constructor Summary
ParentSwimlanesDataCallback(java.util.Collection<java.lang.String> todoColumnIds, java.util.Collection<java.lang.String> doneColumnIds, java.util.Set<java.lang.Long> possibleParentIds)
           
 
Method Summary
protected  void fieldData(java.lang.Long issueId, java.lang.String issueKey, IssueFieldValueProvider data)
          Gathers information about each issue
 java.util.Set<java.lang.String> getFields()
          see DocumentConstants for possible values.
 ParentSwimlanesData getParentSwimlanesData()
          Calculates the ParentSwimlanesData for a given set of parentIds.
 
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

ParentSwimlanesDataCallback

public ParentSwimlanesDataCallback(java.util.Collection<java.lang.String> todoColumnIds,
                                   java.util.Collection<java.lang.String> doneColumnIds,
                                   java.util.Set<java.lang.Long> possibleParentIds)
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

protected void fieldData(java.lang.Long issueId,
                         java.lang.String issueKey,
                         IssueFieldValueProvider data)
Gathers information about each issue

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

getParentSwimlanesData

public ParentSwimlanesData getParentSwimlanesData()
Calculates the ParentSwimlanesData for a given set of parentIds.



Copyright © 2007-2014 Atlassian. All Rights Reserved.