Class CustomerRegistrationEventListener
- java.lang.Object
-
- de.hybris.platform.servicelayer.event.impl.AbstractEventListener<RegisterEvent>
-
- com.sap.hybris.sapcustomerb2c.outbound.CustomerRegistrationEventListener
-
- All Implemented Interfaces:
java.util.EventListener,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<RegisterEvent>
public class CustomerRegistrationEventListener extends AbstractEventListener<RegisterEvent>
Catch the register event and start thesapCustomerPublishProcessbusiness process
-
-
Constructor Summary
Constructors Constructor Description CustomerRegistrationEventListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StoreFrontCustomerProcessModelcreateProcess()Create BusinessProcessServiceBaseStoreServicegetBaseStoreService()return Base store service instanceBusinessProcessServicegetBusinessProcessService()protected ModelServicegetModelService()SAPGlobalConfigurationServiceImplgetSapCoreSAPGlobalConfigurationService()return a SAPGlobalConfigurationServiceImpl instanceprotected voidonEvent(RegisterEvent registerEvent)start thesapCustomerPublishProcessbusiness processvoidsetBaseStoreService(BaseStoreService baseStoreService)Set Base Store Service instancevoidsetModelService(ModelService modelService)voidsetSapCoreSAPGlobalConfigurationService(SAPGlobalConfigurationServiceImpl sapCoreSAPGlobalConfigurationService)set the SAPGlobalConfigurationServiceImpl instance-
Methods inherited from class de.hybris.platform.servicelayer.event.impl.AbstractEventListener
afterPropertiesSet, onApplicationEvent, setApplicationContext, setClusterService, setTenantService
-
-
-
-
Method Detail
-
getBusinessProcessService
public BusinessProcessService getBusinessProcessService()
- Returns:
- businessProcessService
-
getModelService
protected ModelService getModelService()
- Returns:
- modelService
-
setModelService
public void setModelService(ModelService modelService)
- Parameters:
modelService-
-
onEvent
protected void onEvent(RegisterEvent registerEvent)
start thesapCustomerPublishProcessbusiness process- Specified by:
onEventin classAbstractEventListener<RegisterEvent>- Parameters:
registerEvent- the event to be processed- See Also:
ApplicationListener.onApplicationEvent(ApplicationEvent)
-
createProcess
protected StoreFrontCustomerProcessModel createProcess()
Create BusinessProcessService- Returns:
- StoreFrontCustomerProcessModel
-
getSapCoreSAPGlobalConfigurationService
public SAPGlobalConfigurationServiceImpl getSapCoreSAPGlobalConfigurationService()
return a SAPGlobalConfigurationServiceImpl instance- Returns:
- sapCoreSAPGlobalConfigurationService
-
setSapCoreSAPGlobalConfigurationService
public void setSapCoreSAPGlobalConfigurationService(SAPGlobalConfigurationServiceImpl sapCoreSAPGlobalConfigurationService)
set the SAPGlobalConfigurationServiceImpl instance- Parameters:
sapCoreSAPGlobalConfigurationService-
-
getBaseStoreService
public BaseStoreService getBaseStoreService()
return Base store service instance- Returns:
- baseStoreService
-
setBaseStoreService
public void setBaseStoreService(BaseStoreService baseStoreService)
Set Base Store Service instance- Parameters:
baseStoreService-
-
-