java.lang.Object
com.broadleafcommerce.promotion.offer.dataimport.converter.OfferCodeConverter
All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<com.broadleafcommerce.common.dataimport.messaging.BatchRecord,OfferCode>

public class OfferCodeConverter extends Object implements org.springframework.core.convert.converter.Converter<com.broadleafcommerce.common.dataimport.messaging.BatchRecord,OfferCode>
Author:
Vitalii Voronkov (vvoronkov)
  • Constructor Summary

    Constructors
    Constructor
    Description
    OfferCodeConverter(com.fasterxml.jackson.databind.ObjectMapper mapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    convert(@NonNull com.broadleafcommerce.common.dataimport.messaging.BatchRecord source)
     
    protected com.fasterxml.jackson.databind.ObjectMapper
     
    protected com.broadleafcommerce.common.extension.TypeFactory
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.core.convert.converter.Converter

    andThen
  • Constructor Details

    • OfferCodeConverter

      public OfferCodeConverter(com.fasterxml.jackson.databind.ObjectMapper mapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
  • Method Details

    • convert

      public OfferCode convert(@NonNull @NonNull com.broadleafcommerce.common.dataimport.messaging.BatchRecord source)
      Specified by:
      convert in interface org.springframework.core.convert.converter.Converter<com.broadleafcommerce.common.dataimport.messaging.BatchRecord,OfferCode>
    • getMapper

      protected com.fasterxml.jackson.databind.ObjectMapper getMapper()
    • getTypeFactory

      protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()