Class DefaultShoppingAccommodationCartFacade
java.lang.Object
de.hybris.platform.commercefacades.order.impl.DefaultCartFacade
de.hybris.platform.travelfacades.order.impl.DefaultAccommodationCartFacade
de.hybris.platform.shoppingfacades.order.impl.DefaultShoppingAccommodationCartFacade
- All Implemented Interfaces:
de.hybris.platform.commercefacades.order.CartFacade,AccommodationCartFacade
Shopping extension of
DefaultAccommodationCartFacade class-
Field Summary
Fields inherited from class de.hybris.platform.travelfacades.order.impl.DefaultAccommodationCartFacade
PRODUCT_QUANTITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanaddAccommodationToCart(String productCode, List<String> transportOfferingCodes, String travellerCode, TravellerData traveller, String originDestinationRefNo) Add the accommodation to the cart.booleanaddSelectedAccommodationToCart(String accommodationUid, String transportOfferingCode, String travellerCode, String originDestinationRefNo, String travelRoute) Method responsible to add the accommodation to the cart for the traveller based on the following scenarios: 1.booleanremoveSelectedAccommodationFromCart(String accommodationUid, String transportOfferingCode, String travellerCode, String travelRoute) Removes the selected accommodation from cart.protected booleanupdateAccommodationFromCart(OrderEntryData existingOrderEntry) Update existing accommodation from cart.Methods inherited from class de.hybris.platform.travelfacades.order.impl.DefaultAccommodationCartFacade
addAccommodation, addAccommodation, addAccommodationBundleToCart, addAccommodations, addAccommodationsToCart, addAccommodationsToCart, addAccommodationToCart, addProduct, addProductToCart, addPropertiesToCartEntry, addRoomRateToCart, addSelectedAccommodation, addToCart, buildNewRoomRateCartData, checkAccomodationServiceRestrictions, cleanUpCartBeforeAddition, cleanUpCartBeforeAddition, collectRoomRates, collectRoomRates, collectRoomRates, createRoomCartDataList, emptyCart, getAccommodation, getAccommodationCommerceCartService, getAccommodationMapService, getAccommodationOffering, getAccommodationOfferingService, getAccommodationService, getBookingService, getBundleCartFacade, getCartFacade, getCheckRequestedQuantityStrategies, getConfigurationService, getConfiguredAccommodationFacade, getCurrentAccommodationOffering, getEnumerationService, getModelService, getRatePlanService, getSelectedAccommodationStrategyList, getTravelBundleCommerceCartFacade, getTravelCartService, getTravelCommercePriceFacade, getTravellerFacade, getTravelRestrictionFacade, isAmendmentForServices, isNewRoomInCart, isValidDayOfWeek, removeAccommodationOrderEntryGroup, removeRoomStay, removeSelectedAccommodation, removeServiceEntry, replaceAccommodationInCart, rollbackAccommodationEntries, setAccommodationCommerceCartService, setAccommodationMapService, setAccommodationOfferingService, setAccommodationService, setBookingService, setBundleCartFacade, setCartFacade, setCheckRequestedQuantityStrategies, setConfigurationService, setConfiguredAccommodationFacade, setEnumerationService, setModelService, setRatePlanService, setSelectedAccommodationStrategyList, setTravelBundleCommerceCartFacade, setTravelCartService, setTravelCommercePriceFacade, setTravellerFacade, setTravelRestrictionFacade, updateServiceEntry, updateServiceEntry, validateAccommodationAgainstCart, validateAccommodationCart, validateMaximumQuantity, validateNumberOfRoomsToAdd, validateRoomRateAgainstDate, validateRoomStay, validateRoomStayCandidatesMethods inherited from class de.hybris.platform.commercefacades.order.impl.DefaultCartFacade
addToCart, addToCart, configurationInfoToProductConfiguration, configureCartEntry, createCommerceCartParameter, createEmptyCart, deleteGroupedOrderEntriesMultiD, estimateExternalTaxes, filterConfigurationsByConfigurator, getBaseSiteService, getCartConverter, getCartModificationConverter, getCartRestorationConverter, getCartService, getCartsForCurrentUser, getCommerceCartParameterConverter, getCommerceCartService, getCountryConverter, getDeliveryCountries, getDeliveryService, getGroupCartModificationListConverter, getMiniCart, getMiniCartConverter, getMostRecentCartGuidForUser, getOrderEntryConverter, getOrderEntryNumberForMultiD, getPointOfServiceService, getPriceDataFactory, getProductConfigurationMergeStrategies, getProductFacade, getProductService, getSessionCart, getSessionCartGuid, getSessionCartWithEntryOrdering, getUserService, hasEntries, hasEntryGroups, hasSessionCart, mergeOrderEntryWithModelConfiguration, removeEntryGroup, removeSessionCart, removeStaleCarts, restoreAnonymousCartAndMerge, restoreAnonymousCartAndTakeOwnership, restoreCartAndMerge, restoreSavedCart, setBaseSiteService, setCartConverter, setCartModificationConverter, setCartRestorationConverter, setCartService, setCommerceCartParameterConverter, setCommerceCartService, setCountryConverter, setDeliveryService, setGroupCartModificationListConverter, setMiniCartConverter, setOrderEntryConverter, setPointOfServiceService, setPriceDataFactory, setProductConfigurationMergeStrategies, setProductFacade, setProductService, setUserService, updateCartEntry, updateCartEntry, updateCartEntry, updateCartMetadata, validateCartData
-
Constructor Details
-
DefaultShoppingAccommodationCartFacade
public DefaultShoppingAccommodationCartFacade()
-
-
Method Details
-
addSelectedAccommodationToCart
public boolean addSelectedAccommodationToCart(String accommodationUid, String transportOfferingCode, String travellerCode, String originDestinationRefNo, String travelRoute) Method responsible to add the accommodation to the cart for the traveller based on the following scenarios: 1. If the accommodation(ConfiguredAccommodationModel) is configured in the system. 2. If the accommodation is bookable. 3. if the products of accommodation are referenced by the fare product entry in the cart. 4. if the accommodation is not already booked by other travellers in the transportOffering. 5. If the accommodation is not already added to the cart by other passenger of same cart.- Specified by:
addSelectedAccommodationToCartin interfaceAccommodationCartFacade- Overrides:
addSelectedAccommodationToCartin classDefaultAccommodationCartFacade- Parameters:
accommodationUid- the accommodation uidtransportOfferingCode- the transport offering codetravellerCode- the traveller codeoriginDestinationRefNo- the origin destination ref notravelRoute- the travel route- Returns:
- true, if successful
-
removeSelectedAccommodationFromCart
public boolean removeSelectedAccommodationFromCart(String accommodationUid, String transportOfferingCode, String travellerCode, String travelRoute) Removes the selected accommodation from cart.- Specified by:
removeSelectedAccommodationFromCartin interfaceAccommodationCartFacade- Overrides:
removeSelectedAccommodationFromCartin classDefaultAccommodationCartFacade- Parameters:
accommodationUid- the accommodation uidtransportOfferingCode- the transport offering codetravellerCode- the traveller codetravelRoute- the travel route- Returns:
- true, if successful
-
addAccommodationToCart
protected boolean addAccommodationToCart(String productCode, List<String> transportOfferingCodes, String travellerCode, TravellerData traveller, String originDestinationRefNo) Add the accommodation to the cart.- Parameters:
productCode- the product codetransportOfferingCodes- the list of transport offering codestravellerCode- the traveller codetraveller- the travellerDataoriginDestinationRefNo- the originDestinationReferenceNumber- Returns:
- true if the accommodation has been added to the cart, otherwise false.
-
updateAccommodationFromCart
Update existing accommodation from cart.- Parameters:
existingOrderEntry- the existig order entry- Returns:
- true if the entry has been updated, otherwise false.
-