Class LastAdultTravellerRestrictionStrategy
java.lang.Object
de.hybris.platform.travelfacades.booking.action.strategies.impl.LastAdultTravellerRestrictionStrategy
- All Implemented Interfaces:
BookingActionEnabledEvaluatorStrategy
public class LastAdultTravellerRestrictionStrategy
extends Object
implements BookingActionEnabledEvaluatorStrategy
Strategy to evaluate the enabled property of the List. For each leg if there is only one 'adult'
traveller left, the enabled property of the related BookingActionData is set to false, true otherwise. Other non
'adult' passengers BookingActionData are not modified by this strategy.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyStrategy(List<BookingActionData> bookingActionDataList, ReservationData reservationData) Applies the strategy for Listprotected BookingServiceGets booking service.voidsetBookingService(BookingService bookingService) Sets booking service.
-
Constructor Details
-
LastAdultTravellerRestrictionStrategy
public LastAdultTravellerRestrictionStrategy()
-
-
Method Details
-
applyStrategy
public void applyStrategy(List<BookingActionData> bookingActionDataList, ReservationData reservationData) Description copied from interface:BookingActionEnabledEvaluatorStrategyApplies the strategy for List- Specified by:
applyStrategyin interfaceBookingActionEnabledEvaluatorStrategy- Parameters:
bookingActionDataList- the booking action data listreservationData- the reservation data
-
getBookingService
Gets booking service.- Returns:
- the booking service
-
setBookingService
Sets booking service.- Parameters:
bookingService- the booking service
-