com.atlassian.greenhopper.service.rapid
Class ParentSwimlanesDataCallback

java.lang.Object
  extended by com.atlassian.greenhopper.service.issue.callback.AbstractCompoundDataCallback
      extended by com.atlassian.greenhopper.service.rapid.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, java.util.Map<java.lang.String,java.lang.String> data)
          Gathers information about each issue
 java.util.Set<java.lang.String> getFields()
          see DocumentConstants for possible values.
 PoolService.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,
                         java.util.Map<java.lang.String,java.lang.String> 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 PoolService.ParentSwimlanesData getParentSwimlanesData()
Calculates the ParentSwimlanesData for a given set of parentIds.



Copyright © 2007-2012 Atlassian. All Rights Reserved.