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 Constructor Description DefaultCommerceCartRestorationStrategy()
-
Method Summary
-
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
-
-
-
-
Method Detail
-
restoreCart
public CommerceCartRestoration restoreCart(CommerceCartParameter parameter) throws CommerceCartRestorationException
- Specified by:
restoreCartin interfaceCommerceCartRestorationStrategy- Throws:
CommerceCartRestorationException
-
recalculateCartIfNotIgnored
protected void recalculateCartIfNotIgnored(CommerceCartParameter parameter)
Recalculates the cart depending on ignoreRecalculation property of theCommerceCartParameter- Parameters:
parameter- cart parameter model
-
rewriteEntriesFromCartToCart
protected void rewriteEntriesFromCartToCart(CommerceCartParameter parameter, CartModel fromCartModel, CartModel toCartModel, java.util.List<CommerceCartModification> modifications) throws CommerceCartModificationException
-
rebuildSessionCart
protected java.util.Collection<CommerceCartModification> rebuildSessionCart(CommerceCartParameter parameter) throws CommerceCartModificationException
-
isCartInValidityPeriod
protected boolean isCartInValidityPeriod(CartModel cartModel)
-
clearPaymentTransactionsOnCart
protected void clearPaymentTransactionsOnCart(CartModel cartModel)
-
getCartValidityPeriod
protected int getCartValidityPeriod()
-
setCartValidityPeriod
public void setCartValidityPeriod(int cartValidityPeriod)
-
getCartFactory
protected CartFactory getCartFactory()
-
setCartFactory
public void setCartFactory(CartFactory cartFactory)
-
getTimeService
protected TimeService getTimeService()
-
setTimeService
public void setTimeService(TimeService timeService)
-
getBaseSiteService
protected BaseSiteService getBaseSiteService()
-
setBaseSiteService
public void setBaseSiteService(BaseSiteService baseSiteService)
-
getGuidKeyGenerator
protected KeyGenerator getGuidKeyGenerator()
-
setGuidKeyGenerator
public void setGuidKeyGenerator(KeyGenerator guidKeyGenerator)
-
getCommerceCommonI18NService
protected CommerceCommonI18NService getCommerceCommonI18NService()
-
setCommerceCommonI18NService
public void setCommerceCommonI18NService(CommerceCommonI18NService commerceCommonI18NService)
-
getCommerceAddToCartStrategy
protected CommerceAddToCartStrategy getCommerceAddToCartStrategy()
-
setCommerceAddToCartStrategy
public void setCommerceAddToCartStrategy(CommerceAddToCartStrategy commerceAddToCartStrategy)
-
-