Class TransportOfferingPastDepartureDateStrategy
java.lang.Object
de.hybris.platform.travelfacades.strategies.AbstractOfferResponseFilterStrategy
de.hybris.platform.travelfacades.strategies.impl.TransportOfferingPastDepartureDateStrategy
- 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 is in
the past, that means that the departure date is before the current time.-
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 de.hybris.platform.servicelayer.time.TimeServiceGets time service.protected booleanisAnyTransportOfferingInThePast(OriginDestinationOfferInfoData originDestinationOfferInfoData, OfferGroupData offerGroupData) Is any transport offering in the past boolean.protected booleanIs transport offering in the past boolean.voidsetTimeService(de.hybris.platform.servicelayer.time.TimeService timeService) Sets time service.Methods inherited from class de.hybris.platform.travelfacades.strategies.AbstractOfferResponseFilterStrategy
setOriginDestinationStatus
-
Constructor Details
-
TransportOfferingPastDepartureDateStrategy
public TransportOfferingPastDepartureDateStrategy()
-
-
Method Details
-
filterOfferResponseData
Description copied from interface:OfferResponseFilterStrategyMethod to filter out the originDestinationOfferInfos.- Parameters:
offerResponseData- as the offerResponseData with the originDestinationOfferInfos to be filtered.
-
isAnyTransportOfferingInThePast
protected boolean isAnyTransportOfferingInThePast(OriginDestinationOfferInfoData originDestinationOfferInfoData, OfferGroupData offerGroupData) Is any transport offering in the past 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.
-
isTransportOfferingInThePast
Is transport offering in the past boolean.- Parameters:
to- the to- Returns:
- the boolean
-
getTimeService
protected de.hybris.platform.servicelayer.time.TimeService getTimeService()Gets time service.- Returns:
- the timeService
-
setTimeService
public void setTimeService(de.hybris.platform.servicelayer.time.TimeService timeService) Sets time service.- Parameters:
timeService- the timeService to set
-