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 DataHubOutboundService getDataHubOutboundService()
        return Data Hub Outbound Service
        Returns:
        dataHubOutboundService
      • setDataHubOutboundService

        public void setDataHubOutboundService​(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 CustomerNameStrategy getCustomerNameStrategy()
        Returns:
        customerNameStrategy
      • setCustomerNameStrategy

        public void setCustomerNameStrategy​(CustomerNameStrategy customerNameStrategy)
        Parameters:
        customerNameStrategy -
      • setBaseStoreService

        public void setBaseStoreService​(BaseStoreService baseStoreService)
      • isB2BCustomerReplicationEnabled

        public boolean isB2BCustomerReplicationEnabled()