java.lang.Object
de.hybris.platform.impex.jalo.header.AbstractImpExCSVCellDecorator
de.hybris.platform.acceleratorservices.dataimport.batch.decorator.CustomerNameDecorator
All Implemented Interfaces:
CSVCellDecorator

public class CustomerNameDecorator extends AbstractImpExCSVCellDecorator
Decorator which fill name of customer in case it is blank. Name for customer is taken from email address. It assume that email address is in the column previous to customer name column
  • Constructor Details

    • CustomerNameDecorator

      public CustomerNameDecorator()
  • Method Details

    • decorate

      public String decorate(int position, Map<Integer,String> srcLine)
      Description copied from interface: CSVCellDecorator
      Decorates and returns the parsed attribute value. The value can be gathered from given srcLine map by accessing element with given position key.
      Parameters:
      position - element key for given map where the parsed value to decorate is located
      srcLine - map containing whole parsed value line
      Returns:
      decorated attribute value