Interface CMSItemConverter

  • All Known Implementing Classes:
    DefaultCMSItemConverter

    public interface CMSItemConverter
    Interface responsible for converting back and forth between an ItemModel and a serializable Map of its attribute names and their values.
    • Method Detail

      • convert

        java.util.Map<java.lang.String,​java.lang.Object> convert​(ItemModel source)
        Converts an ItemModel to a serializable Map.
        Parameters:
        source - the ItemModel to convert.
        Returns:
        the ItemModel converted to a Map
      • convert

        ItemModel convert​(java.util.Map<java.lang.String,​java.lang.Object> source)
        Converts a deserializable Map to an ItemModel.
        Parameters:
        source - the Map to convert
        Returns:
        the Map converted to an ItemModel
        Throws:
        ConversionException - if unknown UUID are provided, property types cannot be instantiated or if properties or sub properties cannot be converted