Class AppointmentExcelReader
java.lang.Object
fr.paris.lutece.plugins.appointment.modules.importer.service.AppointmentExcelReader
Reads and fully validates the first sheet of an XLSX file before it is persisted.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread(byte[] workbook, ImportValidationSettings settings) Reads and validates a workbook.
-
Constructor Details
-
AppointmentExcelReader
public AppointmentExcelReader()
-
-
Method Details
-
read
Reads and validates a workbook.- Parameters:
workbook- the XLSX file contentsettings- what the validation depends on- Returns:
- the valid rows and every error found; an unreadable file gives a single workbook error
-