Class TransportOfferingStatusStrategy
java.lang.Object
de.hybris.platform.travelfacades.strategies.AbstractOfferResponseFilterStrategy
de.hybris.platform.travelfacades.strategies.impl.TransportOfferingStatusStrategy
- All Implemented Interfaces:
OfferResponseFilterStrategy
Strategy that extends the
AbstractOfferResponseFilterStrategy.
The strategy is used to filter out the originDestinationOfferInfos if at least one of its transportOfferings has
status DEPARTED.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfilterOfferResponseData(OfferResponseData offerResponseData) Method to filter out the originDestinationOfferInfos.voidfilterSeatMapData(SeatMapResponseData seatMapResponseData) Method to filter out the seatMapData.protected List<TransportOfferingStatus>Gets not allowed statuses.protected booleanisAnyTransportOfferingInNotAllowedStatus(OriginDestinationOfferInfoData originDestinationOfferInfoData, OfferGroupData offerGroupData) Is any transport offering in not allowed status boolean.voidsetNotAllowedStatuses(List<TransportOfferingStatus> notAllowedStatuses) Sets not allowed statuses.Methods inherited from class de.hybris.platform.travelfacades.strategies.AbstractOfferResponseFilterStrategy
setOriginDestinationStatus
-
Constructor Details
-
TransportOfferingStatusStrategy
public TransportOfferingStatusStrategy()
-
-
Method Details
-
filterOfferResponseData
Description copied from interface:OfferResponseFilterStrategyMethod to filter out the originDestinationOfferInfos.- Parameters:
offerResponseData- as the offerResponseData with the originDestinationOfferInfos to be filtered.
-
isAnyTransportOfferingInNotAllowedStatus
protected boolean isAnyTransportOfferingInNotAllowedStatus(OriginDestinationOfferInfoData originDestinationOfferInfoData, OfferGroupData offerGroupData) Is any transport offering in not allowed status boolean.- Parameters:
originDestinationOfferInfoData- the origin destination offer info dataofferGroupData- the offer group data- Returns:
- the boolean
-
filterSeatMapData
Description copied from interface:OfferResponseFilterStrategyMethod to filter out the seatMapData.- Parameters:
seatMapResponseData- as the seatMapResponseData with the seatMapData to be filtered.
-
getNotAllowedStatuses
Gets not allowed statuses.- Returns:
- the notAllowedStatuses
-
setNotAllowedStatuses
Sets not allowed statuses.- Parameters:
notAllowedStatuses- the notAllowedStatuses to set
-