Class DefaultCommerceCartRestorationStrategy
java.lang.Object
de.hybris.platform.commerceservices.order.impl.AbstractCommerceCartStrategy
de.hybris.platform.commerceservices.order.impl.DefaultCommerceCartRestorationStrategy
- All Implemented Interfaces:
CommerceCartRestorationStrategy
- Direct Known Subclasses:
DefaultCommerceSaveCartRestorationStrategy
public class DefaultCommerceCartRestorationStrategy
extends AbstractCommerceCartStrategy
implements CommerceCartRestorationStrategy
-
Field Summary
Fields 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 voidclearPaymentTransactionsOnCart(CartModel cartModel) protected BaseSiteServiceprotected CartFactoryprotected intprotected CommerceAddToCartStrategyprotected CommerceCommonI18NServiceprotected KeyGeneratorprotected TimeServiceprotected booleanisCartInValidityPeriod(CartModel cartModel) protected Collection<CommerceCartModification>rebuildSessionCart(CommerceCartParameter parameter) protected voidrecalculateCartIfNotIgnored(CommerceCartParameter parameter) Recalculates the cart depending on ignoreRecalculation property of theCommerceCartParameterrestoreCart(CommerceCartParameter parameter) protected voidrewriteEntriesFromCartToCart(CommerceCartParameter parameter, CartModel fromCartModel, CartModel toCartModel, List<CommerceCartModification> modifications) voidsetBaseSiteService(BaseSiteService baseSiteService) voidsetCartFactory(CartFactory cartFactory) voidsetCartValidityPeriod(int cartValidityPeriod) voidsetCommerceAddToCartStrategy(CommerceAddToCartStrategy commerceAddToCartStrategy) voidsetCommerceCommonI18NService(CommerceCommonI18NService commerceCommonI18NService) voidsetGuidKeyGenerator(KeyGenerator guidKeyGenerator) voidsetTimeService(TimeService timeService) Methods 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
-
DefaultCommerceCartRestorationStrategy
public DefaultCommerceCartRestorationStrategy()
-
-
Method Details
-
restoreCart
public CommerceCartRestoration restoreCart(CommerceCartParameter parameter) throws CommerceCartRestorationException - Specified by:
restoreCartin interfaceCommerceCartRestorationStrategy- Throws:
CommerceCartRestorationException
-
recalculateCartIfNotIgnored
Recalculates the cart depending on ignoreRecalculation property of theCommerceCartParameter- Parameters:
parameter- cart parameter model
-
rewriteEntriesFromCartToCart
protected void rewriteEntriesFromCartToCart(CommerceCartParameter parameter, CartModel fromCartModel, CartModel toCartModel, List<CommerceCartModification> modifications) throws CommerceCartModificationException -
rebuildSessionCart
protected Collection<CommerceCartModification> rebuildSessionCart(CommerceCartParameter parameter) throws CommerceCartModificationException -
isCartInValidityPeriod
-
clearPaymentTransactionsOnCart
-
getCartValidityPeriod
protected int getCartValidityPeriod() -
setCartValidityPeriod
public void setCartValidityPeriod(int cartValidityPeriod) -
getCartFactory
-
setCartFactory
-
getTimeService
-
setTimeService
-
getBaseSiteService
-
setBaseSiteService
-
getGuidKeyGenerator
-
setGuidKeyGenerator
-
getCommerceCommonI18NService
-
setCommerceCommonI18NService
-
getCommerceAddToCartStrategy
-
setCommerceAddToCartStrategy
-