Class MerchSnProductMetadataPopulator
java.lang.Object
com.hybris.merchandising.converters.populators.MerchSnProductMetadataPopulator
- All Implemented Interfaces:
Populator<MerchSnDocumentContainer,Product>
public class MerchSnProductMetadataPopulator
extends Object
implements Populator<MerchSnDocumentContainer,Product>
Class populating merch product metadata (name, summary, description)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ProductMetadatabuildMetaData(MerchSnDocumentContainer source, Map.Entry<LanguageModel, Locale> locale) protected StringextractFieldValue(MerchSnDocumentContainer source, Map.Entry<LanguageModel, Locale> locale, String merchFieldId) voidpopulate(MerchSnDocumentContainer source, Product target) Populate the target instance with values from the source instance.
-
Constructor Details
-
MerchSnProductMetadataPopulator
public MerchSnProductMetadataPopulator()
-
-
Method Details
-
populate
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<MerchSnDocumentContainer,Product> - Parameters:
source- the source objecttarget- the target to fill- Throws:
ConversionException- if an error occurs
-
buildMetaData
protected ProductMetadata buildMetaData(MerchSnDocumentContainer source, Map.Entry<LanguageModel, Locale> locale) -
extractFieldValue
protected String extractFieldValue(MerchSnDocumentContainer source, Map.Entry<LanguageModel, Locale> locale, String merchFieldId)
-