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 givenimageinto 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:ChartUtilsMake a search request out of the searchQuery parameter and populate the report/portlet param map- Specified by:
retrieveOrMakeSearchRequestin 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:ChartUtilsGet the directory that charts are temporarily stored in.- Specified by:
getChartDirectoryin interfaceChartUtils- Returns:
- Directory
-
renderBase64Chart
Description copied from interface:ChartUtilsEncode givenimageinto the base 64 string.- Specified by:
renderBase64Chartin interfaceChartUtils- Parameters:
image- image to be encodedchartName- name that occurs in log in case of error- Returns:
imageas aStringin base 64 encoded format ("data:image/png;base64,iVBORw0KGgoAAAANS...")
-