Class DefaultNonLocalizedMapType2MapPopulator
java.lang.Object
de.hybris.platform.integrationservices.populator.AbstractItemToMapPopulator
de.hybris.platform.integrationservices.populator.DefaultNonLocalizedMapType2MapPopulator
- All Implemented Interfaces:
Populator<ItemToMapConversionContext,Map<String, Object>>
- Direct Known Subclasses:
WebhookNonLocalizedMapType2MapPopulator
Populate a map from a non-localized map type attribute, such as String2StringMapType, of an item model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisApplicable(TypeAttributeDescriptor attrDesc) Indicates whether this Populator is applicable to process the attributeprotected voidpopulateToMap(TypeAttributeDescriptor attr, ItemToMapConversionContext context, Map<String, Object> target) Implements the logic to populate the targetMethods inherited from class de.hybris.platform.integrationservices.populator.AbstractItemToMapPopulator
getModelService, populate, setModelService
-
Constructor Details
-
DefaultNonLocalizedMapType2MapPopulator
public DefaultNonLocalizedMapType2MapPopulator()
-
-
Method Details
-
isApplicable
Description copied from class:AbstractItemToMapPopulatorIndicates whether this Populator is applicable to process the attribute- Specified by:
isApplicablein classAbstractItemToMapPopulator- Parameters:
attrDesc- descriptor of the attribute to make the decision about- Returns:
true, if the Populator is applicable; otherwisefalse
-
populateToMap
protected void populateToMap(TypeAttributeDescriptor attr, ItemToMapConversionContext context, Map<String, Object> target) Description copied from class:AbstractItemToMapPopulatorImplements the logic to populate the target- Specified by:
populateToMapin classAbstractItemToMapPopulator- Parameters:
attr- descriptor of the attribute to be populatedcontext- Source used in the implementation to populate the targettarget- Populate the target with the result
-