com.atlassian.jira.gadgets.system
Class HeatMapResource

java.lang.Object
  extended by com.atlassian.jira.gadgets.system.AbstractResource
      extended by com.atlassian.jira.gadgets.system.SearchQueryBackedResource
          extended by com.atlassian.jira.gadgets.system.HeatMapResource

public class HeatMapResource
extends SearchQueryBackedResource

REST endpoint to validate and retreive a Heat Map. Similar to the pie chart gadget

Since:
v4.0

Nested Class Summary
static class HeatMapResource.DataRow
           
static class HeatMapResource.HeatMap
          A simple bean contain all information required to render the Heat Map
 
Field Summary
 
Fields inherited from class com.atlassian.jira.gadgets.system.SearchQueryBackedResource
chartUtils, permissionManager, QUERY_STRING, searchService
 
Constructor Summary
HeatMapResource(ChartUtils chartUtils, JiraAuthenticationContext authenticationContext, PermissionManager permissionManager, StatisticTypesResource statisticTypesResource, SearchService searchService, VelocityRequestContextFactory velocityRequestContextFactory, ConstantsManager constantsManager, CustomFieldManager customFieldManager)
           
 
Method Summary
 javax.ws.rs.core.Response getHeatMap(String queryString, String statType)
          Generate a heat map and returns a simple bean containing all relievent information
 javax.ws.rs.core.Response validateHeatMap(String queryString, String statType)
          Ensures all parameters are valid for the heat map
 
Methods inherited from class com.atlassian.jira.gadgets.system.SearchQueryBackedResource
getFilterTitle, getFilterUrl, getSearchRequestAndValidate
 
Methods inherited from class com.atlassian.jira.gadgets.system.AbstractResource
createErrorResponse, createIndexingUnavailableResponse, createValidationResponse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeatMapResource

public HeatMapResource(ChartUtils chartUtils,
                       JiraAuthenticationContext authenticationContext,
                       PermissionManager permissionManager,
                       StatisticTypesResource statisticTypesResource,
                       SearchService searchService,
                       VelocityRequestContextFactory velocityRequestContextFactory,
                       ConstantsManager constantsManager,
                       CustomFieldManager customFieldManager)
Method Detail

getHeatMap

public javax.ws.rs.core.Response getHeatMap(String queryString,
                                            String statType)
Generate a heat map and returns a simple bean containing all relievent information

Parameters:
queryString - a filter id (starts with "filter-") or project id (starts with "project-") or jql (starts with "jql-")
statType - a valid statistic type. See StatisticTypesResource
Returns:
a HeatMapResource.HeatMap if all params validated else a Collection of ValidationError

validateHeatMap

public javax.ws.rs.core.Response validateHeatMap(String queryString,
                                                 String statType)
Ensures all parameters are valid for the heat map

Parameters:
queryString - a filter id (starts with "filter-") or project id (starts with "project-") or jql (starts with "jql-")
statType - a valid statistic type. See StatisticTypesResource
Returns:
a Collection of ValidationError. Or empty list if no errors.


Copyright © 2002-2012 Atlassian. All Rights Reserved.