Class CxAfterUserChangedListener
- java.lang.Object
-
- de.hybris.platform.personalizationservices.events.CxAfterUserChangedListener
-
- All Implemented Interfaces:
java.util.EventListener,org.springframework.context.ApplicationListener<AfterSessionUserChangeEvent>
public class CxAfterUserChangedListener extends java.lang.Object implements org.springframework.context.ApplicationListener<AfterSessionUserChangeEvent>
-
-
Constructor Summary
Constructors Constructor Description CxAfterUserChangedListener()
-
Method Summary
-
-
-
Method Detail
-
onApplicationEvent
public void onApplicationEvent(AfterSessionUserChangeEvent event)
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<AfterSessionUserChangeEvent>
-
getUserChangedActions
protected java.util.List<RecalculateAction> getUserChangedActions()
-
actionExist
protected boolean actionExist(java.lang.String actionName)
-
isValidChange
protected boolean isValidChange(UserModel user, AfterSessionUserChangeEvent event)
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
protected boolean isEvaluationInProgress(UserModel user)
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
public void setUserService(UserService userService)
-
setSessionService
public void setSessionService(SessionService sessionService)
-
setCxRecalculationService
public void setCxRecalculationService(CxRecalculationService cxRecalculationService)
-
setCxConfigurationService
public void setCxConfigurationService(CxConfigurationService cxConfigurationService)
-
getUserService
protected UserService getUserService()
-
getSessionService
protected SessionService getSessionService()
-
getCxConfigurationService
protected CxConfigurationService getCxConfigurationService()
-
getCxRecalculationService
protected CxRecalculationService getCxRecalculationService()
-
getCxUserSegmentSessionService
protected CxUserSegmentSessionService getCxUserSegmentSessionService()
-
setCxUserSegmentSessionService
public void setCxUserSegmentSessionService(CxUserSegmentSessionService cxSegmentSessionService)
-
-