Class DefaultSapC4cCustomerPopulator
- java.lang.Object
-
- com.sap.hybris.c4c.customer.populator.DefaultSapC4cCustomerPopulator
-
- All Implemented Interfaces:
Populator<CustomerModel,C4CCustomerData>
public class DefaultSapC4cCustomerPopulator extends java.lang.Object implements Populator<CustomerModel,C4CCustomerData>
Populates C4CCustomerData DTO
-
-
Constructor Summary
Constructors Constructor Description DefaultSapC4cCustomerPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetConfigurationProperty(java.lang.String propertyKey)Reads configuration from the properties file for given propertyKeyConfigurationServicegetConfigurationService()CustomerNameStrategygetCustomerNameStrategy()voidpopulate(CustomerModel customerModel, C4CCustomerData customerData)Populate the target instance with values from the source instance.protected C4CHeaderDatapopulateHeaderData()Creates and populate header datavoidsetConfigurationService(ConfigurationService configurationService)voidsetCustomerNameStrategy(CustomerNameStrategy customerNameStrategy)
-
-
-
Method Detail
-
populate
public void populate(CustomerModel customerModel, C4CCustomerData customerData) throws ConversionException
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<CustomerModel,C4CCustomerData>- Parameters:
customerModel- the source objectcustomerData- the target to fill- Throws:
ConversionException- if an error occurs
-
populateHeaderData
protected C4CHeaderData populateHeaderData()
Creates and populate header data
-
getConfigurationProperty
protected java.lang.String getConfigurationProperty(java.lang.String propertyKey)
Reads configuration from the properties file for given propertyKey
-
getCustomerNameStrategy
public CustomerNameStrategy getCustomerNameStrategy()
- Returns:
- the customerNameStrategy
-
setCustomerNameStrategy
public void setCustomerNameStrategy(CustomerNameStrategy customerNameStrategy)
- Parameters:
customerNameStrategy- the customerNameStrategy to set
-
getConfigurationService
public ConfigurationService getConfigurationService()
- Returns:
- the configurationService
-
setConfigurationService
public void setConfigurationService(ConfigurationService configurationService)
- Parameters:
configurationService- the configurationService to set
-
-