Class CancelCompleteBookingDealBundleRestrictionStrategy
java.lang.Object
de.hybris.platform.travelfacades.booking.action.strategies.impl.CancelCompleteBookingDealBundleRestrictionStrategy
- All Implemented Interfaces:
GlobalBookingActionEnabledEvaluatorStrategy
public class CancelCompleteBookingDealBundleRestrictionStrategy
extends Object
implements GlobalBookingActionEnabledEvaluatorStrategy
Strategy to evaluate the enabled property of the List for deal bundles. If the order is a deal, the cancel
booking will be enabled only if it is possible to cancel both transport and accommodation booking, while the corresponding
bookingActionData will be disabled.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyStrategy(List<BookingActionData> bookingActionDataList, GlobalTravelReservationData globalReservationData, BookingActionResponseData bookingActionResponse) Applies the strategy for Listprotected DealBundleTemplateServicevoidsetDealBundleTemplateService(DealBundleTemplateService dealBundleTemplateService)
-
Constructor Details
-
CancelCompleteBookingDealBundleRestrictionStrategy
public CancelCompleteBookingDealBundleRestrictionStrategy()
-
-
Method Details
-
applyStrategy
public void applyStrategy(List<BookingActionData> bookingActionDataList, GlobalTravelReservationData globalReservationData, BookingActionResponseData bookingActionResponse) Description copied from interface:GlobalBookingActionEnabledEvaluatorStrategyApplies the strategy for List- Specified by:
applyStrategyin interfaceGlobalBookingActionEnabledEvaluatorStrategy- Parameters:
bookingActionDataList- the booking action data listglobalReservationData- the global reservation databookingActionResponse- the booking action response
-
getDealBundleTemplateService
- Returns:
- the dealBundleTemplateService
-
setDealBundleTemplateService
- Parameters:
dealBundleTemplateService- the dealBundleTemplateService to set
-