Class ReplaceMapAttributePopulator
java.lang.Object
de.hybris.platform.inboundservices.persistence.populator.AbstractAttributePopulator
de.hybris.platform.inboundservices.persistence.populator.AbstractMapAttributePopulator
de.hybris.platform.inboundservices.persistence.populator.ReplaceMapAttributePopulator
- All Implemented Interfaces:
AttributePopulator
This populator replaces the content of the map attribute
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisApplicable(TypeAttributeDescriptor attribute, PersistenceContext context) Determines whether a specific implementation can provide value for the specified attribute.protected 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.AbstractMapAttributePopulator
populateAttributeMethods inherited from class de.hybris.platform.inboundservices.persistence.populator.AbstractAttributePopulator
getModelService, isNew, populate, setModelService
-
Constructor Details
-
ReplaceMapAttributePopulator
public ReplaceMapAttributePopulator()
-
-
Method Details
-
isApplicable
Description copied from class:AbstractAttributePopulatorDetermines whether a specific implementation can provide value for the specified attribute.- Specified by:
isApplicablein classAbstractAttributePopulator- Parameters:
attribute- attribute to make the decision about.context- context that may be needed to make the decision.- Returns:
true, if this attribute processor is applicable to the specified attribute and can provide a value for it;false, otherwise.
-
setNewMapValues
protected void setNewMapValues(ItemModel item, TypeAttributeDescriptor attribute, Map<?, ?> newValue) Description copied from class:AbstractMapAttributePopulatorProvides the implementation on how to set the map attribute- Specified by:
setNewMapValuesin classAbstractMapAttributePopulator- Parameters:
item- Item to setattribute- Metadata on the attribute being setnewValue- value to set on the attribute
-