Class DefaultSapC4cCustomerPopulator
java.lang.Object
com.sap.hybris.c4c.customer.populator.DefaultSapC4cCustomerPopulator
- All Implemented Interfaces:
de.hybris.platform.converters.Populator<CustomerModel,C4CCustomerData>
public class DefaultSapC4cCustomerPopulator
extends Object
implements de.hybris.platform.converters.Populator<CustomerModel,C4CCustomerData>
Populates C4CCustomerData DTO
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetConfigurationProperty(String propertyKey) Reads configuration from the properties file for given propertyKeyde.hybris.platform.servicelayer.config.ConfigurationServicede.hybris.platform.commerceservices.strategies.CustomerNameStrategyvoidpopulate(CustomerModel customerModel, C4CCustomerData customerData) protected C4CHeaderDataCreates and populate header datavoidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) voidsetCustomerNameStrategy(de.hybris.platform.commerceservices.strategies.CustomerNameStrategy customerNameStrategy)
-
Constructor Details
-
DefaultSapC4cCustomerPopulator
public DefaultSapC4cCustomerPopulator()
-
-
Method Details
-
populate
public void populate(CustomerModel customerModel, C4CCustomerData customerData) throws de.hybris.platform.servicelayer.dto.converter.ConversionException - Specified by:
populatein interfacede.hybris.platform.converters.Populator<CustomerModel,C4CCustomerData> - Throws:
de.hybris.platform.servicelayer.dto.converter.ConversionException
-
populateHeaderData
Creates and populate header data -
getConfigurationProperty
Reads configuration from the properties file for given propertyKey -
getCustomerNameStrategy
public de.hybris.platform.commerceservices.strategies.CustomerNameStrategy getCustomerNameStrategy()- Returns:
- the customerNameStrategy
-
setCustomerNameStrategy
public void setCustomerNameStrategy(de.hybris.platform.commerceservices.strategies.CustomerNameStrategy customerNameStrategy) - Parameters:
customerNameStrategy- the customerNameStrategy to set
-
getConfigurationService
public de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()- Returns:
- the configurationService
-
setConfigurationService
public void setConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) - Parameters:
configurationService- the configurationService to set
-