Class CustomerExportService
- java.lang.Object
-
- com.sap.hybris.sapcustomerb2c.outbound.CustomerExportService
-
- Direct Known Subclasses:
SapCpiCustomerOutboundService
public class CustomerExportService extends java.lang.ObjectClass to prepare the customer data and send the data to the Data Hub
-
-
Constructor Summary
Constructors Constructor Description CustomerExportService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>getBatchIdAttributes()CustomerNameStrategygetCustomerNameStrategy()DataHubOutboundServicegetDataHubOutboundService()return Data Hub Outbound Servicejava.lang.StringgetFeed()return data hub feedSAPGlobalConfigurationServiceImplgetSapCoreSAPGlobalConfigurationService()protected java.util.Map<java.lang.String,java.lang.Object>getTarget()booleanisClassCustomerModel(java.lang.Object o)State checker to test whether passed object is a valid CustomerModelbooleanisCustomerReplicationEnabled()protected voidprepareAddressData(AddressModel addressModel, java.util.Map<java.lang.String,java.lang.Object> target)protected voidprepareBatchIdAttributes(CustomerModel customerModel, java.util.Map<java.lang.String,java.lang.Object> target)protected voidprepareCustomerData(CustomerModel customerModel, java.lang.String baseStoreUid, java.lang.String sessionLanguage, java.util.Map<java.lang.String,java.lang.Object> target)voidsendCustomerData(CustomerModel customerModel, java.lang.String baseStoreUid, java.lang.String sessionLanguage)map customer Model to the target map, set session language and base store name, and send data to the Data HubvoidsendCustomerData(CustomerModel customerModel, java.lang.String baseStoreUid, java.lang.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 Hubprotected voidsendCustomerToDataHub(java.util.Map<java.lang.String,java.lang.Object> target)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)voidsetSapCoreSAPGlobalConfigurationService(SAPGlobalConfigurationServiceImpl sapCoreSAPGlobalConfigurationService)
-
-
-
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)
-
sendCustomerData
public void sendCustomerData(CustomerModel customerModel, java.lang.String baseStoreUid, java.lang.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 modelbaseStoreUid- Base store UIDsessionLanguage- Language of session
-
sendCustomerData
public void sendCustomerData(CustomerModel customerModel, java.lang.String baseStoreUid, java.lang.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 modelbaseStoreUid- Base store UIDsessionLanguage- Language of sessionaddressModel- Address model
-
getTarget
protected java.util.Map<java.lang.String,java.lang.Object> getTarget()
- Returns:
- new target instance
-
prepareCustomerData
protected void prepareCustomerData(CustomerModel customerModel, java.lang.String baseStoreUid, java.lang.String sessionLanguage, java.util.Map<java.lang.String,java.lang.Object> target)
-
prepareAddressData
protected void prepareAddressData(AddressModel addressModel, java.util.Map<java.lang.String,java.lang.Object> target)
-
prepareBatchIdAttributes
protected void prepareBatchIdAttributes(CustomerModel customerModel, java.util.Map<java.lang.String,java.lang.Object> target)
-
sendCustomerToDataHub
protected void sendCustomerToDataHub(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-
-
getSapCoreSAPGlobalConfigurationService
public SAPGlobalConfigurationServiceImpl getSapCoreSAPGlobalConfigurationService()
-
setSapCoreSAPGlobalConfigurationService
public void setSapCoreSAPGlobalConfigurationService(SAPGlobalConfigurationServiceImpl sapCoreSAPGlobalConfigurationService)
-
isCustomerReplicationEnabled
public boolean isCustomerReplicationEnabled()
-
isClassCustomerModel
public boolean isClassCustomerModel(java.lang.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
-
-