Class DefaultPersonalizationHandler

java.lang.Object
de.hybris.platform.personalizationservices.handlers.impl.DefaultPersonalizationHandler
All Implemented Interfaces:
PersonalizationHandler

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

    • DefaultPersonalizationHandler

      public DefaultPersonalizationHandler()
  • Method Details

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

      protected List<RecalculateAction> createRecalculateActionList(Set<RecalculateAction> recalculateActionSet)
    • filterActions

      protected Set<RecalculateAction> filterActions(Vote finalVote)
    • actionWithoutConsent

      protected boolean actionWithoutConsent(RecalculateAction action)
    • setVoters

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

      protected List<Voter> getVoters()
    • setSessionService

      public void setSessionService(SessionService sessionService)
    • getSessionService

      protected SessionService getSessionService()
    • setCxRecalculationService

      public void setCxRecalculationService(CxRecalculationService cxRecalculationService)
    • getCxRecalculationService

      protected CxRecalculationService getCxRecalculationService()
    • setCxConsentService

      public void setCxConsentService(CxConsentService cxConsentService)
    • getCxConsentService

      protected CxConsentService getCxConsentService()