Class CategoryCollectionBeforeViewHandler

java.lang.Object
com.hybris.yprofile.profiletagaddon.interceptors.beforeview.CategoryCollectionBeforeViewHandler
All Implemented Interfaces:
BeforeViewHandler

public class CategoryCollectionBeforeViewHandler extends Object implements BeforeViewHandler
Extends the BeforeViewHandler to include a list of category ids in the placeholder 'categoryIdList' whenever a product or a category is viewed so that affinity of the user can be incremented for multiple categories rather than just the immediate category being viewed.
  • Constructor Details

    • CategoryCollectionBeforeViewHandler

      public CategoryCollectionBeforeViewHandler()
  • Method Details

    • beforeView

      public void beforeView(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.servlet.ModelAndView modelAndView)
      Description copied from interface: BeforeViewHandler
      Called before the DispatcherServlet renders the view. Can expose additional model objects to the view via the given ModelAndView.
      Specified by:
      beforeView in interface BeforeViewHandler
      Parameters:
      request - current HTTP request
      response - current HTTP response
      modelAndView - the ModelAndView that the handler returned
    • setProductFacade

      public void setProductFacade(ProductFacade productFacade)
    • setCommerceCategoryService

      public void setCommerceCategoryService(CommerceCategoryService commerceCategoryService)