Class HybrisMerchandisingBeforeViewHandlerAdaptee

    • Field Detail

      • ACTIONS

        protected static final java.lang.String[] ACTIONS
    • Constructor Detail

      • HybrisMerchandisingBeforeViewHandlerAdaptee

        public HybrisMerchandisingBeforeViewHandlerAdaptee()
    • Method Detail

      • beforeView

        public java.lang.String beforeView​(javax.servlet.http.HttpServletRequest request,
                                           javax.servlet.http.HttpServletResponse response,
                                           org.springframework.ui.ModelMap model,
                                           java.lang.String viewName)
                                    throws java.lang.Exception
        Specified by:
        beforeView in interface BeforeViewHandlerAdaptee
        Throws:
        java.lang.Exception
      • storeCategory

        protected void storeCategory​(RequestContextData requestContextData,
                                     Session currentSession,
                                     org.springframework.ui.ModelMap model)
      • storeBreadcrumbs

        protected void storeBreadcrumbs​(Session currentSession,
                                        org.springframework.ui.ModelMap model)
        Parameters:
        requestContextData -
        currentSession -
        model -
      • getBreadcrumbs

        protected Breadcrumbs getBreadcrumbs​(java.util.List<Breadcrumb> breadcrumbs)
        Parameters:
        breadcrumbs - - list of Breadcrumb
        Returns:
        current breadcrumb trail.
      • storeFacets

        protected void storeFacets​(Session currentSession,
                                   org.springframework.ui.ModelMap model)
      • populateJSAddOnVariables

        protected void populateJSAddOnVariables​(org.springframework.ui.ModelMap model)
      • retrieveHybrisConvertJSAddOnVariables

        protected java.util.List<JavaScriptVariableData> retrieveHybrisConvertJSAddOnVariables​(org.springframework.ui.ModelMap model)
        Retrieves the HybrisConvert AddOn JS variables from the model.
        Parameters:
        model -
        Returns:
      • getRequestContextData

        protected RequestContextData getRequestContextData​(javax.servlet.http.HttpServletRequest request)
      • getBean

        protected <T> T getBean​(javax.servlet.http.HttpServletRequest request,
                                java.lang.String beanName,
                                java.lang.Class<T> beanType)
        Helper method to lookup a spring bean in the context of a request. This should only be used to lookup beans that are request scoped. The looked up bean is cached in the request attributes so it should not have a narrower scope than request scope. This method should not be used for beans that could be injected into this bean.
        Type Parameters:
        T - the expected type of the bean
        Parameters:
        request - the current request
        beanName - the name of the bean to lookup
        beanType - the expected type of the bean
        Returns:
        the bean found or null
      • setSessionService

        public void setSessionService​(SessionService sessionService)
      • setContextService

        public void setContextService​(ContextService contextService)