|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.charts.util.ChartUtilsImpl
public class ChartUtilsImpl
Utility class for charting
Constructor Summary | |
---|---|
ChartUtilsImpl(SearchRequestService searchRequestService,
JiraAuthenticationContext authenticationContext,
ProjectManager projectManager,
SearchService searchService,
JiraHome jiraHome)
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChartUtilsImpl(SearchRequestService searchRequestService, JiraAuthenticationContext authenticationContext, ProjectManager projectManager, SearchService searchService, JiraHome jiraHome)
Method Detail |
---|
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 modify
public 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 error
image
as a String
in base 64 encoded format
("data:image/png;base64,iVBORw0KGgoAAAANS...")
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |