Class CustomerRegistrationEventListener
java.lang.Object
de.hybris.platform.servicelayer.event.impl.AbstractEventListener<de.hybris.platform.commerceservices.event.RegisterEvent>
com.sap.hybris.sapcustomerb2c.outbound.CustomerRegistrationEventListener
- All Implemented Interfaces:
EventListener,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<de.hybris.platform.commerceservices.event.RegisterEvent>
public class CustomerRegistrationEventListener
extends de.hybris.platform.servicelayer.event.impl.AbstractEventListener<de.hybris.platform.commerceservices.event.RegisterEvent>
Catch the register event and start the
sapCustomerPublishProcess business process-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StoreFrontCustomerProcessModelCreate BusinessProcessServicede.hybris.platform.store.services.BaseStoreServicereturn Base store service instancede.hybris.platform.processengine.BusinessProcessServiceprotected de.hybris.platform.servicelayer.model.ModelServicereturn a SAPGlobalConfigurationServiceImpl instanceprotected voidonEvent(de.hybris.platform.commerceservices.event.RegisterEvent registerEvent) start thesapCustomerPublishProcessbusiness processvoidsetBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService) Set Base Store Service instancevoidsetModelService(de.hybris.platform.servicelayer.model.ModelService modelService) voidsetSapCoreSAPGlobalConfigurationService(SAPGlobalConfigurationServiceImpl sapCoreSAPGlobalConfigurationService) set the SAPGlobalConfigurationServiceImpl instanceMethods inherited from class de.hybris.platform.servicelayer.event.impl.AbstractEventListener
afterPropertiesSet, onApplicationEvent, setApplicationContext, setClusterService, setTenantService
-
Constructor Details
-
CustomerRegistrationEventListener
public CustomerRegistrationEventListener()
-
-
Method Details
-
getBusinessProcessService
public de.hybris.platform.processengine.BusinessProcessService getBusinessProcessService()- Returns:
- businessProcessService
-
getModelService
protected de.hybris.platform.servicelayer.model.ModelService getModelService()- Returns:
- modelService
-
setModelService
public void setModelService(de.hybris.platform.servicelayer.model.ModelService modelService) - Parameters:
modelService-
-
onEvent
protected void onEvent(de.hybris.platform.commerceservices.event.RegisterEvent registerEvent) start thesapCustomerPublishProcessbusiness process- Specified by:
onEventin classde.hybris.platform.servicelayer.event.impl.AbstractEventListener<de.hybris.platform.commerceservices.event.RegisterEvent>
-
createProcess
Create BusinessProcessService- Returns:
- StoreFrontCustomerProcessModel
-
getSapCoreSAPGlobalConfigurationService
return a SAPGlobalConfigurationServiceImpl instance- Returns:
- sapCoreSAPGlobalConfigurationService
-
setSapCoreSAPGlobalConfigurationService
public void setSapCoreSAPGlobalConfigurationService(SAPGlobalConfigurationServiceImpl sapCoreSAPGlobalConfigurationService) set the SAPGlobalConfigurationServiceImpl instance- Parameters:
sapCoreSAPGlobalConfigurationService-
-
getBaseStoreService
public de.hybris.platform.store.services.BaseStoreService getBaseStoreService()return Base store service instance- Returns:
- baseStoreService
-
setBaseStoreService
public void setBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService) Set Base Store Service instance- Parameters:
baseStoreService-
-