Class SECOrderPopulator
- java.lang.Object
-
- com.sap.hybris.sec.eventpublisher.populator.SECOrderPopulator
-
- All Implemented Interfaces:
Populator<OrderModel,OrderIndex>
public class SECOrderPopulator extends java.lang.Object implements Populator<OrderModel,OrderIndex>
-
-
Constructor Summary
Constructors Constructor Description SECOrderPopulator()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static java.lang.String
dateFormatter(java.util.Date date, java.lang.String formatterType)
ConfigurationService
getConfigurationService()
CustomerNameStrategy
getCustomerNameStrategy()
void
populate(OrderModel source, OrderIndex target)
Populate the target instance with values from the source instance.protected void
populateIndexOrder(OrderModel orderModel, java.util.Map<java.lang.String,java.lang.String> indexOrderData, CustomerModel customerModel)
protected void
populateOrderFields(OrderModel orderModel, OrderIndex orderJson)
void
setConfigurationService(ConfigurationService configurationService)
void
setCustomerNameStrategy(CustomerNameStrategy customerNameStrategy)
-
-
-
Method Detail
-
populate
public void populate(OrderModel source, OrderIndex target) throws ConversionException
Description copied from interface:Populator
Populate the target instance with values from the source instance.- Specified by:
populate
in interfacePopulator<OrderModel,OrderIndex>
- Parameters:
source
- the source objecttarget
- the target to fill- Throws:
ConversionException
- if an error occurs
-
populateOrderFields
protected void populateOrderFields(OrderModel orderModel, OrderIndex orderJson)
-
populateIndexOrder
protected void populateIndexOrder(OrderModel orderModel, java.util.Map<java.lang.String,java.lang.String> indexOrderData, CustomerModel customerModel)
-
dateFormatter
protected static java.lang.String dateFormatter(java.util.Date date, java.lang.String formatterType)
-
getConfigurationService
public ConfigurationService getConfigurationService()
- Returns:
- the configurationService
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
- Parameters:
configurationService
- the configurationService to set
-
getCustomerNameStrategy
public CustomerNameStrategy getCustomerNameStrategy()
- Returns:
- the customerNameStrategy
-
setCustomerNameStrategy
public void setCustomerNameStrategy(CustomerNameStrategy customerNameStrategy)
- Parameters:
customerNameStrategy
- the customerNameStrategy to set
-
-