Class ProfileTagBeforeViewHandler
java.lang.Object
de.hybris.platform.addonsupport.config.javascript.BeforeViewJsPropsHandlerAdaptee
com.hybris.yprofile.profiletagaddon.interceptors.beforeview.ProfileTagBeforeViewHandler
- 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 Optional<BaseSiteModel>getProfileTagDebug(javax.servlet.http.HttpServletRequest request) protected Stringprotected StringMethods inherited from class de.hybris.platform.addonsupport.config.javascript.BeforeViewJsPropsHandlerAdaptee
attachJSVariablesToModel, beforeView, detectJsModelName, getI18NService, getJsVariableModelName, getMessageSource, setI18NService, setJsVariableModelName, setMessageSource
-
Constructor Details
-
ProfileTagBeforeViewHandler
public ProfileTagBeforeViewHandler()
-
-
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-
-
getProfileTagDebug
-
getTenant
-
getSiteId
-
getCurrentBaseSiteModel
-