Class TransportOfferingStatusStrategy

java.lang.Object
de.hybris.platform.travelfacades.strategies.AbstractOfferResponseFilterStrategy
de.hybris.platform.travelfacades.strategies.impl.TransportOfferingStatusStrategy
All Implemented Interfaces:
OfferResponseFilterStrategy

public class TransportOfferingStatusStrategy extends AbstractOfferResponseFilterStrategy
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 Details

    • TransportOfferingStatusStrategy

      public TransportOfferingStatusStrategy()
  • Method Details

    • filterOfferResponseData

      public void filterOfferResponseData(OfferResponseData offerResponseData)
      Description copied from interface: OfferResponseFilterStrategy
      Method 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 data
      offerGroupData - the offer group data
      Returns:
      the boolean
    • filterSeatMapData

      public void filterSeatMapData(SeatMapResponseData seatMapResponseData)
      Description copied from interface: OfferResponseFilterStrategy
      Method to filter out the seatMapData.
      Parameters:
      seatMapResponseData - as the seatMapResponseData with the seatMapData to be filtered.
    • getNotAllowedStatuses

      protected List<TransportOfferingStatus> getNotAllowedStatuses()
      Gets not allowed statuses.
      Returns:
      the notAllowedStatuses
    • setNotAllowedStatuses

      public void setNotAllowedStatuses(List<TransportOfferingStatus> notAllowedStatuses)
      Sets not allowed statuses.
      Parameters:
      notAllowedStatuses - the notAllowedStatuses to set