com.atlassian.greenhopper.service.statistics
Class BacklogStatsCollectorProvider

java.lang.Object
  extended by com.atlassian.greenhopper.service.statistics.BacklogStatsCollectorProvider
All Implemented Interfaces:
StatsCollectorProvider

@Service(value="gh-backlogStatsCollector")
public class BacklogStatsCollectorProvider
extends java.lang.Object
implements StatsCollectorProvider


Field Summary
static java.lang.String SERVICE
          Service identifier to be used for dependency injection.
 
Constructor Summary
BacklogStatsCollectorProvider()
           
 
Method Summary
 void addSpecificQuery(com.atlassian.jira.jql.builder.JqlQueryBuilder queryBuilder, java.util.Collection<java.lang.String> ids)
          Add the type specific query part - this should translate the passed in ids in an or query that returns all issues to be counted.
 org.apache.lucene.search.HitCollector getCollector(com.opensymphony.user.User user, XProject xproject, ViewDefinition view, org.apache.lucene.search.Searchable searcher)
          Get a collector to collect stats into
 java.util.Map<java.lang.String,Summary> getSummaries(com.opensymphony.user.User user, XProject xproject, Context2 context, ViewDefinition view, java.util.Collection<java.lang.String> ids, org.apache.lucene.search.HitCollector collector)
          Get the summaries for all ids, passing in the processed collectors.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVICE

public static final java.lang.String SERVICE
Service identifier to be used for dependency injection.

See Also:
Constant Field Values
Constructor Detail

BacklogStatsCollectorProvider

public BacklogStatsCollectorProvider()
Method Detail

addSpecificQuery

public void addSpecificQuery(com.atlassian.jira.jql.builder.JqlQueryBuilder queryBuilder,
                             java.util.Collection<java.lang.String> ids)
Description copied from interface: StatsCollectorProvider
Add the type specific query part - this should translate the passed in ids in an or query that returns all issues to be counted.

Specified by:
addSpecificQuery in interface StatsCollectorProvider

getCollector

public org.apache.lucene.search.HitCollector getCollector(com.opensymphony.user.User user,
                                                          XProject xproject,
                                                          ViewDefinition view,
                                                          org.apache.lucene.search.Searchable searcher)
Description copied from interface: StatsCollectorProvider
Get a collector to collect stats into

Specified by:
getCollector in interface StatsCollectorProvider

getSummaries

public java.util.Map<java.lang.String,Summary> getSummaries(com.opensymphony.user.User user,
                                                            XProject xproject,
                                                            Context2 context,
                                                            ViewDefinition view,
                                                            java.util.Collection<java.lang.String> ids,
                                                            org.apache.lucene.search.HitCollector collector)
Description copied from interface: StatsCollectorProvider
Get the summaries for all ids, passing in the processed collectors. This gives the StatsCollector the chance to perform post-processing on the gathered data (if necessary)

Specified by:
getSummaries in interface StatsCollectorProvider


Copyright © 2007-2011 Atlassian. All Rights Reserved.