Class CustomerConverter
- java.lang.Object
-
- com.broadleafcommerce.customer.dataimport.converter.CustomerConverter
-
- All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<com.broadleafcommerce.common.dataimport.messaging.BatchRecord,Customer>
public class CustomerConverter extends Object implements org.springframework.core.convert.converter.Converter<com.broadleafcommerce.common.dataimport.messaging.BatchRecord,Customer>
- Author:
- Vitalii Voronkov (vvoronkov)
-
-
Constructor Summary
Constructors Constructor Description CustomerConverter(com.fasterxml.jackson.databind.ObjectMapper mapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Customer
convert(@NonNull com.broadleafcommerce.common.dataimport.messaging.BatchRecord source)
protected Phone
convertPhone(com.broadleafcommerce.common.dataimport.messaging.BatchRecord source)
protected com.fasterxml.jackson.databind.ObjectMapper
getMapper()
protected com.broadleafcommerce.common.extension.TypeFactory
getTypeFactory()
protected Map<String,Object>
removeAndParseAttributes(@NonNull Map<String,String> row)
-
-
-
Method Detail
-
convert
public Customer convert(@NonNull @NonNull com.broadleafcommerce.common.dataimport.messaging.BatchRecord source)
- Specified by:
convert
in interfaceorg.springframework.core.convert.converter.Converter<com.broadleafcommerce.common.dataimport.messaging.BatchRecord,Customer>
-
removeAndParseAttributes
protected Map<String,Object> removeAndParseAttributes(@NonNull @NonNull Map<String,String> row)
-
convertPhone
protected Phone convertPhone(com.broadleafcommerce.common.dataimport.messaging.BatchRecord source)
-
getMapper
protected com.fasterxml.jackson.databind.ObjectMapper getMapper()
-
getTypeFactory
protected com.broadleafcommerce.common.extension.TypeFactory getTypeFactory()
-
-