Class ProductModelItemDataPopulator
- java.lang.Object
-
- de.hybris.platform.cmsfacades.uniqueidentifier.populator.ProductModelItemDataPopulator
-
- All Implemented Interfaces:
Populator<ProductModel,ItemData>
public class ProductModelItemDataPopulator extends java.lang.Object implements Populator<ProductModel,ItemData>
Populates the ItemData object with the Product model as the source.
-
-
Constructor Summary
Constructors Constructor Description ProductModelItemDataPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetUniqueIdentifier(ProductModel productModel)Returns the unique identifier using the encoded compose key class.voidpopulate(ProductModel source, ItemData target)Populate the target instance with values from the source instance.
-
-
-
Method Detail
-
populate
public void populate(ProductModel source, ItemData target) throws ConversionException
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<ProductModel,ItemData>- Parameters:
source- the source objecttarget- the target to fill- Throws:
ConversionException- if an error occurs
-
getUniqueIdentifier
protected java.lang.String getUniqueIdentifier(ProductModel productModel)
Returns the unique identifier using the encoded compose key class. See more details hereEncodedItemComposedKey.- Parameters:
productModel- the product item model we want to extract the unique identifier.- Returns:
- the encoded unique identifier.
- See Also:
EncodedItemComposedKey
-
-