Class GlobalBookingLevelBookingActionStrategy

java.lang.Object
de.hybris.platform.travelfacades.booking.action.strategies.impl.GlobalBookingLevelBookingActionStrategy
All Implemented Interfaces:
GlobalBookingActionStrategy

public class GlobalBookingLevelBookingActionStrategy extends Object implements GlobalBookingActionStrategy
Strategy that extends the GlobalBookingActionStrategy. The strategy is used to create and populate the BookingActionDataList defined at a booking level.
  • Constructor Details

    • GlobalBookingLevelBookingActionStrategy

      public GlobalBookingLevelBookingActionStrategy()
  • Method Details

    • applyStrategy

      public void applyStrategy(List<BookingActionData> bookingActionDataList, ActionTypeOption actionType, GlobalTravelReservationData globalReservationData)
      Description copied from interface: GlobalBookingActionStrategy
      Applies the strategy for List
      Specified by:
      applyStrategy in interface GlobalBookingActionStrategy
      Parameters:
      bookingActionDataList - the booking action data list
      actionType - the action type
      globalReservationData - the global reservation data
    • populateUrl

      public void populateUrl(BookingActionData bookingActionData, GlobalTravelReservationData globalReservationData)
      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> accommodationBookingActionTypeUrlMap defined in the spring configuration.
      Parameters:
      bookingActionData - as the bookingActionData with the url to be populated
      globalReservationData - as the reservationData used to populate the url
    • getGlobalBookingActionTypeUrlMap

      protected Map<String,String> getGlobalBookingActionTypeUrlMap()
      Returns:
      the globalBookingActionTypeUrlMap
    • setGlobalBookingActionTypeUrlMap

      public void setGlobalBookingActionTypeUrlMap(Map<String,String> globalBookingActionTypeUrlMap)
      Parameters:
      globalBookingActionTypeUrlMap - the globalBookingActionTypeUrlMap to set