Class ProfileTagBeforeViewHandler

java.lang.Object
de.hybris.platform.addonsupport.config.javascript.BeforeViewJsPropsHandlerAdaptee
com.hybris.yprofile.profiletagaddon.interceptors.beforeview.ProfileTagBeforeViewHandler
All Implemented Interfaces:
BeforeViewHandlerAdaptee

public class ProfileTagBeforeViewHandler extends BeforeViewJsPropsHandlerAdaptee
  • 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: 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 -
    • getProfileTagDebug

      protected Optional<Boolean> getProfileTagDebug(javax.servlet.http.HttpServletRequest request)
    • getTenant

      protected String getTenant()
    • getSiteId

      protected String getSiteId()
    • getCurrentBaseSiteModel

      protected Optional<BaseSiteModel> getCurrentBaseSiteModel()