Class ASRedirectForBookingPackageStrategy

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

public class ASRedirectForBookingPackageStrategy extends AbstractASRedirectStrategy implements AssistedServiceRedirectByJourneyTypeStrategy
Redirect strategy for package journey responsible for building the required url parameters and redirect to the package details page.
  • Constructor Details

    • ASRedirectForBookingPackageStrategy

      public ASRedirectForBookingPackageStrategy()
  • 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
    • buildUrlParametersForDeal

      protected String buildUrlParametersForDeal(CartModel cartModel)
      Returns the string with the url parameters required for the redirect to the deal-details page.
      Parameters:
      cartModel - as the cart model
      Returns:
      the string of the url parameters
    • buildUrlParametersForPackage

      protected String buildUrlParametersForPackage(CartModel cartModel)
      Returns the string with the url parameters required for the redirect to the package-details page.
      Parameters:
      cartModel - as the cart model
      Returns:
      the string of the url parameters
    • populateUrlParametersForTransport

      protected void populateUrlParametersForTransport(List<AbstractOrderEntryModel> transportationEntries, Map<String,String> urlParameters)
      Populates the url parameters map with the attributes for the transport part.
      Parameters:
      transportationEntries - as the list of abstract order entry models of type transport
      urlParameters - as the url parameters map
    • populateUrlParametersForAccommodation

      protected void populateUrlParametersForAccommodation(List<AbstractOrderEntryModel> accommodationEntries, Map<String,String> urlParameters)
      Populates the url parameters map with the attributes for the accommodation part.
      Parameters:
      accommodationEntries - as the list of abstract order entry models of type accommodation
      urlParameters - as the url parameters map
    • getGuestOccupancy

      protected String getGuestOccupancy(List<AbstractOrderEntryModel> transportationEntries, List<AbstractOrderEntryModel> accommodationEntries)
      Returns the string with the guest occupancies.
      Parameters:
      transportationEntries - as the list of abstract order entry models of type transport
      accommodationEntries - as the list of abstract order entry models of type accommodation
      Returns:
      the string with the guest occupancies
    • populatePartHotelStay

      protected void populatePartHotelStay(Map<String,String> urlParameters)
      Populates the partHotelStay attribute in the urlParameters map
      Parameters:
      urlParameters - as the map of the url parameters.
    • getDealCartFacade

      protected DealCartFacade getDealCartFacade()
      Returns:
      the dealCartFacade
    • setDealCartFacade

      public void setDealCartFacade(DealCartFacade dealCartFacade)
      Parameters:
      dealCartFacade - the dealCartFacade to set
    • getDealBundleTemplateFacade

      protected DealBundleTemplateFacade getDealBundleTemplateFacade()
      Returns:
      the dealBundleTemplateFacade
    • setDealBundleTemplateFacade

      public void setDealBundleTemplateFacade(DealBundleTemplateFacade dealBundleTemplateFacade)
      Parameters:
      dealBundleTemplateFacade - the dealBundleTemplateFacade to set
    • 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