Class MarketplaceConsignmentCodeTranslator

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

public class MarketplaceConsignmentCodeTranslator extends AbstractValueTranslator
Marketplace translator for consignment update. Validation of consignment code is performed before importing.
  • Constructor Details

    • MarketplaceConsignmentCodeTranslator

      public MarketplaceConsignmentCodeTranslator()
  • Method Details

    • exportValue

      public String exportValue(Object arg0)
      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:
      arg0 - value to translate
      Returns:
      String translated value
    • importValue

      public Object importValue(String consignmentCode, Item item)
      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:
      consignmentCode - expression to translate
      item - the target item in case it already exist, null otherwise (for partOf attributes!)
      Returns:
      Object 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
    • getVendorService

      protected VendorService getVendorService()
    • setVendorService

      public void setVendorService(VendorService vendorService)