Class DefaultJasperReportExportService
java.lang.Object
de.hybris.platform.cockpit.reports.impl.DefaultJasperReportExportService
- All Implemented Interfaces:
JasperReportExportService
Default implementation of
JasperReportExportService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]exportToExcel(net.sf.jasperreports.engine.JasperPrint filledReport) Exports report to ExcelexportToImage(net.sf.jasperreports.engine.JasperPrint filledReport) Exports report to imagebyte[]exportToPdf(net.sf.jasperreports.engine.JasperPrint filledReport) Exports report to PDFvoidsetExporterFactory(ExporterFactory exporterFactory)
-
Constructor Details
-
DefaultJasperReportExportService
public DefaultJasperReportExportService()
-
-
Method Details
-
exportToExcel
public byte[] exportToExcel(net.sf.jasperreports.engine.JasperPrint filledReport) throws JasperReportExportException Description copied from interface:JasperReportExportServiceExports report to Excel- Specified by:
exportToExcelin interfaceJasperReportExportService- Parameters:
filledReport- report to export- Returns:
- excel file as byte array
- Throws:
JasperReportExportException- if any problem occur
-
exportToImage
public BufferedImage exportToImage(net.sf.jasperreports.engine.JasperPrint filledReport) throws JasperReportExportException Description copied from interface:JasperReportExportServiceExports report to image- Specified by:
exportToImagein interfaceJasperReportExportService- Parameters:
filledReport- report to export- Returns:
- image
- Throws:
JasperReportExportException- if any problem occur
-
exportToPdf
public byte[] exportToPdf(net.sf.jasperreports.engine.JasperPrint filledReport) throws JasperReportExportException Description copied from interface:JasperReportExportServiceExports report to PDF- Specified by:
exportToPdfin interfaceJasperReportExportService- Parameters:
filledReport- report to export- Returns:
- pdf file as byte array
- Throws:
JasperReportExportException- if any problem occur
-
setExporterFactory
- Parameters:
exporterFactory- the exporterFactory to set
-