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 Details

    • CxAfterUserChangedListener

      public CxAfterUserChangedListener()
  • Method Details

    • onApplicationEvent

      public void onApplicationEvent(AfterSessionUserChangeEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<AfterSessionUserChangeEvent>
    • getUserChangedActions

      protected List<RecalculateAction> getUserChangedActions()
    • actionExist

      protected boolean actionExist(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)