public class ChartUtilsImpl extends Object implements ChartUtils
Constructor and Description |
---|
ChartUtilsImpl(SearchRequestService searchRequestService,
JiraAuthenticationContext authenticationContext,
ProjectManager projectManager,
SearchService searchService,
JiraHome jiraHome) |
Modifier and Type | Method and Description |
---|---|
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<String,Object> params)
Make a search request out of the searchQuery parameter and populate the report/portlet param map
|
public ChartUtilsImpl(SearchRequestService searchRequestService, JiraAuthenticationContext authenticationContext, ProjectManager projectManager, SearchService searchService, JiraHome jiraHome)
public SearchRequest retrieveOrMakeSearchRequest(String projectOrFilterId, Map<String,Object> params)
ChartUtils
retrieveOrMakeSearchRequest
in interface ChartUtils
projectOrFilterId
- a jql string, a project id or a filter idparams
- the map of parameters to modifypublic File getChartDirectory()
ChartUtils
getChartDirectory
in interface ChartUtils
public String renderBase64Chart(BufferedImage image, String chartName)
ChartUtils
image
into the base 64 string.renderBase64Chart
in interface ChartUtils
image
- image to be encodedchartName
- name that occurs in log in case of errorimage
as a String
in base 64 encoded format
("data:image/png;base64,iVBORw0KGgoAAAANS...")Copyright © 2002-2016 Atlassian. All Rights Reserved.