Class TravellerStatusStrategy
java.lang.Object
de.hybris.platform.travelfacades.strategies.AbstractOfferResponseFilterStrategy
de.hybris.platform.travelfacades.strategies.impl.TravellerStatusStrategy
- All Implemented Interfaces:
OfferResponseFilterStrategy
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancheckAllConsignmentsStatus(OriginDestinationOfferInfoData originDestinationOfferInfo) Method to check if all consignments have status included in the notAllowedStatusList for a specific originDestinationOfferInfoprotected booleancheckAllConsignmentsStatusForTransportOffering(TransportOfferingData transportOffering) Method to check if all consignments have status included in the notAllowedStatusList for a specific transportOfferingvoidfilterOfferResponseData(OfferResponseData offerResponseData) Method to filter out the originDestinationOfferInfos.voidfilterSeatMapData(SeatMapResponseData seatMapResponseData) Method to filter out the seatMapData.protected de.hybris.platform.store.services.BaseStoreServiceGets base store service.protected de.hybris.platform.commerceservices.customer.CustomerAccountServiceGets customer account service.protected List<ConsignmentStatus>Gets not allowed status list.protected TravelCartFacadeGets travel cart facade.voidsetBaseStoreService(de.hybris.platform.store.services.BaseStoreService baseStoreService) Sets base store service.voidsetCustomerAccountService(de.hybris.platform.commerceservices.customer.CustomerAccountService customerAccountService) Sets customer account service.voidsetNotAllowedStatusList(List<ConsignmentStatus> notAllowedStatusList) Sets not allowed status list.voidsetTravelCartFacade(TravelCartFacade travelCartFacade) Sets travel cart facade.Methods inherited from class de.hybris.platform.travelfacades.strategies.AbstractOfferResponseFilterStrategy
setOriginDestinationStatus
-
Constructor Details
-
TravellerStatusStrategy
public TravellerStatusStrategy()
-
-
Method Details
-
filterOfferResponseData
Description copied from interface:OfferResponseFilterStrategyMethod 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
Description copied from interface:OfferResponseFilterStrategyMethod 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
Gets travel cart facade.- Returns:
- the travelCartFacade
-
setTravelCartFacade
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
Gets not allowed status list.- Returns:
- the notAllowedStatusList
-
setNotAllowedStatusList
Sets not allowed status list.- Parameters:
notAllowedStatusList- the notAllowedStatusList to set
-