Class LinkComponentModelToDataPopulator
java.lang.Object
de.hybris.platform.cmsfacades.rendering.populators.LinkComponentModelToDataPopulator
- All Implemented Interfaces:
Populator<CMSItemModel,Map<String, Object>>
public class LinkComponentModelToDataPopulator
extends Object
implements Populator<CMSItemModel,Map<String,Object>>
Populator to provide the url value if the related item is of type ContentPageModel, ProductModel or CategoryModel.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Predicate<CMSItemModel>voidpopulate(CMSItemModel cmsItemModel, Map<String, Object> stringObjectMap) Populate the target instance with values from the source instance.voidsetLinkComponentPredicate(Predicate<CMSItemModel> linkComponentPredicate)
-
Field Details
-
PRODUCT_PREFIX
- See Also:
-
CATEGORY_PREFIX
- See Also:
-
-
Constructor Details
-
LinkComponentModelToDataPopulator
public LinkComponentModelToDataPopulator()
-
-
Method Details
-
populate
public void populate(CMSItemModel cmsItemModel, Map<String, Object> stringObjectMap) throws ConversionExceptionDescription copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<CMSItemModel,Map<String, Object>> - Parameters:
cmsItemModel- the source objectstringObjectMap- the target to fill- Throws:
ConversionException- if an error occurs
-
getLinkComponentPredicate
-
setLinkComponentPredicate
-