Class DefaultCommercePromotionRestrictionFacade
java.lang.Object
de.hybris.platform.commercefacades.promotion.impl.DefaultCommercePromotionRestrictionFacade
- All Implemented Interfaces:
CommercePromotionRestrictionFacade
public class DefaultCommercePromotionRestrictionFacade
extends Object
implements CommercePromotionRestrictionFacade
Default implementation of
CommercePromotionRestrictionFacade.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddisablePromotionForCurrentCart(String promotionCode) Disables OrderPromotion by removing current cart from PromotionOrderRestrictionvoidenablePromotionForCurrentCart(String promotionCode) Enables OrderPromotion by adding current cart to PromotionOrderRestrictionprotected CartServiceprotected CommerceCartServiceprotected CommercePromotionRestrictionServiceprotected CommercePromotionServicevoidsetCartService(CartService cartService) voidsetCommerceCartService(CommerceCartService commerceCartService) voidsetCommercePromotionRestrictionService(CommercePromotionRestrictionService commercePromotionRestrictionService) voidsetCommercePromotionService(CommercePromotionService commercePromotionService)
-
Constructor Details
-
DefaultCommercePromotionRestrictionFacade
public DefaultCommercePromotionRestrictionFacade()
-
-
Method Details
-
enablePromotionForCurrentCart
public void enablePromotionForCurrentCart(String promotionCode) throws CommercePromotionRestrictionException Description copied from interface:CommercePromotionRestrictionFacadeEnables OrderPromotion by adding current cart to PromotionOrderRestriction- Specified by:
enablePromotionForCurrentCartin interfaceCommercePromotionRestrictionFacade- Parameters:
promotionCode- promotion- Throws:
CommercePromotionRestrictionException
-
disablePromotionForCurrentCart
public void disablePromotionForCurrentCart(String promotionCode) throws CommercePromotionRestrictionException Description copied from interface:CommercePromotionRestrictionFacadeDisables OrderPromotion by removing current cart from PromotionOrderRestriction- Specified by:
disablePromotionForCurrentCartin interfaceCommercePromotionRestrictionFacade- Parameters:
promotionCode- promotion- Throws:
CommercePromotionRestrictionException
-
getCommercePromotionRestrictionService
-
setCommercePromotionRestrictionService
public void setCommercePromotionRestrictionService(CommercePromotionRestrictionService commercePromotionRestrictionService) -
getCommercePromotionService
-
setCommercePromotionService
-
getCartService
-
setCartService
-
getCommerceCartService
-
setCommerceCartService
-