Class B2BCustomerExportService
- java.lang.Object
-
- com.sap.hybris.sapcustomerb2b.outbound.B2BCustomerExportService
-
- Direct Known Subclasses:
SapCpiB2BCustomerOutboundService
public class B2BCustomerExportService extends java.lang.ObjectClass to prepare the customer data and send the data to the Data Hub
-
-
Constructor Summary
Constructors Constructor Description B2BCustomerExportService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description B2BUnitService<B2BUnitModel,B2BCustomerModel>getB2bUnitService()BaseStoreServicegetBaseStoreService()java.util.Map<java.lang.String,java.lang.String>getBatchIdAttributes()CustomerNameStrategygetCustomerNameStrategy()DataHubOutboundServicegetDataHubOutboundService()return Data Hub Outbound Servicejava.lang.StringgetFeed()return data hub feedbooleanisB2BCustomerReplicationEnabled()protected voidprepareAddressData(AddressModel addressModel, java.util.Map<java.lang.String,java.lang.Object> target)voidprepareAndSend(B2BCustomerModel changedB2bCustomerModel, java.lang.String language)map B2B customer Model to the target map and send data to the Data Hubprotected java.util.HashMap<java.lang.String,java.lang.Object>prepareB2BCustomerData(B2BCustomerModel b2bCustomerModel, java.lang.String sessionLanguage)protected voidprepareBatchIdAttributes(B2BCustomerModel customerModel, java.util.Map<java.lang.String,java.lang.Object> target)protected voidsendRawItemsToDataHub(java.lang.String rawItemType, java.util.List<java.util.Map<java.lang.String,java.lang.Object>> rawData)voidsetB2bUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> b2bUnitService)set the B2B unit servicevoidsetBaseStoreService(BaseStoreService baseStoreService)voidsetBatchIdAttributes(java.util.Map<java.lang.String,java.lang.String> batchIdAttributes)voidsetCustomerNameStrategy(CustomerNameStrategy customerNameStrategy)voidsetDataHubOutboundService(DataHubOutboundService dataHubOutboundService)set Data Hub Outbound ServicevoidsetFeed(java.lang.String feed)set data hub feed (usually set via the local property file)
-
-
-
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 changedlanguage- 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-
-
getB2bUnitService
public B2BUnitService<B2BUnitModel,B2BCustomerModel> getB2bUnitService()
- Returns:
- B2BUnitService
-
setB2bUnitService
public void setB2bUnitService(B2BUnitService<B2BUnitModel,B2BCustomerModel> b2bUnitService)
set the B2B unit service- Parameters:
b2bUnitService-
-
getBaseStoreService
public BaseStoreService getBaseStoreService()
-
setBaseStoreService
public void setBaseStoreService(BaseStoreService baseStoreService)
-
isB2BCustomerReplicationEnabled
public boolean isB2BCustomerReplicationEnabled()
-
-