Class CxBeforeSessionCloseListener
java.lang.Object
de.hybris.platform.servicelayer.event.impl.AbstractEventListener<BeforeSessionCloseEvent>
de.hybris.platform.personalizationservices.events.CxBeforeSessionCloseListener
- All Implemented Interfaces:
EventListener,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<BeforeSessionCloseEvent>
Listener for close session event.It schedules task related to personalization, which should be done when session is
closed
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectcreateContextForAnonymousUser(String sessionKey) protected Objectprotected Stringprotected BaseSiteServiceprotected CxConfigurationServiceprotected CxUserSegmentSessionServiceprotected DefaultSessionTokenServiceprotected ModelServiceprotected Stringprotected TaskServiceprotected UserServiceprotected booleanisPersonalizationActive(JaloSession session) protected voidonEvent(BeforeSessionCloseEvent event) This method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.protected voidscheduleTaskForAnonymousUser(String sessionKey) protected voidvoidsetAnonymousUserTaskRunnerName(String anonymousUserTaskRunnerName) voidsetBaseSiteService(BaseSiteService baseSiteService) voidsetCxConfigurationService(CxConfigurationService cxConfigurationService) voidsetCxUserSegmentSessionService(CxUserSegmentSessionService cxUserSegmentSessionService) voidsetDefaultSessionTokenService(DefaultSessionTokenService defaultSessionTokenService) voidsetModelService(ModelService modelService) voidsetRegisteredUserTaskRunnerName(String registeredUserTaskRunnerName) voidsetTaskService(TaskService taskService) voidsetUserService(UserService userService) Methods inherited from class de.hybris.platform.servicelayer.event.impl.AbstractEventListener
afterPropertiesSet, onApplicationEvent, setApplicationContext, setClusterService, setTenantService
-
Constructor Details
-
CxBeforeSessionCloseListener
public CxBeforeSessionCloseListener()
-
-
Method Details
-
onEvent
Description copied from class:AbstractEventListenerThis method is called byApplicationListener.onApplicationEvent(ApplicationEvent)and processes the given event.- Specified by:
onEventin classAbstractEventListener<BeforeSessionCloseEvent>- Parameters:
event- the event to be processed- See Also:
-
ApplicationListener.onApplicationEvent(ApplicationEvent)
-
isPersonalizationActive
-
scheduleTaskForAnonymousUser
-
createContextForAnonymousUser
-
scheduleTaskForRegisteredUser
-
createContextForRegisteredUser
-
getModelService
-
setModelService
-
getTaskService
-
setTaskService
-
getAnonymousUserTaskRunnerName
-
setAnonymousUserTaskRunnerName
-
getUserService
-
setUserService
-
getDefaultSessionTokenService
-
setDefaultSessionTokenService
-
getRegisteredUserTaskRunnerName
-
setRegisteredUserTaskRunnerName
-
getCxConfigurationService
-
setCxConfigurationService
-
getCxUserSegmentSessionService
-
setCxUserSegmentSessionService
-
getBaseSiteService
-
setBaseSiteService
-