Package com.atlassian.jira.charts.util
Class ChartUtilsImpl
java.lang.Object
com.atlassian.jira.charts.util.ChartUtilsImpl
- All Implemented Interfaces:
ChartUtils
Utility class for charting
- Since:
- v4.0
-
Constructor Summary
ConstructorsConstructorDescriptionChartUtilsImpl
(SearchRequestService searchRequestService, JiraAuthenticationContext authenticationContext, ProjectManager projectManager, SearchService searchService, JiraHome jiraHome, AccessDisablingHelper accessDisablingHelper, com.atlassian.event.api.EventPublisher eventPublisher, InternalProjectPermissionHelper projectPermissionHelper) -
Method Summary
Modifier and TypeMethodDescriptionGet the directory that charts are temporarily stored in.renderBase64Chart
(BufferedImage image, String chartName) Encode givenimage
into the base 64 string.retrieveOrMakeSearchRequest
(String projectOrFilterId, Map<String, Object> params) Make a search request out of the searchQuery parameter and populate the report/portlet param map
-
Constructor Details
-
ChartUtilsImpl
public ChartUtilsImpl(SearchRequestService searchRequestService, JiraAuthenticationContext authenticationContext, ProjectManager projectManager, SearchService searchService, JiraHome jiraHome, AccessDisablingHelper accessDisablingHelper, com.atlassian.event.api.EventPublisher eventPublisher, InternalProjectPermissionHelper projectPermissionHelper)
-
-
Method Details
-
retrieveOrMakeSearchRequest
public SearchRequest retrieveOrMakeSearchRequest(String projectOrFilterId, Map<String, Object> params) Description copied from interface:ChartUtils
Make a search request out of the searchQuery parameter and populate the report/portlet param map- Specified by:
retrieveOrMakeSearchRequest
in interfaceChartUtils
- Parameters:
projectOrFilterId
- a jql string, a project id or a filter idparams
- the map of parameters to modify- Returns:
- The SearchRequest for the project/filter id
-
getChartDirectory
Description copied from interface:ChartUtils
Get the directory that charts are temporarily stored in.- Specified by:
getChartDirectory
in interfaceChartUtils
- Returns:
- Directory
-
renderBase64Chart
Description copied from interface:ChartUtils
Encode givenimage
into the base 64 string.- Specified by:
renderBase64Chart
in interfaceChartUtils
- Parameters:
image
- image to be encodedchartName
- name that occurs in log in case of error- Returns:
image
as aString
in base 64 encoded format ("data:image/png;base64,iVBORw0KGgoAAAANS...")
-