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