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 Summary
Constructors Constructor Description AbstractMapAttributePopulator()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidpopulateAttribute(ItemModel item, TypeAttributeDescriptor attribute, PersistenceContext context)Populates value of the specified item attribute.protected abstract voidsetNewMapValues(ItemModel item, TypeAttributeDescriptor attribute, java.util.Map<?,?> newValue)Provides the implementation on how to set the map attribute-
Methods inherited from class de.hybris.platform.inboundservices.persistence.populator.AbstractAttributePopulator
getModelService, isApplicable, isNew, populate, setModelService
-
-
-
-
Method Detail
-
setNewMapValues
protected abstract void setNewMapValues(ItemModel item, TypeAttributeDescriptor attribute, java.util.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.
-
-