Class TravelBundleCommerceAddToCartStrategy
java.lang.Object
de.hybris.platform.commerceservices.order.impl.AbstractCommerceCartStrategy
de.hybris.platform.commerceservices.order.impl.AbstractCommerceAddToCartStrategy
de.hybris.platform.commerceservices.order.impl.DefaultCommerceAddToCartStrategy
de.hybris.platform.commerceservices.order.impl.BundleCommerceAddToCartStrategy
de.hybris.platform.travelservices.order.impl.TravelBundleCommerceAddToCartStrategy
- All Implemented Interfaces:
de.hybris.platform.commerceservices.order.CommerceAddToCartStrategy
- Direct Known Subclasses:
ShoppingTravelBundleCommerceAddToCartStrategy
public class TravelBundleCommerceAddToCartStrategy
extends de.hybris.platform.commerceservices.order.impl.BundleCommerceAddToCartStrategy
The type Travel bundle commerce add to cart strategy.
-
Field Summary
Fields inherited from class de.hybris.platform.commerceservices.order.impl.AbstractCommerceAddToCartStrategy
APPEND_AS_LASTFields inherited from class de.hybris.platform.commerceservices.order.impl.AbstractCommerceCartStrategy
DEFAULT_FORCE_IN_STOCK_MAX_QUANTITY, forceInStockMaxQuantity -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CartEntryModeladdCartEntry(CommerceCartParameter parameter, long actualAllowedQuantityChange) Creates and adds a new cart entry, setting properOrderEntryTypeagainst itaddToCart(CommerceCartParameter parameter) protected de.hybris.platform.order.CalculationServiceGets calculation service.protected de.hybris.platform.servicelayer.session.SessionServiceGets session service.voidsetCalculationService(de.hybris.platform.order.CalculationService calculationService) Sets calculation service.voidsetSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService) Sets session service.Methods inherited from class de.hybris.platform.commerceservices.order.impl.DefaultCommerceAddToCartStrategy
addToCart, createAddToCartResp, createEmptyCartEntry, doAddToCart, getEntryMergeStrategy, getStatusCodeAllowedQuantityChange, getStatusCodeForNotAllowedQuantityChange, getUnit, isProductForCode, mergeEntry, setEntryMergeStrategyMethods inherited from class de.hybris.platform.commerceservices.order.impl.AbstractCommerceAddToCartStrategy
afterAddToCart, beforeAddToCart, getAddToCartValidators, getCommerceAddToCartMethodHooks, getConfigurationService, getFallbackAddToCartValidator, setAddToCartValidators, setCommerceAddToCartMethodHooks, setConfigurationService, setFallbackAddToCartValidator, validateAddToCartMethods inherited from class de.hybris.platform.commerceservices.order.impl.AbstractCommerceCartStrategy
checkCartLevel, getAllowedCartAdjustmentForProduct, getAvailableStockLevel, getBaseStoreService, getCartEntryDao, getCartService, getCommerceCartCalculationStrategy, getCommerceStockService, getEntryForNumber, getEntryForProductAndPointOfService, getEntryOrderChecker, getForceInStockMaxQuantity, getModelService, getProductService, isMaxOrderQuantitySet, isOrderEntryUpdatable, isStockLevelSufficient, normalizeEntryNumbers, setBaseStoreService, setCartEntryDao, setCartService, setCommerceCartCalculationStrategy, setCommerceStockService, setEntryOrderChecker, setForceInStockMaxQuantity, setModelService, setProductService
-
Constructor Details
-
TravelBundleCommerceAddToCartStrategy
public TravelBundleCommerceAddToCartStrategy()
-
-
Method Details
-
addToCart
public CommerceCartModification addToCart(CommerceCartParameter parameter) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException - Specified by:
addToCartin interfacede.hybris.platform.commerceservices.order.CommerceAddToCartStrategy- Overrides:
addToCartin classde.hybris.platform.commerceservices.order.impl.BundleCommerceAddToCartStrategy- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException
-
addCartEntry
protected CartEntryModel addCartEntry(CommerceCartParameter parameter, long actualAllowedQuantityChange) throws de.hybris.platform.commerceservices.order.CommerceCartModificationException Creates and adds a new cart entry, setting properOrderEntryTypeagainst it- Overrides:
addCartEntryin classde.hybris.platform.commerceservices.order.impl.DefaultCommerceAddToCartStrategy- Parameters:
parameter-actualAllowedQuantityChange-- Returns:
- Throws:
de.hybris.platform.commerceservices.order.CommerceCartModificationException
-
getSessionService
protected de.hybris.platform.servicelayer.session.SessionService getSessionService()Gets session service.- Returns:
- the session service
-
setSessionService
public void setSessionService(de.hybris.platform.servicelayer.session.SessionService sessionService) Sets session service.- Parameters:
sessionService- the session service
-
getCalculationService
protected de.hybris.platform.order.CalculationService getCalculationService()Gets calculation service.- Returns:
- the calculation service
-
setCalculationService
public void setCalculationService(de.hybris.platform.order.CalculationService calculationService) Sets calculation service.- Parameters:
calculationService- the calculation service
-