Class DefaultPersonalizationHandler

  • All Implemented Interfaces:
    PersonalizationHandler

    public class DefaultPersonalizationHandler
    extends java.lang.Object
    implements PersonalizationHandler
    Default personalization handler dedicated for storefront. It activates personalization in session and run recalculation based on voters preferences
    • Constructor Detail

      • DefaultPersonalizationHandler

        public DefaultPersonalizationHandler()
    • Method Detail

      • handlePersonalization

        public void handlePersonalization​(javax.servlet.http.HttpServletRequest request,
                                          javax.servlet.http.HttpServletResponse response)
        Description copied from interface: PersonalizationHandler
        Method handle personalization for request. It can update, recalculate or load personalization results
        Specified by:
        handlePersonalization in interface PersonalizationHandler
        Parameters:
        request - Http request
        response - Http response
      • activatePersonalization

        protected void activatePersonalization()
      • executeVote

        protected void executeVote​(javax.servlet.http.HttpServletRequest request,
                                   javax.servlet.http.HttpServletResponse response)
      • getCombinedVote

        protected Vote getCombinedVote​(Vote finalVote,
                                       Vote vote)
      • getDefaultVote

        protected Vote getDefaultVote()
      • executeFinalVote

        protected void executeFinalVote​(Vote finalVote)
      • ignoreRecalculation

        protected boolean ignoreRecalculation​(Vote finalVote)
      • setVoters

        @Autowired(required=false)
        public void setVoters​(java.util.List<Voter> voters)
      • getVoters

        protected java.util.List<Voter> getVoters()
      • setSessionService

        public void setSessionService​(SessionService sessionService)
      • setCxRecalculationService

        public void setCxRecalculationService​(CxRecalculationService cxRecalculationService)