Class MarketplaceProductsTranslator


  • public class MarketplaceProductsTranslator
    extends AbstractValueTranslator
    Products translator for marketplace, to find products under specific CatalogVersion
    • Constructor Detail

      • MarketplaceProductsTranslator

        public MarketplaceProductsTranslator()
    • Method Detail

      • importValue

        public java.lang.Object importValue​(java.lang.String paramString,
                                            Item paramItem)
        Description copied from class: AbstractValueTranslator
        Translates a tokenized csv value for import usage. This means that the result object must be a instance of the expected attribute type.
        Specified by:
        importValue in class AbstractValueTranslator
        Parameters:
        paramString - expression to translate
        paramItem - the target item in case it already exist, null otherwise (for partOf attributes!)
        Returns:
        Object translated value
      • exportValue

        public java.lang.String exportValue​(java.lang.Object paramObject)
        Description copied from class: AbstractValueTranslator
        Translates an attribute value for export usage. This means the attribute value must be transformed into a string which should be re-importable again.
        Specified by:
        exportValue in class AbstractValueTranslator
        Parameters:
        paramObject - value to translate
        Returns:
        String translated value
      • setProductService

        public void setProductService​(ProductService productService)
      • setVendorService

        public void setVendorService​(VendorService vendorService)
      • setCatalogVersionService

        public void setCatalogVersionService​(CatalogVersionService catalogVersionService)
      • getApplicationContext

        protected org.springframework.context.ApplicationContext getApplicationContext()