Class ReservationTotalsComponentController

java.lang.Object
de.hybris.platform.addonsupport.controllers.AbstractAddOnController
de.hybris.platform.addonsupport.controllers.cms.AbstractCMSAddOnComponentController<T>
de.hybris.platform.travelacceleratorstorefront.controllers.cms.SubstitutingCMSAddOnComponentController<ReservationTotalsComponentModel>
de.hybris.platform.travelacceleratorstorefront.controllers.cms.ReservationTotalsComponentController

@Controller("ReservationTotalsComponentController") @RequestMapping("/view/ReservationTotalsComponentController") public class ReservationTotalsComponentController extends SubstitutingCMSAddOnComponentController<ReservationTotalsComponentModel>
Controller for Itinerary Totals Component
  • 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 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, ReservationTotalsComponentModel component)
     
    protected String
    getComponent(String componentUid, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model)
    This method is responsible for refreshing itinerary component after ancillary is added or removed to/from cart
    protected ImageData
     
    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
  • Constructor Details

    • ReservationTotalsComponentController

      public ReservationTotalsComponentController()
  • Method Details

    • fillModel

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

      @RequestMapping(value="/refresh", method=GET) protected String getComponent(@RequestParam String componentUid, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.ui.Model model)
      This method is responsible for refreshing itinerary component after ancillary is added or removed to/from cart
      Parameters:
      componentUid -
      request -
      response -
      model -
      Returns:
    • 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 -
      Returns:
      image
    • getFallbackImage

      protected ImageData getFallbackImage()