com.atlassian.greenhopper.web.rapid.chart
Class ChartDataHelper

java.lang.Object
  extended by com.atlassian.greenhopper.global.AbstractLoggable
      extended by com.atlassian.greenhopper.web.rapid.chart.ChartDataHelper

@Service
public class ChartDataHelper
extends AbstractLoggable


Nested Class Summary
protected static class ChartDataHelper.IssueKeyVisitingDataCallback
          issueKey collector for swimlane filtering
protected static class ChartDataHelper.SwimlaneFilter
          Filter to only work with issues included in the selected swimlanes
 
Field Summary
 
Fields inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logger
 
Constructor Summary
ChartDataHelper()
           
 
Method Summary
protected  ServiceOutcome<com.atlassian.query.Query> assembleQuery(com.atlassian.crowd.embedded.api.User user, RapidView rapidView, java.util.Set<java.lang.Long> quickfilterIds)
          Build up the JQL query that we're going to use for the chart.
protected  ServiceOutcome<ChartDataHelper.SwimlaneFilter> getSwimlaneFilter(com.atlassian.crowd.embedded.api.User user, com.atlassian.query.Query query, java.util.List<Swimlane> allSwimlanes, java.util.Set<java.lang.Long> swimlaneIds, I18n2 i18n)
          Compute the filter for the selected swimlanes.
 
Methods inherited from class com.atlassian.greenhopper.global.AbstractLoggable
logDebug, logError, logException, logInfo, logTrace, logWarn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChartDataHelper

public ChartDataHelper()
Method Detail

getSwimlaneFilter

@NotNull
protected ServiceOutcome<ChartDataHelper.SwimlaneFilter> getSwimlaneFilter(com.atlassian.crowd.embedded.api.User user,
                                                                                   com.atlassian.query.Query query,
                                                                                   java.util.List<Swimlane> allSwimlanes,
                                                                                   java.util.Set<java.lang.Long> swimlaneIds,
                                                                                   I18n2 i18n)
Compute the filter for the selected swimlanes. This is a positive filter, it'll include issue keys that are part of the chart.


assembleQuery

@NotNull
protected ServiceOutcome<com.atlassian.query.Query> assembleQuery(com.atlassian.crowd.embedded.api.User user,
                                                                          RapidView rapidView,
                                                                          java.util.Set<java.lang.Long> quickfilterIds)
Build up the JQL query that we're going to use for the chart. This can include quickfilters, which are going to be AND added to the base query. It must also include only the statuses which are mapped by the RapidView's columns.



Copyright © 2007-2012 Atlassian. All Rights Reserved.