Class CxAfterUserChangedListener
java.lang.Object
de.hybris.platform.personalizationservices.events.CxAfterUserChangedListener
- All Implemented Interfaces:
EventListener,org.springframework.context.ApplicationListener<AfterSessionUserChangeEvent>
public class CxAfterUserChangedListener
extends Object
implements org.springframework.context.ApplicationListener<AfterSessionUserChangeEvent>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanactionExist(String actionName) protected CxConfigurationServiceprotected CxRecalculationServiceprotected CxUserSegmentSessionServiceprotected SessionServiceprotected List<RecalculateAction>protected UserServiceprotected booleanChecks if evaluation of experience for user is in progress.protected booleanisValidChange(UserModel user, AfterSessionUserChangeEvent event) Defines if event is valid and calculation of experience should be startedvoidvoidsetCxConfigurationService(CxConfigurationService cxConfigurationService) voidsetCxRecalculationService(CxRecalculationService cxRecalculationService) voidsetCxUserSegmentSessionService(CxUserSegmentSessionService cxSegmentSessionService) voidsetSessionService(SessionService sessionService) voidsetUserService(UserService userService)
-
Constructor Details
-
CxAfterUserChangedListener
public CxAfterUserChangedListener()
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<AfterSessionUserChangeEvent>
-
getUserChangedActions
-
actionExist
-
isValidChange
Defines if event is valid and calculation of experience should be started- Parameters:
event- to be validated- Returns:
- true, if the event is valid
-
isEvaluationInProgress
Checks if evaluation of experience for user is in progress. Should return true if there is no known evaluation and new one should be started.- Parameters:
user- for experience evaluation- Returns:
- true if new evaluation should be started
-
setUserService
-
setSessionService
-
setCxRecalculationService
-
setCxConfigurationService
-
getUserService
-
getSessionService
-
getCxConfigurationService
-
getCxRecalculationService
-
getCxUserSegmentSessionService
-
setCxUserSegmentSessionService
-