Class B2BCustomerExportService

  • Direct Known Subclasses:
    SapCpiB2BCustomerOutboundService

    public class B2BCustomerExportService
    extends java.lang.Object
    Class to prepare the customer data and send the data to the Data Hub
    • Constructor Detail

      • B2BCustomerExportService

        public B2BCustomerExportService()
    • Method Detail

      • 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 java.util.Map<java.lang.String,​java.lang.String> getBatchIdAttributes()
      • setBatchIdAttributes

        public void setBatchIdAttributes​(java.util.Map<java.lang.String,​java.lang.String> batchIdAttributes)
      • prepareAddressData

        protected void prepareAddressData​(AddressModel addressModel,
                                          java.util.Map<java.lang.String,​java.lang.Object> target)
      • prepareAndSend

        public void prepareAndSend​(B2BCustomerModel changedB2bCustomerModel,
                                   java.lang.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​(java.lang.String rawItemType,
                                             java.util.List<java.util.Map<java.lang.String,​java.lang.Object>> rawData)
      • prepareB2BCustomerData

        protected java.util.HashMap<java.lang.String,​java.lang.Object> prepareB2BCustomerData​(B2BCustomerModel b2bCustomerModel,
                                                                                                    java.lang.String sessionLanguage)
      • prepareBatchIdAttributes

        protected void prepareBatchIdAttributes​(B2BCustomerModel customerModel,
                                                java.util.Map<java.lang.String,​java.lang.Object> target)
      • getFeed

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

        public void setFeed​(java.lang.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()