Class AbstractBookingActionStrategy
java.lang.Object
de.hybris.platform.travelfacades.booking.action.strategies.impl.AbstractBookingActionStrategy
- All Implemented Interfaces:
BookingActionStrategy
- Direct Known Subclasses:
BookingLevelBookingActionStrategy,OriginDestinationRefLevelBookingActionStrategy,TravellerLevelBookingActionStrategy
Abstract Strategy implementing
BookingActionStrategy.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidpopulateUrl(BookingActionData bookingActionData, ReservationData reservationData) This method populates the url of the BookingActionData based on the actionType and the current user type.protected StringreplaceUrlPlaceholdersWithValues(ReservationData reservationData, BookingActionData bookingActionData, String url) voidsetBookingActionTypeUrlMap(Map<String, String> bookingActionTypeUrlMap) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.travelfacades.booking.action.strategies.BookingActionStrategy
applyStrategy
-
Constructor Details
-
AbstractBookingActionStrategy
public AbstractBookingActionStrategy()
-
-
Method Details
-
populateUrl
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 populatedreservationData- as the reservationData used to populate the url
-
replaceUrlPlaceholdersWithValues
protected String replaceUrlPlaceholdersWithValues(ReservationData reservationData, BookingActionData bookingActionData, String url) -
getBookingActionTypeUrlMap
- Returns:
- the bookingActionTypeUrlMap
-
setBookingActionTypeUrlMap
- Parameters:
bookingActionTypeUrlMap- the bookingActionTypeUrlMap to set
-