Class ShoppingReservationTotalsComponentController

java.lang.Object
de.hybris.platform.addonsupport.controllers.AbstractAddOnController
de.hybris.platform.addonsupport.controllers.cms.AbstractCMSAddOnComponentController<T>
de.hybris.platform.travelacceleratorstorefront.controllers.cms.SubstitutingCMSAddOnComponentController<ShoppingReservationTotalsComponentModel>
de.hybris.platform.shoppingaddon.controllers.cms.ShoppingReservationTotalsComponentController

@Controller("ShoppingReservationTotalsComponentController") @RequestMapping("/view/ShoppingReservationTotalsComponentController") public class ShoppingReservationTotalsComponentController extends SubstitutingCMSAddOnComponentController<ShoppingReservationTotalsComponentModel>
The type Shopping reservation totals component controller.
  • Nested Class Summary

    Nested classes/interfaces inherited from class de.hybris.platform.addonsupport.controllers.AbstractAddOnController

    de.hybris.platform.addonsupport.controllers.AbstractAddOnController.HttpNotFoundException
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected de.hybris.platform.commercefacades.storesession.StoreSessionFacade
     

    Fields inherited from class de.hybris.platform.addonsupport.controllers.cms.AbstractCMSAddOnComponentController

    COMPONENT, COMPONENT_UID, FORWARD_PREFIX, REDIRECT_PREFIX, ROOT
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    fillModel(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, ShoppingReservationTotalsComponentModel component)
     
    protected ImageData
    Gets fallback image.
    protected ImageData
    getImage(javax.servlet.http.HttpServletRequest request)
    This method is responsible for fetching the image which will be displayed in itinerary totals component in following order: 1) If there is ACCOMMODATION_OFFERING_CODE in the session - get image for a location of that accommodation offering 2) Else if there is a destinationLocation parameter in request - get image for the city location part of that parameter 3) Else if there is an arrivalLocation parameter in request - get image for the location of transport facility with that code 4) Else if there is a radius parameter in request - it means that this is Google based search and therefore we don't provide image for this search -> return null 5) If the image is still null, try to get it from the session

    Methods inherited from class de.hybris.platform.travelacceleratorstorefront.controllers.cms.SubstitutingCMSAddOnComponentController

    getAddonUiExtensionName, getConfigurationService, setMaxAllowedCheckInCheckOutDateDifference

    Methods inherited from class de.hybris.platform.addonsupport.controllers.cms.AbstractCMSAddOnComponentController

    checkIfComponentNotEmpty, getCmsComponentFolder, getCmsComponentService, getCmsPageContextService, getRequestContextData, getTypeCode, getView, getViewResourceName, handleComponent, handleGet, setCmsComponentService

    Methods inherited from class de.hybris.platform.addonsupport.controllers.AbstractAddOnController

    addRequestToModel, getBean

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • storeSessionFacade

      protected de.hybris.platform.commercefacades.storesession.StoreSessionFacade storeSessionFacade
  • Constructor Details

    • ShoppingReservationTotalsComponentController

      public ShoppingReservationTotalsComponentController()
  • Method Details

    • fillModel

      protected void fillModel(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, ShoppingReservationTotalsComponentModel component)
      Specified by:
      fillModel in class de.hybris.platform.addonsupport.controllers.cms.AbstractCMSAddOnComponentController<ShoppingReservationTotalsComponentModel>
    • getImage

      protected ImageData getImage(javax.servlet.http.HttpServletRequest request)
      This method is responsible for fetching the image which will be displayed in itinerary totals component in following order: 1) If there is ACCOMMODATION_OFFERING_CODE in the session - get image for a location of that accommodation offering 2) Else if there is a destinationLocation parameter in request - get image for the city location part of that parameter 3) Else if there is an arrivalLocation parameter in request - get image for the location of transport facility with that code 4) Else if there is a radius parameter in request - it means that this is Google based search and therefore we don't provide image for this search -> return null 5) If the image is still null, try to get it from the session
      Parameters:
      request - the request
      Returns:
      image image
    • getFallbackImage

      protected ImageData getFallbackImage()
      Gets fallback image.
      Returns:
      the fallback image