Class HybrisAnalyticsBeforeViewHandler
java.lang.Object
de.hybris.platform.addonsupport.config.javascript.BeforeViewJsPropsHandlerAdaptee
de.hybris.platform.hybrisanalyticsaddon.interceptors.beforeview.HybrisAnalyticsBeforeViewHandler
- All Implemented Interfaces:
BeforeViewHandlerAdaptee
-
Field Summary
Fields inherited from class de.hybris.platform.addonsupport.config.javascript.BeforeViewJsPropsHandlerAdaptee
JS_VARIABLES_MODEL_NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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.beforeViewJsProps(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.ModelMap model, String viewName) Abstract method, insert your logic hereprotected Stringprotected StringMethods inherited from class de.hybris.platform.addonsupport.config.javascript.BeforeViewJsPropsHandlerAdaptee
attachJSVariablesToModel, beforeView, detectJsModelName, getI18NService, getJsVariableModelName, getMessageSource, setI18NService, setJsVariableModelName, setMessageSource
-
Constructor Details
-
HybrisAnalyticsBeforeViewHandler
public HybrisAnalyticsBeforeViewHandler()
-
-
Method Details
-
beforeViewJsProps
public String beforeViewJsProps(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.ModelMap model, 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
-
getCurrentPiwikSiteId
-