Class CustomerExportService

java.lang.Object
com.sap.hybris.sapcustomerb2c.outbound.CustomerExportService
Direct Known Subclasses:
SapCpiCustomerOutboundService

public class CustomerExportService extends Object
Class to prepare the customer data and send the data to the Data Hub
  • Constructor Details

    • CustomerExportService

      public CustomerExportService()
  • Method Details

    • getDataHubOutboundService

      public com.hybris.datahub.core.services.DataHubOutboundService getDataHubOutboundService()
      return Data Hub Outbound Service
      Returns:
      dataHubOutboundService
    • setDataHubOutboundService

      public void setDataHubOutboundService(com.hybris.datahub.core.services.DataHubOutboundService dataHubOutboundService)
      set Data Hub Outbound Service
      Parameters:
      dataHubOutboundService -
    • getBatchIdAttributes

      public Map<String,String> getBatchIdAttributes()
    • setBatchIdAttributes

      public void setBatchIdAttributes(Map<String,String> batchIdAttributes)
    • sendCustomerData

      public void sendCustomerData(CustomerModel customerModel, String baseStoreUid, String sessionLanguage)
      map customer Model to the target map, set session language and base store name, and send data to the Data Hub
      Parameters:
      customerModel - Customer model
      baseStoreUid - Base store UID
      sessionLanguage - Language of session
    • sendCustomerData

      public void sendCustomerData(CustomerModel customerModel, String baseStoreUid, String sessionLanguage, AddressModel addressModel)
      map customer Model and address Model to the target map, set session language and base store name, and send data to the Data Hub
      Parameters:
      customerModel - Customer model
      baseStoreUid - Base store UID
      sessionLanguage - Language of session
      addressModel - Address model
    • getTarget

      protected Map<String,Object> getTarget()
      Returns:
      new target instance
    • prepareCustomerData

      protected void prepareCustomerData(CustomerModel customerModel, String baseStoreUid, String sessionLanguage, Map<String,Object> target)
    • prepareAddressData

      protected void prepareAddressData(AddressModel addressModel, Map<String,Object> target)
    • prepareBatchIdAttributes

      protected void prepareBatchIdAttributes(CustomerModel customerModel, Map<String,Object> target)
    • sendCustomerToDataHub

      protected void sendCustomerToDataHub(Map<String,Object> target)
    • getFeed

      public String getFeed()
      return data hub feed
      Returns:
      feed
    • setFeed

      public void setFeed(String feed)
      set data hub feed (usually set via the local property file)
      Parameters:
      feed -
    • getCustomerNameStrategy

      public de.hybris.platform.commerceservices.strategies.CustomerNameStrategy getCustomerNameStrategy()
      Returns:
      customerNameStrategy
    • setCustomerNameStrategy

      public void setCustomerNameStrategy(de.hybris.platform.commerceservices.strategies.CustomerNameStrategy customerNameStrategy)
      Parameters:
      customerNameStrategy -
    • getSapCoreSAPGlobalConfigurationService

      public SAPGlobalConfigurationServiceImpl getSapCoreSAPGlobalConfigurationService()
    • setSapCoreSAPGlobalConfigurationService

      public void setSapCoreSAPGlobalConfigurationService(SAPGlobalConfigurationServiceImpl sapCoreSAPGlobalConfigurationService)
    • isCustomerReplicationEnabled

      public boolean isCustomerReplicationEnabled()
    • isClassCustomerModel

      public boolean isClassCustomerModel(Object o)
      State checker to test whether passed object is a valid CustomerModel
      Parameters:
      o - Object passed to check
      Returns:
      Whether or not the tests object is a customer model