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
This abstract map attribute populator contains common logic for handling map attributes
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidpopulateAttribute(ItemModel item, TypeAttributeDescriptor attribute, PersistenceContext context) Populates value of the specified item attribute.protected abstract voidsetNewMapValues(ItemModel item, TypeAttributeDescriptor attribute, Map<?, ?> newValue) Provides the implementation on how to set the map attributeMethods inherited from class de.hybris.platform.inboundservices.persistence.populator.AbstractAttributePopulator
getModelService, isApplicable, isNew, populate, setModelService
-
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 setattribute- Metadata on the attribute being setnewValue- value to set on the attribute
-
populateAttribute
protected void populateAttribute(ItemModel item, TypeAttributeDescriptor attribute, PersistenceContext context) Description copied from class:AbstractAttributePopulatorPopulates value of the specified item attribute.- Specified by:
populateAttributein classAbstractAttributePopulator- Parameters:
item- item model to be populated.attribute- specifies, which attribute should be populated in theitem.context- context information necessary to derive correct attribute value from the integration item.
-