Class ProductConverter

    • Field Detail

      • MAXIMUM_ADDITIONAL_IMAGES

        public static final int MAXIMUM_ADDITIONAL_IMAGES
        See Also:
        Constant Field Values
    • Constructor Detail

      • ProductConverter

        public ProductConverter()
    • Method Detail

      • setProductModelUrlResolver

        public void setProductModelUrlResolver​(UrlResolver<ProductModel> productModelUrlResolver)
      • setCommercePriceService

        public void setCommercePriceService​(CommercePriceService commercePriceService)
      • setCategoryService

        public void setCategoryService​(CategoryService categoryService)
      • setSiteBaseUrlResolutionService

        public void setSiteBaseUrlResolutionService​(SiteBaseUrlResolutionService siteBaseUrlResolutionService)
      • getItemGroupId

        protected java.lang.String getItemGroupId​(ProductModel productModel)
        All items that are color/material/pattern/size variants of the same product must have the same item group id. If you have a "Parent SKU" that is shared by all variants of a product, you can provide that as the value for 'item group id'.
        Parameters:
        productModel - the product
        Returns:
        groupId
      • generateProductType

        protected java.lang.String generateProductType​(ProductModel productModel)
      • getProductCondition

        protected java.lang.String getProductCondition​(ProductModel productModel)
      • getAdditionalImages

        protected java.lang.String getAdditionalImages​(java.lang.String mediaUrl,
                                                       ProductModel productModel)
      • generateGoogleProductCategory

        protected java.lang.String generateGoogleProductCategory​(ProductModel productModel)