public class DefaultJasperReportCacheService extends java.lang.Object implements JasperReportCacheService
JasperReportCacheService| Constructor and Description |
|---|
DefaultJasperReportCacheService() |
| Modifier and Type | Method and Description |
|---|---|
JasperReport |
getCompiledReport(JasperWidgetPreferencesModel widget)
Returns cached report.
|
AImage |
getImageForJasperWidgetPreferences(JasperWidgetPreferencesModel widget)
Returns cached image for widget.
|
void |
invalidateAll()
Clears cache
|
boolean |
remove(JasperWidgetPreferencesModel widget)
Removes widget from cache.
|
void |
setJasperMediaService(JasperMediaService jasperMediaService) |
void |
setJasperReportCompileService(JasperReportCompileService jasperReportCompileService) |
void |
setJasperReportExportService(JasperReportExportService jasperReportExportService) |
void |
setJasperReportFillService(JasperReportFillService jasperReportFillService) |
boolean |
update(JasperWidgetPreferencesModel widget)
Updates cached report for specific widget.
|
public JasperReport getCompiledReport(JasperWidgetPreferencesModel widget)
getCompiledReport in interface JasperReportCacheServicewidget - for which report is cached.public boolean remove(JasperWidgetPreferencesModel widget)
remove in interface JasperReportCacheServicewidget - to be removed from cachepublic AImage getImageForJasperWidgetPreferences(JasperWidgetPreferencesModel widget) throws JasperWidgetException
getImageForJasperWidgetPreferences in interface JasperReportCacheServicewidget - for which image is cachedJasperWidgetException - when problem with export report to image occurredpublic boolean update(JasperWidgetPreferencesModel widget)
update in interface JasperReportCacheServicewidget - to be updatedpublic void invalidateAll()
invalidateAll in interface JasperReportCacheServicepublic void setJasperMediaService(JasperMediaService jasperMediaService)
jasperMediaService - the jasperMediaService to setpublic void setJasperReportCompileService(JasperReportCompileService jasperReportCompileService)
jasperReportCompileService - the jasperReportCompileService to setpublic void setJasperReportFillService(JasperReportFillService jasperReportFillService)
jasperReportFillService - the jasperReportFillService to setpublic void setJasperReportExportService(JasperReportExportService jasperReportExportService)
jasperReportExportService - the jasperReportExportService to setCopyright © 2018 SAP SE. All Rights Reserved.