Class ImportColumns
java.lang.Object
fr.paris.lutece.plugins.appointment.modules.importer.business.ImportColumns
Headers and mandatory flags of the standard columns, as configured.
appointment-importer.column.<key>.header renames a column, appointment-importer.column.<key>.alias changes the other header it is
recognized by, appointment-importer.column.<key>.mandatory makes an optional column
mandatory or not. The columns an appointment cannot do without stay mandatory.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImportColumnsdefaults()fromHeader(String strHeader) static ImportColumnsgetHeader(ImportColumn column) booleanisMandatory(ImportColumn column) booleanisStandardHeader(String strHeader)
-
Method Details
-
fromProperties
- Returns:
- the columns as configured in the properties
-
defaults
- Returns:
- the columns with their default headers and flags
-
getHeader
- Parameters:
column- the column- Returns:
- its header
-
isStandardHeader
- Parameters:
strHeader- a header- Returns:
- true if the header names one of the standard columns
-
isMandatory
- Parameters:
column- the column- Returns:
- true if the column and its values are mandatory
-
fromHeader
- Parameters:
strHeader- a header, as written in the workbook- Returns:
- the standard column with this header or alias, or null
-