Class HybrisAnalyticsBeforeViewHandler

    • Constructor Detail

      • HybrisAnalyticsBeforeViewHandler

        public HybrisAnalyticsBeforeViewHandler()
    • Method Detail

      • beforeViewJsProps

        public java.lang.String beforeViewJsProps​(javax.servlet.http.HttpServletRequest request,
                                                  javax.servlet.http.HttpServletResponse response,
                                                  org.springframework.ui.ModelMap model,
                                                  java.lang.String viewName)
        Description copied from class: BeforeViewJsPropsHandlerAdaptee
        Abstract method, insert your logic here
        Specified by:
        beforeViewJsProps in class BeforeViewJsPropsHandlerAdaptee
        Returns:
        String viewName
      • attachCustomJSVariablesToModel

        protected void attachCustomJSVariablesToModel​(org.springframework.ui.ModelMap model,
                                                      javax.servlet.http.HttpServletRequest request)
        Provides a combination of setting attributes as JS variables with base.js.properties or traditional way of setting the value in model object.
        Parameters:
        model -
        request -
      • getSessionToken

        protected java.lang.String getSessionToken()
      • getCurrentPiwikSiteId

        protected java.lang.String getCurrentPiwikSiteId()