Class CategoryCollectionBeforeViewHandler
java.lang.Object
com.hybris.yprofile.profiletagaddon.interceptors.beforeview.CategoryCollectionBeforeViewHandler
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbeforeView(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.servlet.ModelAndView modelAndView) Called before the DispatcherServlet renders the view.voidsetCommerceCategoryService(CommerceCategoryService commerceCategoryService) voidsetProductFacade(ProductFacade productFacade)
-
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:BeforeViewHandlerCalled before the DispatcherServlet renders the view. Can expose additional model objects to the view via the given ModelAndView.- Specified by:
beforeViewin interfaceBeforeViewHandler- Parameters:
request- current HTTP requestresponse- current HTTP responsemodelAndView- theModelAndViewthat the handler returned
-
setProductFacade
-
setCommerceCategoryService
-