Class SitePropertyFieldTypeResolver

java.lang.Object
fr.paris.lutece.portal.service.site.properties.SitePropertyFieldTypeResolver

public final class SitePropertyFieldTypeResolver extends Object
Resolves the FieldType of a site property from its datastore key, using the suffix convention of the site properties form.

Suffix convention (evaluated from the most specific to the most generic):

  • Method Details

    • fromKey

      public static FieldType fromKey(String strKey)
      Resolves the field type of a site property from its datastore key.
      Parameters:
      strKey - the full datastore key of the site property
      Returns:
      the resolved field type, FieldType.TEXT by default when no specific suffix matches or when the key is null