Interface JasperReportCacheService
-
- All Known Implementing Classes:
DefaultJasperReportCacheService
public interface JasperReportCacheServiceSession-scoped service that caches reports- Spring Bean ID:
- jasperReportCacheService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description net.sf.jasperreports.engine.JasperReportgetCompiledReport(JasperWidgetPreferencesModel widget)Returns cached report.org.zkoss.image.AImagegetImageForJasperWidgetPreferences(JasperWidgetPreferencesModel widget)Returns cached image for widget.voidinvalidateAll()Clears cachebooleanremove(JasperWidgetPreferencesModel widget)Removes widget from cache.booleanupdate(JasperWidgetPreferencesModel widget)Updates cached report for specific widget.
-
-
-
Method Detail
-
remove
boolean remove(JasperWidgetPreferencesModel widget)
Removes widget from cache.- Parameters:
widget- to be removed from cache- Returns:
- true if widget has been removed, false otherwise
-
getImageForJasperWidgetPreferences
org.zkoss.image.AImage getImageForJasperWidgetPreferences(JasperWidgetPreferencesModel widget) throws JasperWidgetException
Returns cached image for widget. If no image is in the cache, the implementing class must create one, add it to the cache and return it.- Parameters:
widget- for which image is cached- Throws:
JasperWidgetException- when problem with export report to image occurred
-
update
boolean update(JasperWidgetPreferencesModel widget)
Updates cached report for specific widget.- Parameters:
widget- to be updated
-
invalidateAll
void invalidateAll()
Clears cache
-
getCompiledReport
net.sf.jasperreports.engine.JasperReport getCompiledReport(JasperWidgetPreferencesModel widget)
Returns cached report. If no report is in the cache, the implementing class must create one, add it to the cache and return it.- Parameters:
widget- for which report is cached.
-
-