com.atlassian.greenhopper.service.statistics
Class StatServiceImpl

java.lang.Object
  extended by com.atlassian.greenhopper.service.AbstractService
      extended by com.atlassian.greenhopper.service.statistics.StatServiceImpl
All Implemented Interfaces:
StatService

@Service(value="gh-statService")
public class StatServiceImpl
extends AbstractService
implements StatService


Field Summary
 
Fields inherited from interface com.atlassian.greenhopper.service.statistics.StatService
log, SERVICE
 
Constructor Summary
StatServiceImpl()
           
 
Method Summary
 java.util.Map<java.lang.String,Summary> getSummariesForAssigneeIds(BoardContext boardContext, java.util.Collection<java.lang.String> assigneeIds)
          Collect statistics for Assignees.
 java.util.Map<java.lang.String,Summary> getSummariesForComponentIds(BoardContext boardContext, java.util.Collection<java.lang.String> componentIds)
          Collect statistics for Components.
 java.util.Map<java.lang.String,Summary> getSummariesForVersionIds(BoardContext boardContext, java.util.Collection<java.lang.String> versionIds)
          Collect statistics for Versions.
 
Methods inherited from class com.atlassian.greenhopper.service.AbstractService
getValueFromJiraDB, setValueFromJiraDB, setValueFromJiraDB
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatServiceImpl

public StatServiceImpl()
Method Detail

getSummariesForVersionIds

public java.util.Map<java.lang.String,Summary> getSummariesForVersionIds(BoardContext boardContext,
                                                                         java.util.Collection<java.lang.String> versionIds)
                                                                  throws com.atlassian.jira.issue.search.SearchException
Collect statistics for Versions. See SummaryStatsCollector for details.

Specified by:
getSummariesForVersionIds in interface StatService
Parameters:
boardContext - : The per request cache, used here to get the status configuration
versionIds - : The version IDs to search for
Returns:
a map of statistical data for each requested version, where key is the version ID.
Throws:
com.atlassian.jira.issue.search.SearchException

getSummariesForAssigneeIds

public java.util.Map<java.lang.String,Summary> getSummariesForAssigneeIds(BoardContext boardContext,
                                                                          java.util.Collection<java.lang.String> assigneeIds)
                                                                   throws com.atlassian.jira.issue.search.SearchException
Collect statistics for Assignees. See SummaryStatsCollector for details.

Specified by:
getSummariesForAssigneeIds in interface StatService
Parameters:
boardContext - : The per request cache, used here to get the status configuration
assigneeIds - : The assignee IDs to search for
Returns:
a map of statistical data for each requested assignee, where key is the assignee ID.
Throws:
com.atlassian.jira.issue.search.SearchException

getSummariesForComponentIds

public java.util.Map<java.lang.String,Summary> getSummariesForComponentIds(BoardContext boardContext,
                                                                           java.util.Collection<java.lang.String> componentIds)
                                                                    throws com.atlassian.jira.issue.search.SearchException
Collect statistics for Components. See SummaryStatsCollector for details.

Specified by:
getSummariesForComponentIds in interface StatService
Parameters:
boardContext - : The per request cache, used here to get the status configuration
componentIds - : The component IDs to search for
Returns:
a map of statistical data for each requested component, where key is the component ID.
Throws:
com.atlassian.jira.issue.search.SearchException


Copyright © 2007-2012 Atlassian. All Rights Reserved.