Class B2BCustomerRegistrationEventListener
- java.lang.Object
-
- de.hybris.platform.servicelayer.event.impl.AbstractEventListener<B2BRegistrationEvent>
-
- com.sap.hybris.sapcustomerb2b.outbound.B2BCustomerRegistrationEventListener
-
- All Implemented Interfaces:
java.util.EventListener,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<B2BRegistrationEvent>
public class B2BCustomerRegistrationEventListener extends AbstractEventListener<B2BRegistrationEvent>
Catch the register event and start thesapCustomerPublishProcessbusiness process
-
-
Constructor Summary
Constructors Constructor Description B2BCustomerRegistrationEventListener()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StoreFrontCustomerProcessModelcreateProcess()Create BusinessProcessServiceB2BCustomerExportServicegetB2bCustomerExportService()BusinessProcessServicegetBusinessProcessService()protected ModelServicegetModelService()PersistentKeyGeneratorgetSapContactIdGenerator()DefaultStoreSessionFacadegetStoreSessionFacade()protected voidonEvent(B2BRegistrationEvent registerEvent)start thesapCustomerPublishProcessbusiness processvoidsetB2bCustomerExportService(B2BCustomerExportService b2bCustomerExportService)voidsetModelService(ModelService modelService)voidsetSapContactIdGenerator(PersistentKeyGenerator sapContactIdGenerator)voidsetStoreSessionFacade(DefaultStoreSessionFacade storeSessionFacade)-
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(B2BRegistrationEvent registerEvent)
start thesapCustomerPublishProcessbusiness process- Specified by:
onEventin classAbstractEventListener<B2BRegistrationEvent>- Parameters:
registerEvent- the event to be processed- See Also:
ApplicationListener.onApplicationEvent(ApplicationEvent)
-
createProcess
protected StoreFrontCustomerProcessModel createProcess()
Create BusinessProcessService- Returns:
- StoreFrontCustomerProcessModel
-
getStoreSessionFacade
public DefaultStoreSessionFacade getStoreSessionFacade()
-
setStoreSessionFacade
public void setStoreSessionFacade(DefaultStoreSessionFacade storeSessionFacade)
-
getSapContactIdGenerator
public PersistentKeyGenerator getSapContactIdGenerator()
-
setSapContactIdGenerator
public void setSapContactIdGenerator(PersistentKeyGenerator sapContactIdGenerator)
-
getB2bCustomerExportService
public B2BCustomerExportService getB2bCustomerExportService()
-
setB2bCustomerExportService
public void setB2bCustomerExportService(B2BCustomerExportService b2bCustomerExportService)
-
-