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
FieldsModifier and TypeFieldDescriptionprotected de.hybris.platform.commercefacades.storesession.StoreSessionFacadeFields inherited from class de.hybris.platform.addonsupport.controllers.cms.AbstractCMSAddOnComponentController
COMPONENT, COMPONENT_UID, FORWARD_PREFIX, REDIRECT_PREFIX, ROOT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfillModel(javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model, ShoppingReservationTotalsComponentModel component) protected ImageDataGets fallback image.protected ImageDatagetImage(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 sessionMethods inherited from class de.hybris.platform.travelacceleratorstorefront.controllers.cms.SubstitutingCMSAddOnComponentController
getAddonUiExtensionName, getConfigurationService, setMaxAllowedCheckInCheckOutDateDifferenceMethods inherited from class de.hybris.platform.addonsupport.controllers.cms.AbstractCMSAddOnComponentController
checkIfComponentNotEmpty, getCmsComponentFolder, getCmsComponentService, getCmsPageContextService, getRequestContextData, getTypeCode, getView, getViewResourceName, handleComponent, handleGet, setCmsComponentServiceMethods inherited from class de.hybris.platform.addonsupport.controllers.AbstractAddOnController
addRequestToModel, getBean
-
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:
fillModelin classde.hybris.platform.addonsupport.controllers.cms.AbstractCMSAddOnComponentController<ShoppingReservationTotalsComponentModel>
-
getImage
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
Gets fallback image.- Returns:
- the fallback image
-