Class AppointmentImportReportService
java.lang.Object
fr.paris.lutece.plugins.appointment.modules.importer.service.AppointmentImportReportService
Produces administrator-downloadable reports from persistent importer data.
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]failedRowsWorkbook(int nFileId, Locale locale) Produces an XLSX workbook containing the rows that could not be imported, with all original columns preserved.static byte[]finalReport(int nFileId, Locale locale) Produces an XLSX workbook with one row per imported appointment.static byte[]validationReport(String strJson, Locale locale) Produces an XLSX workbook listing all validation errors from the stored JSON report.
-
Method Details
-
finalReport
Produces an XLSX workbook with one row per imported appointment.- Parameters:
nFileId- theid_import_filelocale- the admin user's locale, used to localise report headers and statuses- Returns:
- the XLSX bytes
- Throws:
IOException
-
validationReport
Produces an XLSX workbook listing all validation errors from the stored JSON report.- Parameters:
strJson- the serialised validation report (stored inAppointmentImportFile)locale- the admin user's locale, used to localise report headers- Returns:
- the XLSX bytes
- Throws:
IOException
-
failedRowsWorkbook
Produces an XLSX workbook containing the rows that could not be imported, with all original columns preserved.- Parameters:
nFileId- theid_import_filelocale- the admin user's locale, used to localise report headers- Returns:
- the XLSX bytes
- Throws:
IOException
-