Class DefaultSapC4cAddressPopulator
java.lang.Object
com.sap.hybris.c4c.customer.populator.DefaultSapC4cAddressPopulator
- All Implemented Interfaces:
de.hybris.platform.converters.Populator<AddressModel,C4CAddressData>
public class DefaultSapC4cAddressPopulator
extends Object
implements de.hybris.platform.converters.Populator<AddressModel,C4CAddressData>
Populates C4CAddressData 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.ConfigurationServicevoidpopulate(AddressModel addressModel, C4CAddressData addressData) populateAddressUsageCodes(CustomerModel customerModel, AddressModel addressModel) Creates and populates address usage dataprotected C4CAddressPhoneDatapopulatePhoneNumber(String phoneNumber, Boolean mobileNumberIndicator, String usageCode) Creates and populates phone number dataprotected List<C4CAddressPhoneData>populatePhoneNumbers(AddressModel addressModel) Creates and populates phone number data listvoidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService)
-
Constructor Details
-
DefaultSapC4cAddressPopulator
public DefaultSapC4cAddressPopulator()
-
-
Method Details
-
populate
public void populate(AddressModel addressModel, C4CAddressData addressData) throws de.hybris.platform.servicelayer.dto.converter.ConversionException - Specified by:
populatein interfacede.hybris.platform.converters.Populator<AddressModel,C4CAddressData> - Throws:
de.hybris.platform.servicelayer.dto.converter.ConversionException
-
populateAddressUsageCodes
protected List<String> populateAddressUsageCodes(CustomerModel customerModel, AddressModel addressModel) Creates and populates address usage data -
populatePhoneNumbers
Creates and populates phone number data list -
getConfigurationProperty
Reads configuration from the properties file for given propertyKey -
populatePhoneNumber
protected C4CAddressPhoneData populatePhoneNumber(String phoneNumber, Boolean mobileNumberIndicator, String usageCode) Creates and populates phone number data -
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
-