com.atlassian.greenhopper.service.statistics
Interface StatService

All Known Implementing Classes:
StatServiceImpl

public interface StatService

Service for fetching statistical data on issues. TODO This will, in time, aggregate and replace the various summary implementations, moving Summary to a pure model implementation.

Author:
ahennecke

Field Summary
static org.apache.log4j.Logger log
           
static java.lang.String SERVICE
           
 
Method Summary
 java.util.Map<java.lang.String,Summary> getSummariesForAssigneeIds(BoardContext boardContext, java.util.Collection<java.lang.String> assigneeIds)
          Collect statistical data for the given assignees.
 java.util.Map<java.lang.String,Summary> getSummariesForComponentIds(BoardContext boardContext, java.util.Collection<java.lang.String> componentIds)
          Collect statistical data for the given components.
 java.util.Map<java.lang.String,Summary> getSummariesForVersionIds(BoardContext boardContext, java.util.Collection<java.lang.String> versionIds)
          Collect statistical data for the given versions.
 

Field Detail

log

static final org.apache.log4j.Logger log

SERVICE

static final java.lang.String SERVICE
See Also:
Constant Field Values
Method Detail

getSummariesForVersionIds

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 statistical data for the given versions. This is more efficient than querying the data on a per-version (pun intended) basis. TODO At the time, only part of the summary data is filled. The summary hierarchy tree might need to be broken down into a model object graph to better represent the data needed for the different processes, which will lead to this being refactored as well. For current data coverage, see DataSummary.

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

getSummariesForComponentIds

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 statistical data for the given components. For current data coverage, see DataSummary.

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

getSummariesForAssigneeIds

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 statistical data for the given assignees. For current data coverage, see DataSummary.

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


Copyright © 2007-2012 Atlassian. All Rights Reserved.