Class AbstractBookingActionStrategy

java.lang.Object
de.hybris.platform.travelfacades.booking.action.strategies.impl.AbstractBookingActionStrategy
All Implemented Interfaces:
BookingActionStrategy
Direct Known Subclasses:
BookingLevelBookingActionStrategy, OriginDestinationRefLevelBookingActionStrategy, TravellerLevelBookingActionStrategy

public abstract class AbstractBookingActionStrategy extends Object implements BookingActionStrategy
Abstract Strategy implementing BookingActionStrategy.
  • Constructor Details

    • AbstractBookingActionStrategy

      public AbstractBookingActionStrategy()
  • Method Details

    • populateUrl

      public void populateUrl(BookingActionData bookingActionData, ReservationData reservationData)
      This method populates the url of the BookingActionData based on the actionType and the current user type. The url is taken from the Map<String, String> bookingActionTypeUrlMap defined in the spring configuration.
      Parameters:
      bookingActionData - as the bookingActionData with the url to be populated
      reservationData - as the reservationData used to populate the url
    • replaceUrlPlaceholdersWithValues

      protected String replaceUrlPlaceholdersWithValues(ReservationData reservationData, BookingActionData bookingActionData, String url)
    • getBookingActionTypeUrlMap

      protected Map<String,String> getBookingActionTypeUrlMap()
      Returns:
      the bookingActionTypeUrlMap
    • setBookingActionTypeUrlMap

      public void setBookingActionTypeUrlMap(Map<String,String> bookingActionTypeUrlMap)
      Parameters:
      bookingActionTypeUrlMap - the bookingActionTypeUrlMap to set