Class BookingStatusRestrictionStrategy
java.lang.Object
de.hybris.platform.travelfacades.booking.action.strategies.impl.BookingStatusRestrictionStrategy
- All Implemented Interfaces:
BookingActionEnabledEvaluatorStrategy
public class BookingStatusRestrictionStrategy
extends Object
implements BookingActionEnabledEvaluatorStrategy
Strategy to evaluate the enabled property of the List, setting it to false if the orderStatus is
CANCELLED or CANCELLING.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyStrategy(List<BookingActionData> bookingActionDataList, ReservationData reservationData) Applies the strategy for Listprotected List<OrderStatus>voidsetNotAllowedStatuses(List<OrderStatus> notAllowedStatuses)
-
Constructor Details
-
BookingStatusRestrictionStrategy
public BookingStatusRestrictionStrategy()
-
-
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
-
getNotAllowedStatuses
- Returns:
- notAllowedStatuses
-
setNotAllowedStatuses
- Parameters:
notAllowedStatuses- the notAllowedStatuses to set
-