Interface JasperExportHook
- All Superinterfaces:
Hook
- All Known Implementing Classes:
MetadataJasperPdfExportHooker
Interface for the export callbacks.
-
Method Summary
Modifier and TypeMethodDescriptionvoidafterExport(String type, JRExporter exporter, JasperReport report, CompiledRSJasperReport compiledReport, User user) Method to be called after the call to the exportReport() method.voidbeforeExport(String type, JRExporter exporter, JasperReport report, User user) Method to be called just before exportReport() method.Provides a list of supported export formats.
-
Method Details
-
getFormats
Collection<String> getFormats()Provides a list of supported export formats.- Returns:
- A string array with each element holding one supported export format.
-
beforeExport
Method to be called just before exportReport() method.- Parameters:
type- The type of the exporter.exporter- The JRExporter to operate on.
-
afterExport
void afterExport(String type, JRExporter exporter, JasperReport report, CompiledRSJasperReport compiledReport, User user) Method to be called after the call to the exportReport() method.- Parameters:
type- The type of the exporter.exporter- The JRExporter to operate on.
-