Class DefaultOdmCustomerPopulator
java.lang.Object
com.sap.sapodmservices.customer.populator.DefaultOdmCustomerPopulator
- All Implemented Interfaces:
de.hybris.platform.converters.Populator<CustomerModel,SapOdmCustomerData>
public class DefaultOdmCustomerPopulator
extends Object
implements de.hybris.platform.converters.Populator<CustomerModel,SapOdmCustomerData>
DefaultOdmCustomerPopulator is used to populate Customer fields such as Address, Name etc into the SapOdmCustomerData such that this will be used in payload while ingesting to CDP
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringfetchUTCDateTime(Date date) voidpopulate(CustomerModel source, SapOdmCustomerData target) protected voidpopulateAddressData(CustomerModel source, SapOdmCustomerData target) This method is used to populate Customer Address within the instanceprotected voidpopulateInstance(CustomerModel source, SapOdmCustomerData target) This method is used to populate BusinessPartnerGroup, Roles and BusinessPartnerType within the instanceprotected voidpopulateInstanceId(CustomerModel source, SapOdmCustomerData target) This method populates ODM Instance Id with Customer Bupa IDprotected voidpopulateLocalIds(CustomerModel source, SapOdmCustomerData target) This method is used to populate local id's for a Customer from SapExternalIdprotected voidpopulatePersonData(CustomerModel source, SapOdmCustomerData target) This method is used to populate Customer data within the instancevoidsetDefaultSapExternalIdDao(DefaultSapExternalIdDao defaultSapExternalIdDao) protected SapOdmObjectCodeupdateCode(String code) protected SapOdmObjectNameupdateName(String name)
-
Constructor Details
-
DefaultOdmCustomerPopulator
public DefaultOdmCustomerPopulator()
-
-
Method Details
-
populate
public void populate(CustomerModel source, SapOdmCustomerData target) throws de.hybris.platform.servicelayer.dto.converter.ConversionException - Specified by:
populatein interfacede.hybris.platform.converters.Populator<CustomerModel,SapOdmCustomerData> - Throws:
de.hybris.platform.servicelayer.dto.converter.ConversionException
-
populateInstance
This method is used to populate BusinessPartnerGroup, Roles and BusinessPartnerType within the instance
-
populatePersonData
This method is used to populate Customer data within the instance
-
populateAddressData
This method is used to populate Customer Address within the instance
-
populateLocalIds
This method is used to populate local id's for a Customer from SapExternalId
-
populateInstanceId
This method populates ODM Instance Id with Customer Bupa ID
-
fetchUTCDateTime
-
updateCode
-
updateName
-
getDefaultSapExternalIdDao
-
setDefaultSapExternalIdDao
-