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 Details

    • DefaultOdmCustomerPopulator

      public DefaultOdmCustomerPopulator()
  • Method Details

    • populate

      public void populate(CustomerModel source, SapOdmCustomerData target) throws de.hybris.platform.servicelayer.dto.converter.ConversionException
      Specified by:
      populate in interface de.hybris.platform.converters.Populator<CustomerModel,SapOdmCustomerData>
      Throws:
      de.hybris.platform.servicelayer.dto.converter.ConversionException
    • populateInstance

      protected void populateInstance(CustomerModel source, SapOdmCustomerData target)

      This method is used to populate BusinessPartnerGroup, Roles and BusinessPartnerType within the instance

    • populatePersonData

      protected void populatePersonData(CustomerModel source, SapOdmCustomerData target)

      This method is used to populate Customer data within the instance

    • populateAddressData

      protected void populateAddressData(CustomerModel source, SapOdmCustomerData target)

      This method is used to populate Customer Address within the instance

    • populateLocalIds

      protected void populateLocalIds(CustomerModel source, SapOdmCustomerData target)

      This method is used to populate local id's for a Customer from SapExternalId

    • populateInstanceId

      protected void populateInstanceId(CustomerModel source, SapOdmCustomerData target)

      This method populates ODM Instance Id with Customer Bupa ID

    • fetchUTCDateTime

      protected String fetchUTCDateTime(Date date)
    • updateCode

      protected SapOdmObjectCode updateCode(String code)
    • updateName

      protected SapOdmObjectName updateName(String name)
    • getDefaultSapExternalIdDao

      public DefaultSapExternalIdDao getDefaultSapExternalIdDao()
    • setDefaultSapExternalIdDao

      public void setDefaultSapExternalIdDao(DefaultSapExternalIdDao defaultSapExternalIdDao)