Class AbstractMapAttributePopulator

java.lang.Object
de.hybris.platform.inboundservices.persistence.populator.AbstractAttributePopulator
de.hybris.platform.inboundservices.persistence.populator.AbstractMapAttributePopulator
All Implemented Interfaces:
AttributePopulator
Direct Known Subclasses:
MapAttributePopulator, ReplaceMapAttributePopulator

public abstract class AbstractMapAttributePopulator extends AbstractAttributePopulator
This abstract map attribute populator contains common logic for handling map attributes
  • Constructor Details

    • AbstractMapAttributePopulator

      public AbstractMapAttributePopulator()
  • Method Details

    • setNewMapValues

      protected abstract void setNewMapValues(ItemModel item, TypeAttributeDescriptor attribute, Map<?,?> newValue)
      Provides the implementation on how to set the map attribute
      Parameters:
      item - Item to set
      attribute - Metadata on the attribute being set
      newValue - value to set on the attribute
    • populateAttribute

      protected void populateAttribute(ItemModel item, TypeAttributeDescriptor attribute, PersistenceContext context)
      Description copied from class: AbstractAttributePopulator
      Populates value of the specified item attribute.
      Specified by:
      populateAttribute in class AbstractAttributePopulator
      Parameters:
      item - item model to be populated.
      attribute - specifies, which attribute should be populated in the item.
      context - context information necessary to derive correct attribute value from the integration item.