Class HybrisAnalyticsBeforeViewHandler
- java.lang.Object
-
- de.hybris.platform.addonsupport.config.javascript.BeforeViewJsPropsHandlerAdaptee
-
- de.hybris.platform.hybrisanalyticsaddon.interceptors.beforeview.HybrisAnalyticsBeforeViewHandler
-
- All Implemented Interfaces:
BeforeViewHandlerAdaptee
public class HybrisAnalyticsBeforeViewHandler extends BeforeViewJsPropsHandlerAdaptee
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.addonsupport.config.javascript.BeforeViewJsPropsHandlerAdaptee
JS_VARIABLES_MODEL_NAME
-
-
Constructor Summary
Constructors Constructor Description HybrisAnalyticsBeforeViewHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidattachCustomJSVariablesToModel(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.java.lang.StringbeforeViewJsProps(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.ModelMap model, java.lang.String viewName)Abstract method, insert your logic hereprotected java.lang.StringgetCurrentPiwikSiteId()protected java.lang.StringgetSessionToken()-
Methods inherited from class de.hybris.platform.addonsupport.config.javascript.BeforeViewJsPropsHandlerAdaptee
attachJSVariablesToModel, beforeView, detectJsModelName, getI18NService, getJsVariableModelName, getMessageSource, setI18NService, setJsVariableModelName, setMessageSource
-
-
-
-
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:BeforeViewJsPropsHandlerAdapteeAbstract method, insert your logic here- Specified by:
beforeViewJsPropsin classBeforeViewJsPropsHandlerAdaptee- 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()
-
-