public class StatisticsManagerImpl extends Object implements StatisticsManager
| Constructor and Description | 
|---|
StatisticsManagerImpl(JiraAuthenticationContext jiraAuthenticationContext,
                     ProjectManager projectManager)  | 
| Modifier and Type | Method and Description | 
|---|---|
StatisticMapWrapper<Object,Integer> | 
getObjectsResultingFrom(Optional<Query> query,
                       String statsObject)
Returns objects that the issues resulting from the given query belong to, and the number of issues for each
 object. 
 | 
<T> Map<Project,Map<T,Integer>> | 
getProjectsWithItemsWithIssueCount(Optional<Query> query,
                                  java.util.function.Function<T,Long> objToProjectIdMapper,
                                  String objectType)
This method returns objects the issues resulting from the given query belong to. 
 | 
public StatisticsManagerImpl(JiraAuthenticationContext jiraAuthenticationContext, ProjectManager projectManager)
public StatisticMapWrapper<Object,Integer> getObjectsResultingFrom(Optional<Query> query, String statsObject)
StatisticsManagergetObjectsResultingFrom in interface StatisticsManagerquery - Query to be evaluated. May be null, is then treated as an empty query (no constraints)statsObject - Type of the object that statistics are calculated for. Possible values are given as constants
                    in the FilterStatisticsValuesGenerator class. e.g. 'project' or 'component'.
                    The custom field which this string refers to must implement
                    CustomFieldStattablepublic <T> Map<Project,Map<T,Integer>> getProjectsWithItemsWithIssueCount(Optional<Query> query, java.util.function.Function<T,Long> objToProjectIdMapper, String objectType)
StatisticsManagergetProjectsWithItemsWithIssueCount in interface StatisticsManagerT - Type of the resulting objectquery - Query to be evaluated. May be null, is then treated as an empty query (no constraints)objToProjectIdMapper - Function that for an object should return the id of the project it belongs toobjectType - Type of object to be searched for. Possible values are given as constants in the
                             FilterStatisticsValuesGenerator classCopyright © 2002-2017 Atlassian. All Rights Reserved.