Class CustomerExportService
java.lang.Object
com.sap.hybris.sapcustomerb2c.outbound.CustomerExportService
- Direct Known Subclasses:
SapCpiCustomerOutboundService
Class to prepare the customer data and send the data to the Data Hub
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionde.hybris.platform.commerceservices.strategies.CustomerNameStrategycom.hybris.datahub.core.services.DataHubOutboundServicereturn Data Hub Outbound ServicegetFeed()return data hub feedbooleanState checker to test whether passed object is a valid CustomerModelbooleanprotected voidprepareAddressData(AddressModel addressModel, Map<String, Object> target) protected voidprepareBatchIdAttributes(CustomerModel customerModel, Map<String, Object> target) protected voidprepareCustomerData(CustomerModel customerModel, String baseStoreUid, String sessionLanguage, Map<String, Object> target) voidsendCustomerData(CustomerModel customerModel, String baseStoreUid, 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, String baseStoreUid, 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(Map<String, Object> target) voidsetBatchIdAttributes(Map<String, String> batchIdAttributes) voidsetCustomerNameStrategy(de.hybris.platform.commerceservices.strategies.CustomerNameStrategy customerNameStrategy) voidsetDataHubOutboundService(com.hybris.datahub.core.services.DataHubOutboundService dataHubOutboundService) set Data Hub Outbound Servicevoidset data hub feed (usually set via the local property file)voidsetSapCoreSAPGlobalConfigurationService(SAPGlobalConfigurationServiceImpl sapCoreSAPGlobalConfigurationService)
-
Constructor Details
-
CustomerExportService
public CustomerExportService()
-
-
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
-
setBatchIdAttributes
-
sendCustomerData
public void sendCustomerData(CustomerModel customerModel, String baseStoreUid, 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, String baseStoreUid, 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
- Returns:
- new target instance
-
prepareCustomerData
-
prepareAddressData
-
prepareBatchIdAttributes
-
sendCustomerToDataHub
-
getFeed
return data hub feed- Returns:
- feed
-
setFeed
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-
-
getSapCoreSAPGlobalConfigurationService
-
setSapCoreSAPGlobalConfigurationService
public void setSapCoreSAPGlobalConfigurationService(SAPGlobalConfigurationServiceImpl sapCoreSAPGlobalConfigurationService) -
isCustomerReplicationEnabled
public boolean isCustomerReplicationEnabled() -
isClassCustomerModel
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
-