Class ProductCarouselComponentModelToDataPopulator

  • All Implemented Interfaces:
    Populator<CMSItemModel,​java.util.Map<java.lang.String,​java.lang.Object>>

    public class ProductCarouselComponentModelToDataPopulator
    extends java.lang.Object
    implements Populator<CMSItemModel,​java.util.Map<java.lang.String,​java.lang.Object>>
    Populator to provide product codes if they were not automatically retrieved directly from the item model. It can happen if the item was just created (never saved) and populated from a version.
    • Constructor Detail

      • ProductCarouselComponentModelToDataPopulator

        public ProductCarouselComponentModelToDataPopulator()
    • Method Detail

      • populate

        public void populate​(CMSItemModel cmsItemModel,
                             java.util.Map<java.lang.String,​java.lang.Object> stringObjectMap)
                      throws ConversionException
        Description copied from interface: Populator
        Populate the target instance with values from the source instance.
        Specified by:
        populate in interface Populator<CMSItemModel,​java.util.Map<java.lang.String,​java.lang.Object>>
        Parameters:
        cmsItemModel - the source object
        stringObjectMap - the target to fill
        Throws:
        ConversionException - if an error occurs
      • getProductCarouselComponentCarouselPredicate

        protected java.util.function.Predicate<CMSItemModel> getProductCarouselComponentCarouselPredicate()
      • setProductCarouselComponentCarouselPredicate

        public void setProductCarouselComponentCarouselPredicate​(java.util.function.Predicate<CMSItemModel> productCarouselComponentCarouselPredicate)