Class CartRestorationBeforeViewHandler
java.lang.Object
de.hybris.platform.yacceleratorstorefront.interceptors.beforeview.CartRestorationBeforeViewHandler
- All Implemented Interfaces:
BeforeViewHandler
Handler to add cart restoration messages when appropriate
-
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.protected SessionServicevoidsetPagesToShowModifications(List<String> pagesToShowModifications) voidsetSessionService(SessionService sessionService) protected BooleanshowModifications(javax.servlet.http.HttpServletRequest request) Decide whether or not the modifications related to the cart restoration or merge should be displayed in the notifications
-
Constructor Details
-
CartRestorationBeforeViewHandler
public CartRestorationBeforeViewHandler()
-
-
Method Details
-
beforeView
public void beforeView(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.servlet.ModelAndView modelAndView) throws Exception 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- Throws:
Exception- in case of errors
-
showModifications
Decide whether or not the modifications related to the cart restoration or merge should be displayed in the notifications- Parameters:
request-- Returns:
- whether or not to display the modifications
-
getSessionService
-
setSessionService
-
getPagesToShowModifications
-
setPagesToShowModifications
-