Class CartRestorationBeforeViewHandler
- java.lang.Object
-
- de.hybris.platform.yacceleratorstorefront.interceptors.beforeview.CartRestorationBeforeViewHandler
-
- All Implemented Interfaces:
BeforeViewHandler
public class CartRestorationBeforeViewHandler extends java.lang.Object implements BeforeViewHandler
Handler to add cart restoration messages when appropriate
-
-
Constructor Summary
Constructors Constructor Description CartRestorationBeforeViewHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeView(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.servlet.ModelAndView modelAndView)Called before the DispatcherServlet renders the view.protected java.util.List<java.lang.String>getPagesToShowModifications()protected SessionServicegetSessionService()voidsetPagesToShowModifications(java.util.List<java.lang.String> pagesToShowModifications)voidsetSessionService(SessionService sessionService)protected java.lang.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
-
-
-
Method Detail
-
beforeView
public void beforeView(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.servlet.ModelAndView modelAndView) throws java.lang.ExceptionDescription 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:
java.lang.Exception- in case of errors
-
showModifications
protected java.lang.Boolean showModifications(javax.servlet.http.HttpServletRequest request)
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
protected SessionService getSessionService()
-
setSessionService
public void setSessionService(SessionService sessionService)
-
getPagesToShowModifications
protected java.util.List<java.lang.String> getPagesToShowModifications()
-
setPagesToShowModifications
public void setPagesToShowModifications(java.util.List<java.lang.String> pagesToShowModifications)
-
-