Class DefaultShoppingTransportCartFacade
java.lang.Object
de.hybris.platform.commercefacades.order.impl.DefaultCartFacade
de.hybris.platform.travelfacades.order.impl.DefaultTravelCartFacade
de.hybris.platform.travelfacades.order.impl.DefaultTransportCartFacade
de.hybris.platform.shoppingfacades.facades.impl.DefaultShoppingTransportCartFacade
- All Implemented Interfaces:
de.hybris.platform.commercefacades.order.CartFacade,ShoppingTransportCartFacade,TransportCartFacade,TravelCartFacade
- Direct Known Subclasses:
DefaultPROSTransportCartFacade
public abstract class DefaultShoppingTransportCartFacade
extends DefaultTransportCartFacade
implements ShoppingTransportCartFacade
The Shopping extension of
DefaultTransportCartFacade and implementation of ShoppingTransportCartFacade in order
to add both Shopping and Commerce Ancillaries.-
Field Summary
Fields inherited from class de.hybris.platform.travelfacades.order.impl.DefaultTravelCartFacade
MINIMUM_PRODUCT_QUANTITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract CartModificationDataaddShoppingAncillaryToCart(AncillaryEntryRequestData ancillaryEntryRQData) Add Shopping/Commerce ancillary product to the current cart.protected ShoppingMerchandisingFacadeGets merchandising facade.voidremoveAncillaryEntry(Integer entryId) Removes ancillary product entry quantity from cart.voidremoveBaggageCartEntry(Integer entryId) Removes baggage product entry quantity from cart.voidsetMerchandisingFacade(ShoppingMerchandisingFacade merchandisingFacade) Sets merchandising facade.voidupdateBaggageCartEntry(Integer entryId, Integer quantity) Update ancillary baggage product entry quantity to cart.voidupdateCartEntry(Integer entryId, Integer quantity) Update ancillary product entry quantity to cart.Methods inherited from class de.hybris.platform.travelfacades.order.impl.DefaultTransportCartFacade
addAncillaryToCart, addBundleToCart, addProductToCart, addPropertiesToCartEntry, addSeatEntry, addTransportBundleToCart, addTravellersToCart, changeCurrency, getAddTransportBundleToCartValidationStrategyList, getAddTravellerToCartValidationStrategyList, getAncillaryCartValidationStrategyList, getBoundIdForEntryNumber, getCheckInFacade, getEnrichAncillaryEntryDataStrategyMap, getRemoveBaggageCartEntryValidationStrategies, getRemoveCartEntryValidationStrategyList, getRemoveTravellerFromCartValidationStrategyList, getReservationFacade, getSeatCartEntry, getSelectedAccommodationStrategyList, getSelectedSeatConverter, getStoreSessionFacade, getTravellerDataConverter, getTravelOrderEntryInfoForPassenger, getTravelOrderEntryInfoForPassengersAndTransportOffering, getTravelOrderEntryInfoForTransportOffering, getTravelRestrictionFacade, getUpdateBaggageCartEntryValidationStrategyList, getUpdateCartEntryValidationStrategyList, isOrderEntryPartOfBundle, isTravellerInEntryEligibleForAmendment, normalizeOrderEntryNumbers, removeAncillaryCartEntry, removeSeatEntry, removeTravellerFromCart, setAddTransportBundleToCartValidationStrategyList, setAddTravellerToCartValidationStrategyList, setAncillaryCartValidationStrategyList, setCheckInFacade, setEnrichAncillaryEntryDataStrategyMap, setRemoveBaggageCartEntryValidationStrategies, setRemoveCartEntryValidationStrategyList, setRemoveTravellerFromCartValidationStrategyList, setReservationFacade, setSelectedAccommodationStrategyList, setSelectedSeatConverter, setStoreSessionFacade, setTravellerDataConverter, setTravelRestrictionFacade, setUpdateBaggageCartEntryValidationStrategyList, setUpdateCartEntryValidationStrategyList, updateAncillaryCartEntry, validateAndRemoveTraveller, validateIfAccommodationIsAvailableForBooking, validateIfFareProductForSeatExistInCart, validateIfTransportOfferingExistsInCart, validateIfTravellerEligibleForAmendment, validateIfTravellerHasSeat, validateTravellerForCartMethods inherited from class de.hybris.platform.travelfacades.order.impl.DefaultTravelCartFacade
addBundleToCart, addPerLegBundleProductToCart, addProduct, addPropertiesToCartEntry, addPropertiesToCartEntry, addSelectedAccommodationToCart, addToCart, applyVoucher, assignAnonymousCartToCurrentUser, cleanUpCartForMinOriginDestinationRefNumber, createCartFromOrder, createCartFromOrderGuid, deleteCurrentCart, evaluateCart, getAccommodationMapService, getBaseStoreService, getBookingDueAmount, getBookingFacade, getBookingService, getBookingTotal, getBundleCartFacade, getCartCode, getCartCode, getCartEntry, getCartTotal, getCommonI18NService, getCurrentCartCode, getCustomerAccountService, getDiscountsToDisplay, getGlobalDiscountForEntryType, getNextBundleNumberToUse, getNotAllowedStatusesForCreateAmendCart, getOrderEntry, getOrderEntry, getOrderEntryConverter, getOriginalOrderCode, getPartialPaymentAmount, getPaymentOptionConverter, getPaymentOptionList, getPaymentOptions, getPaymentOptions, getPopulateCartEntryPropertyStrategyMap, getProductPriceLevels, getQuantityToOffer, getSelectedAccommodationValidationStrategyList, getSessionService, getTotalsForReservation, getTotalToPayPrice, getTotalToPayPriceAfterChangeDates, getTransportOfferingService, getTravelBundleCommerceCartFacade, getTravelCartService, getTravelCartValidationStrategyList, getTravelCommerceCartService, getTravelCommercePriceFacade, getTravellerData, getTravellerFacade, getTravellerService, getTravellerVersionIdFromCart, getTravelPromotionsFacade, getTravelRouteService, getTravelRulesService, getVoucherFacade, hasCartBeenAmended, isAdditionalSecurityActive, isAmendmentCart, isAnonymousUserCart, isCurrentCartValid, isNetPrice, isProductAvailable, isSameTransaction, isSelectedOption, isValidPaymentOption, populatePropertiesMap, populateRateDataFromCart, recalculateCart, removeBoundFromCart, removeCart, removeDeliveryAddress, removeEntriesForOriginDestinationRefNumber, removeInternalItems, removeSelectedAccommodationFromCart, removeSpecialServiceRequest, removeTravelOrderEntryInfo, removeVoucher, setAccommodationMapService, setAdditionalSecurity, setAddToCartParametersInContext, setBaseStoreService, setBookingFacade, setBookingService, setBundleCartFacade, setCommonI18NService, setCustomerAccountService, setNotAllowedStatusesForCreateAmendCart, setOrderEntryConverter, setOrderEntryType, setPaymentOptionConverter, setPopulateCartEntryPropertyStrategyMap, setSelectedAccommodationValidationStrategyList, setSessionService, setTransportOfferingService, setTravelBundleCommerceCartFacade, setTravelCartService, setTravelCartValidationStrategyList, setTravelCommerceCartService, setTravelCommercePriceFacade, setTravellerFacade, setTravellerService, setTravelPromotionsFacade, setTravelRouteService, setTravelRulesService, setVoucherFacade, updateBundleEntriesWithBundleNumber, validateCart, validateCart, validateOrderForAmendment, validateOriginDestinationRefNumbersInCart, validateSeatSelectionMethods 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, getModelService, getMostRecentCartGuidForUser, 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, setModelService, setPointOfServiceService, setPriceDataFactory, setProductConfigurationMergeStrategies, setProductFacade, setProductService, setUserService, updateCartEntry, updateCartEntry, updateCartEntry, updateCartMetadata, validateCartDataMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.commercefacades.order.CartFacade
addToCart, addToCart, estimateExternalTaxes, getCartsForCurrentUser, getDeliveryCountries, getMiniCart, getMostRecentCartGuidForUser, getSessionCart, getSessionCartGuid, getSessionCartWithEntryOrdering, hasEntries, hasSessionCart, removeEntryGroup, removeSessionCart, removeStaleCarts, restoreAnonymousCartAndMerge, restoreAnonymousCartAndTakeOwnership, restoreCartAndMerge, restoreSavedCart, updateCartEntry, updateCartEntry, updateCartEntry, updateCartMetadata, validateCartDataMethods inherited from interface de.hybris.platform.travelfacades.order.TransportCartFacade
addAncillaryToCart, addSeatEntry, addTransportBundleToCart, addTravellersToCart, changeCurrency, getBoundIdForEntryNumber, getSeatCartEntry, isOrderEntryPartOfBundle, isTravellerInEntryEligibleForAmendment, removeAncillaryCartEntry, removeSeatEntry, removeTravellerFromCart, updateAncillaryCartEntry
-
Constructor Details
-
DefaultShoppingTransportCartFacade
public DefaultShoppingTransportCartFacade()
-
-
Method Details
-
addShoppingAncillaryToCart
public abstract CartModificationData addShoppingAncillaryToCart(AncillaryEntryRequestData ancillaryEntryRQData) throws InvalidSessionCartException Description copied from interface:ShoppingTransportCartFacadeAdd Shopping/Commerce ancillary product to the current cart.- Specified by:
addShoppingAncillaryToCartin interfaceShoppingTransportCartFacade- Parameters:
ancillaryEntryRQData- the ancillary entry request data- Returns:
- the cart modification data
- Throws:
InvalidSessionCartException- The session cart is not found
-
removeAncillaryEntry
public void removeAncillaryEntry(Integer entryId) throws InvalidSessionCartException, ProductNotEligibleException, ProductPartOfBundleException, RemoveAncillaryException Description copied from interface:TransportCartFacadeRemoves ancillary product entry quantity from cart.- Specified by:
removeAncillaryEntryin interfaceTransportCartFacade- Overrides:
removeAncillaryEntryin classDefaultTransportCartFacade- Parameters:
entryId- the entry identifier.- Throws:
InvalidSessionCartException- the cart is not in session.ProductNotEligibleException- the product not eligible exception as not active or not a ancillary product.ProductPartOfBundleException- the product part of bundle exception.RemoveAncillaryException- the exception while removing product quantity.
-
updateBaggageCartEntry
public void updateBaggageCartEntry(Integer entryId, Integer quantity) throws InvalidSessionCartException, ProductNotEligibleException, ProductPartOfBundleException, ProductTravelRestrictionException, ProductStockNotAvailableException, UpdateBaggageException Description copied from interface:TransportCartFacadeUpdate ancillary baggage product entry quantity to cart.- Specified by:
updateBaggageCartEntryin interfaceTransportCartFacade- Overrides:
updateBaggageCartEntryin classDefaultTransportCartFacade- Parameters:
entryId- the entry identifier.quantity- the quantity.- Throws:
InvalidSessionCartException- the cart is not in session.ProductNotEligibleException- the product not eligible exception as not active or not a ancillary product.ProductPartOfBundleException- the product part of bundle exception.ProductTravelRestrictionException- the product travel restriction exception.ProductStockNotAvailableException- the product stock not available exception.UpdateBaggageException
-
updateCartEntry
public void updateCartEntry(Integer entryId, Integer quantity) throws InvalidSessionCartException, ProductNotEligibleException, ProductPartOfBundleException, ProductTravelRestrictionException, ProductStockNotAvailableException, UpdateAncillaryException Description copied from interface:TransportCartFacadeUpdate ancillary product entry quantity to cart.- Specified by:
updateCartEntryin interfaceTransportCartFacade- Overrides:
updateCartEntryin classDefaultTransportCartFacade- Parameters:
entryId- the entry identifier.quantity- the quantity.- Throws:
InvalidSessionCartException- the cart is not in session.ProductNotEligibleException- the product not eligible exception as not active or not a ancillary product.ProductPartOfBundleException- the product part of bundle exception.ProductTravelRestrictionException- the product travel restriction exception.ProductStockNotAvailableException- the product stock not available exception.UpdateAncillaryException- the exception while updating product quantity.
-
removeBaggageCartEntry
public void removeBaggageCartEntry(Integer entryId) throws TravelCartEntryException, TravelModelNotFoundException Description copied from interface:TransportCartFacadeRemoves baggage product entry quantity from cart.- Specified by:
removeBaggageCartEntryin interfaceTransportCartFacade- Overrides:
removeBaggageCartEntryin classDefaultTransportCartFacade- Parameters:
entryId- the entry id.- Throws:
TravelCartEntryExceptionTravelModelNotFoundException
-
getMerchandisingFacade
Gets merchandising facade.- Returns:
- the merchandising facade
-
setMerchandisingFacade
Sets merchandising facade.- Parameters:
merchandisingFacade- the merchandising facade
-