public class

ChartUtilsImpl

extends Object
implements ChartUtils
java.lang.Object
   ↳ com.atlassian.jira.charts.util.ChartUtilsImpl

Class Overview

Utility class for charting

Summary

Public Constructors
ChartUtilsImpl(SearchRequestService searchRequestService, JiraAuthenticationContext authenticationContext, ProjectManager projectManager, SearchService searchService, JiraHome jiraHome)
Public Methods
File getChartDirectory()
Get the directory that charts are temporarily stored in.
String renderBase64Chart(BufferedImage image, String chartName)
Encode given image into the base 64 string.
SearchRequest retrieveOrMakeSearchRequest(String projectOrFilterId, Map<StringObject> params)
Make a search request out of the searchQuery parameter and populate the report/portlet param map
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.charts.util.ChartUtils

Public Constructors

public ChartUtilsImpl (SearchRequestService searchRequestService, JiraAuthenticationContext authenticationContext, ProjectManager projectManager, SearchService searchService, JiraHome jiraHome)

Public Methods

public File getChartDirectory ()

Get the directory that charts are temporarily stored in.

Returns
  • Directory

public String renderBase64Chart (BufferedImage image, String chartName)

Encode given image into the base 64 string.

Parameters
image image to be encoded
chartName name that occurs in log in case of error
Returns
  • image as a String in base 64 encoded format ("data:image/png;base64,iVBORw0KGgoAAAANS...")

public SearchRequest retrieveOrMakeSearchRequest (String projectOrFilterId, Map<StringObject> params)

Make a search request out of the searchQuery parameter and populate the report/portlet param map

Parameters
projectOrFilterId a jql string, a project id or a filter id
params the map of parameters to modify
Returns
  • The SearchRequest for the project/filter id