Class 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 Detail

      • CxAfterUserChangedListener

        public CxAfterUserChangedListener()
    • Method Detail

      • 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()