Class AppointmentExcelReader

java.lang.Object
fr.paris.lutece.plugins.appointment.modules.importer.service.AppointmentExcelReader

@ApplicationScoped public class AppointmentExcelReader extends Object
Reads and fully validates the first sheet of an XLSX file before it is persisted.
  • Constructor Details

    • AppointmentExcelReader

      public AppointmentExcelReader()
  • Method Details

    • read

      public AppointmentExcelValidationResult read(byte[] workbook, ImportValidationSettings settings)
      Reads and validates a workbook.
      Parameters:
      workbook - the XLSX file content
      settings - what the validation depends on
      Returns:
      the valid rows and every error found; an unreadable file gives a single workbook error