Class TravellerStatusStrategy

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

public class TravellerStatusStrategy extends AbstractOfferResponseFilterStrategy
Strategy that extends the AbstractOfferResponseFilterStrategy. The strategy is used to filter out the originDestinationOfferInfos if all the consignments have status included in the notAllowedStatusList for at least one transportOffering.
  • Constructor Details

    • TravellerStatusStrategy

      public TravellerStatusStrategy()
  • 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.
    • checkAllConsignmentsStatus

      protected boolean checkAllConsignmentsStatus(OriginDestinationOfferInfoData originDestinationOfferInfo)
      Method to check if all consignments have status included in the notAllowedStatusList for a specific originDestinationOfferInfo
      Parameters:
      originDestinationOfferInfo - as the originDestinationOfferInfo to check
      Returns:
      true if all the consignementStatus are valid, false otherwise
    • 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.
    • checkAllConsignmentsStatusForTransportOffering

      protected boolean checkAllConsignmentsStatusForTransportOffering(TransportOfferingData transportOffering)
      Method to check if all consignments have status included in the notAllowedStatusList for a specific transportOffering
      Parameters:
      transportOffering - as the transportOffering to check
      Returns:
      true if all the consignementStatus are valid, false otherwise
    • getTravelCartFacade

      protected TravelCartFacade getTravelCartFacade()
      Gets travel cart facade.
      Returns:
      the travelCartFacade
    • setTravelCartFacade

      public void setTravelCartFacade(TravelCartFacade travelCartFacade)
      Sets travel cart facade.
      Parameters:
      travelCartFacade - the travelCartFacade to set
    • getBaseStoreService

      protected de.hybris.platform.store.services.BaseStoreService getBaseStoreService()
      Gets base store service.
      Returns:
      the baseStoreService
    • setBaseStoreService

      public void setBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService)
      Sets base store service.
      Parameters:
      baseStoreService - the baseStoreService to set
    • getCustomerAccountService

      protected de.hybris.platform.commerceservices.customer.CustomerAccountService getCustomerAccountService()
      Gets customer account service.
      Returns:
      the customerAccountService
    • setCustomerAccountService

      public void setCustomerAccountService(de.hybris.platform.commerceservices.customer.CustomerAccountService customerAccountService)
      Sets customer account service.
      Parameters:
      customerAccountService - the customerAccountService to set
    • getNotAllowedStatusList

      protected List<ConsignmentStatus> getNotAllowedStatusList()
      Gets not allowed status list.
      Returns:
      the notAllowedStatusList
    • setNotAllowedStatusList

      public void setNotAllowedStatusList(List<ConsignmentStatus> notAllowedStatusList)
      Sets not allowed status list.
      Parameters:
      notAllowedStatusList - the notAllowedStatusList to set