Class ASRedirectForTransportAccommodationStrategy

java.lang.Object
de.hybris.platform.travelacceleratorstorefront.strategies.asm.AbstractASRedirectStrategy
de.hybris.platform.travelacceleratorstorefront.strategies.asm.ASRedirectForTransportAccommodationStrategy
All Implemented Interfaces:
AssistedServiceRedirectByJourneyTypeStrategy
Direct Known Subclasses:
ShoppingASRedirectForTransportAccommodationStrategy

public class ASRedirectForTransportAccommodationStrategy extends AbstractASRedirectStrategy implements AssistedServiceRedirectByJourneyTypeStrategy
Redirect strategy for transport + accommodation journey responsible for building the required url parameters for transportation and redirect to the fare selection page and for building the required url parameters for accommodation and set it in the session.
  • Constructor Details

    • ASRedirectForTransportAccommodationStrategy

      public ASRedirectForTransportAccommodationStrategy()
  • Method Details

    • getRedirectPath

      public String getRedirectPath(CartModel cartModel)
      Description copied from interface: AssistedServiceRedirectByJourneyTypeStrategy
      Returns the redirect path.
      Specified by:
      getRedirectPath in interface AssistedServiceRedirectByJourneyTypeStrategy
      Parameters:
      cartModel - as the cart model
      Returns:
      a string corresponding to the redirect path
    • getUrlParametersForTransportation

      protected Map<String,String> getUrlParametersForTransportation(CartModel cartModel)
      Returns the url parameters map with the attributes for the transport part.
      Parameters:
      cartModel - as the cart model
    • getUrlParametersForAccommodation

      protected String getUrlParametersForAccommodation(CartModel cartModel, Map<String,String> transportUrlParameters)
      Returns the url parameters map with the attributes for the accommodation part.
      Parameters:
      cartModel - as the cart model
      transportUrlParameters - as the map with the url parameters for the transport part
    • getGuestOccupancy

      protected String getGuestOccupancy(CartModel cartModel)
      Returns the string with the guest occupancies build from the cart.
      Parameters:
      cartModel - as the cart model
      Returns:
      the string with the guest occupancies
    • getGuestOccupancyFromTransport

      protected String getGuestOccupancyFromTransport()
      Returns the string with the guest occupancies build from the transport travellers.
      Returns:
      the string with the guest occupancies
    • getCabinClassFacade

      protected CabinClassFacade getCabinClassFacade()
      Returns:
      the cabinClassFacade
    • setCabinClassFacade

      public void setCabinClassFacade(CabinClassFacade cabinClassFacade)
      Parameters:
      cabinClassFacade - the cabinClassFacade to set
    • getTravellerFacade

      protected TravellerFacade getTravellerFacade()
      Returns:
      the travellerFacade
    • setTravellerFacade

      public void setTravellerFacade(TravellerFacade travellerFacade)
      Parameters:
      travellerFacade - the travellerFacade to set
    • getTransportFacilityFacade

      protected TransportFacilityFacade getTransportFacilityFacade()
      Returns:
      the transportFacilityFacade
    • setTransportFacilityFacade

      public void setTransportFacilityFacade(TransportFacilityFacade transportFacilityFacade)
      Parameters:
      transportFacilityFacade - the transportFacilityFacade to set
    • getTravelLocationFacade

      protected TravelLocationFacade getTravelLocationFacade()
      Returns:
      the travelLocationFacade
    • setTravelLocationFacade

      public void setTravelLocationFacade(TravelLocationFacade travelLocationFacade)
      Parameters:
      travelLocationFacade - the travelLocationFacade to set
    • getAccommodationSuggestionFacade

      protected AccommodationSuggestionFacade getAccommodationSuggestionFacade()
      Returns:
      the accommodationSuggestionFacade
    • setAccommodationSuggestionFacade

      public void setAccommodationSuggestionFacade(AccommodationSuggestionFacade accommodationSuggestionFacade)
      Parameters:
      accommodationSuggestionFacade - the accommodationSuggestionFacade to set