Package com.sap.hybris.c4c.customer.util
Class SapC4cCustomerUtils
java.lang.Object
com.sap.hybris.c4c.customer.util.SapC4cCustomerUtils
Utility Class for creating Data Transfer objects
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.hybris.platform.converters.PopulatorgetAddressWithEmail(String email) Returns C4CAddressData populated with given emailgetAdressListForCustomer(Collection<AddressModel> addressModels) Returns List of C4CAddressData for given list of addressModelde.hybris.platform.servicelayer.config.ConfigurationServicegetCustomerDataForCustomer(CustomerModel customerModel, Collection<AddressModel> addressModels) Returns C4CCustomerData for given customerModel and list of addressModelde.hybris.platform.converters.PopulatorvoidsetAddressPopulator(de.hybris.platform.converters.Populator addressPopulator) voidsetConfigurationService(de.hybris.platform.servicelayer.config.ConfigurationService configurationService) voidsetCustomerPopulator(de.hybris.platform.converters.Populator customerPopulator)
-
Constructor Details
-
SapC4cCustomerUtils
public SapC4cCustomerUtils()
-
-
Method Details
-
getCustomerDataForCustomer
public C4CCustomerData getCustomerDataForCustomer(CustomerModel customerModel, Collection<AddressModel> addressModels) Returns C4CCustomerData for given customerModel and list of addressModel- Parameters:
customerModel-addressModels-- Returns:
- c4cCustomerData
-
getAdressListForCustomer
Returns List of C4CAddressData for given list of addressModel- Parameters:
addressModels-- Returns:
- list of C4CAddressData
-
getAddressWithEmail
Returns C4CAddressData populated with given email- Parameters:
email-- Returns:
- C4CAddressData
-
getAddressPopulator
public de.hybris.platform.converters.Populator getAddressPopulator()- Returns:
- the addressPopulator
-
setAddressPopulator
public void setAddressPopulator(de.hybris.platform.converters.Populator addressPopulator) - Parameters:
addressPopulator- the addressPopulator 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
-
getCustomerPopulator
public de.hybris.platform.converters.Populator getCustomerPopulator()- Returns:
- the customerPopulator
-
setCustomerPopulator
public void setCustomerPopulator(de.hybris.platform.converters.Populator customerPopulator) - Parameters:
customerPopulator- the customerPopulator to set
-