java.lang.Object
java.lang.Enum<ImportColumn>
fr.paris.lutece.plugins.appointment.modules.importer.business.ImportColumn
All Implemented Interfaces:
Serializable, Comparable<ImportColumn>, Constable

public enum ImportColumn extends Enum<ImportColumn>
Standard columns of an import workbook.

A column is recognized by its header or by its alias. The header, the alias and, for the optional columns, the mandatory flag can be changed in appointment-importer.properties: see ImportColumns.

  • Enum Constant Details

  • Method Details

    • values

      public static ImportColumn[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ImportColumn valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getKey

      public String getKey()
      Returns:
      the key of the column in the configuration
    • getDefaultHeader

      public String getDefaultHeader()
      Returns:
      the header used when none is configured
    • getDefaultAlias

      public String getDefaultAlias()
      Returns:
      the other header accepted when none is configured (the technical name of the import specification)
    • getAttributeKey

      public String getAttributeKey()
      Returns:
      the key of the value in the stored row, or null for the columns that define the slot
    • isRequired

      public boolean isRequired()
      Returns:
      true if an appointment cannot be created without this column, whatever the configuration
    • isMandatoryByDefault

      public boolean isMandatoryByDefault()
      Returns:
      true if the column is mandatory when the configuration says nothing