Class B2BCustomerExportService

java.lang.Object
com.sap.hybris.sapcustomerb2b.outbound.B2BCustomerExportService
Direct Known Subclasses:
SapCpiB2BCustomerOutboundService

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

    • B2BCustomerExportService

      public B2BCustomerExportService()
  • 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)
    • prepareAddressData

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

      public void prepareAndSend(B2BCustomerModel changedB2bCustomerModel, String language)
      map B2B customer Model to the target map and send data to the Data Hub
      Parameters:
      changedB2bCustomerModel - B2BCustomerModel that was changed
      language - Language
    • sendRawItemsToDataHub

      protected void sendRawItemsToDataHub(String rawItemType, List<Map<String,Object>> rawData)
    • prepareB2BCustomerData

      protected HashMap<String,Object> prepareB2BCustomerData(B2BCustomerModel b2bCustomerModel, String sessionLanguage)
    • prepareBatchIdAttributes

      protected void prepareBatchIdAttributes(B2BCustomerModel customerModel, 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 -
    • getB2bUnitService

      public de.hybris.platform.b2b.services.B2BUnitService<B2BUnitModel,B2BCustomerModel> getB2bUnitService()
      Returns:
      B2BUnitService
    • setB2bUnitService

      public void setB2bUnitService(de.hybris.platform.b2b.services.B2BUnitService<B2BUnitModel,B2BCustomerModel> b2bUnitService)
      set the B2B unit service
      Parameters:
      b2bUnitService -
    • getBaseStoreService

      public de.hybris.platform.store.services.BaseStoreService getBaseStoreService()
    • setBaseStoreService

      public void setBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService)
    • isB2BCustomerReplicationEnabled

      public boolean isB2BCustomerReplicationEnabled()
    • getCustomerAddressReplicationUtilityService

      protected CustomerAddressReplicationUtilityService getCustomerAddressReplicationUtilityService()
    • setCustomerAddressReplicationUtilityService

      public void setCustomerAddressReplicationUtilityService(CustomerAddressReplicationUtilityService customerAddressReplicationUtilityService)