Class MapAttributePopulator
- java.lang.Object
-
- de.hybris.platform.inboundservices.persistence.populator.AbstractAttributePopulator
-
- de.hybris.platform.inboundservices.persistence.populator.AbstractMapAttributePopulator
-
- de.hybris.platform.inboundservices.persistence.populator.MapAttributePopulator
-
- All Implemented Interfaces:
AttributePopulator
public final class MapAttributePopulator extends AbstractMapAttributePopulator
This populator appends to the content of the map attribute
-
-
Constructor Summary
Constructors Constructor Description MapAttributePopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanisApplicable(TypeAttributeDescriptor attribute, PersistenceContext context)Determines whether a specific implementation can provide value for the specified attribute.protected 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.AbstractMapAttributePopulator
populateAttribute
-
Methods inherited from class de.hybris.platform.inboundservices.persistence.populator.AbstractAttributePopulator
getModelService, isNew, populate, setModelService
-
-
-
-
Method Detail
-
isApplicable
protected boolean isApplicable(TypeAttributeDescriptor attribute, PersistenceContext context)
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, java.util.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
-
-