Class MarketplaceCategoryTranslator

java.lang.Object
de.hybris.platform.impex.jalo.translators.AbstractValueTranslator
de.hybris.platform.marketplaceservices.dataimport.batch.translator.MarketplaceCategoryTranslator

public class MarketplaceCategoryTranslator extends AbstractValueTranslator
Category translator for marketplace, validate the category must be assigned to the vendor
  • Constructor Details

    • MarketplaceCategoryTranslator

      public MarketplaceCategoryTranslator()
  • Method Details

    • importValue

      public Object importValue(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
    • isCategoryValidForVendor

      protected boolean isCategoryValidForVendor(CategoryModel category, VendorModel vendor)
    • exportValue

      public String exportValue(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
    • init

      public void init(StandardColumnDescriptor descriptor)
      Description copied from class: AbstractValueTranslator
      Called once per header creation to allow configuring this translator using column modifiers etc.
      Overrides:
      init in class AbstractValueTranslator
      Parameters:
      descriptor - descriptor where the value to translate belongs to
    • getCategoryService

      public CategoryService getCategoryService()
    • setCategoryService

      public void setCategoryService(CategoryService categoryService)
    • getVendorService

      public VendorService getVendorService()
    • setVendorService

      public void setVendorService(VendorService vendorService)
    • getCatalogVersionService

      public CatalogVersionService getCatalogVersionService()
    • setCatalogVersionService

      public void setCatalogVersionService(CatalogVersionService catalogVersionService)