Class ProductImagePopulator

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String MAIN_IMAGE  
      protected static java.lang.String THUMBNAIL_IMAGE  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void populate​(ProductIndexContainer source, Product target)
      Populate the target instance with values from the source instance.
      protected java.util.Optional<java.lang.String> populateProductImage​(ProductIndexContainer source, java.lang.String propertyName)
      Helper method to populate image information associated with the product.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProductImagePopulator

        public ProductImagePopulator()
    • Method Detail

      • populateProductImage

        protected java.util.Optional<java.lang.String> populateProductImage​(ProductIndexContainer source,
                                                                            java.lang.String propertyName)
        Helper method to populate image information associated with the product.
        Parameters:
        source - the ProductIndexContainer representing the Solr index.
        propertyName - the property name being retrieved from the index.
        Returns:
        image information for the given key