Class SapC4cCustomerRegistrationEventListener
- java.lang.Object
-
- de.hybris.platform.servicelayer.event.impl.AbstractEventListener<RegisterEvent>
-
- com.sap.hybris.c4c.customer.listener.SapC4cCustomerRegistrationEventListener
-
- 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 SapC4cCustomerRegistrationEventListener extends AbstractEventListener<RegisterEvent>
Catch the register event and start thesapC4cCustomerRegisterProcessbusiness process
-
-
Constructor Summary
Constructors Constructor Description SapC4cCustomerRegistrationEventListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StoreFrontCustomerProcessModelcreateProcess()Creates business processBaseStoreServicegetBaseStoreService()BusinessProcessServicegetBusinessProcessService()ModelServicegetModelService()protected voidonEvent(RegisterEvent registerEvent)start thesapC4cCustomerRegisterProcessbusiness processvoidsetBaseStoreService(BaseStoreService baseStoreService)voidsetBusinessProcessService(BusinessProcessService businessProcessService)voidsetModelService(ModelService modelService)-
Methods inherited from class de.hybris.platform.servicelayer.event.impl.AbstractEventListener
afterPropertiesSet, onApplicationEvent, setApplicationContext, setClusterService, setTenantService
-
-
-
-
Method Detail
-
onEvent
protected void onEvent(RegisterEvent registerEvent)
start thesapC4cCustomerRegisterProcessbusiness process- Specified by:
onEventin classAbstractEventListener<RegisterEvent>- Parameters:
registerEvent- the event to be processed- See Also:
ApplicationListener.onApplicationEvent(ApplicationEvent)
-
createProcess
protected StoreFrontCustomerProcessModel createProcess()
Creates business process
-
getModelService
public ModelService getModelService()
- Returns:
- the modelService
-
setModelService
public void setModelService(ModelService modelService)
- Parameters:
modelService- the modelService to set
-
getBaseStoreService
public BaseStoreService getBaseStoreService()
- Returns:
- the baseStoreService
-
setBaseStoreService
public void setBaseStoreService(BaseStoreService baseStoreService)
- Parameters:
baseStoreService- the baseStoreService to set
-
getBusinessProcessService
public BusinessProcessService getBusinessProcessService()
- Returns:
- the businessProcessService
-
setBusinessProcessService
public void setBusinessProcessService(BusinessProcessService businessProcessService)
- Parameters:
businessProcessService- the businessProcessService to set
-
-