Class DefaultCommercePromotionRestrictionService
java.lang.Object
de.hybris.platform.commerceservices.promotion.impl.DefaultCommercePromotionRestrictionService
- All Implemented Interfaces:
CommercePromotionRestrictionService
public class DefaultCommercePromotionRestrictionService
extends Object
implements CommercePromotionRestrictionService
Default implementation of
CommercePromotionRestrictionService-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddOrderToRestriction(PromotionOrderRestrictionModel restriction, AbstractOrderModel order) Adds unique order toPromotionOrderRestrictionModelprotected CommercePromotionRestrictionDaoprotected ModelServiceGets thePromotionOrderRestrictionModelinstance forAbstractPromotionModelif exists.getPromotionRestrictions(AbstractPromotionModel promotion) Gets the list ofAbstractPromotionRestrictionModelforAbstractPromotionModel.protected booleanisOrderInRestriction(PromotionOrderRestrictionModel restriction, AbstractOrderModel order) voidremoveOrderFromRestriction(PromotionOrderRestrictionModel restriction, AbstractOrderModel order) Removes order fromPromotionOrderRestrictionModelvoidsetCommercePromotionRestrictionDao(CommercePromotionRestrictionDao commercePromotionRestrictionDao) voidsetModelService(ModelService modelService)
-
Constructor Details
-
DefaultCommercePromotionRestrictionService
public DefaultCommercePromotionRestrictionService()
-
-
Method Details
-
getPromotionRestrictions
public List<AbstractPromotionRestrictionModel> getPromotionRestrictions(AbstractPromotionModel promotion) Description copied from interface:CommercePromotionRestrictionServiceGets the list ofAbstractPromotionRestrictionModelforAbstractPromotionModel.- Specified by:
getPromotionRestrictionsin interfaceCommercePromotionRestrictionService- Parameters:
promotion- promotion- Returns:
- The list of
AbstractPromotionRestrictionModel
-
getPromotionOrderRestriction
public PromotionOrderRestrictionModel getPromotionOrderRestriction(AbstractPromotionModel promotion) Description copied from interface:CommercePromotionRestrictionServiceGets thePromotionOrderRestrictionModelinstance forAbstractPromotionModelif exists.- Specified by:
getPromotionOrderRestrictionin interfaceCommercePromotionRestrictionService- Parameters:
promotion- promotion- Returns:
- instance of
AbstractPromotionRestrictionModel
-
addOrderToRestriction
public void addOrderToRestriction(PromotionOrderRestrictionModel restriction, AbstractOrderModel order) Description copied from interface:CommercePromotionRestrictionServiceAdds unique order toPromotionOrderRestrictionModel- Specified by:
addOrderToRestrictionin interfaceCommercePromotionRestrictionService- Parameters:
restriction- restrictionorder- order
-
removeOrderFromRestriction
public void removeOrderFromRestriction(PromotionOrderRestrictionModel restriction, AbstractOrderModel order) Description copied from interface:CommercePromotionRestrictionServiceRemoves order fromPromotionOrderRestrictionModel- Specified by:
removeOrderFromRestrictionin interfaceCommercePromotionRestrictionService- Parameters:
restriction- restrictionorder- order
-
isOrderInRestriction
protected boolean isOrderInRestriction(PromotionOrderRestrictionModel restriction, AbstractOrderModel order) -
getCommercePromotionRestrictionDao
-
setCommercePromotionRestrictionDao
public void setCommercePromotionRestrictionDao(CommercePromotionRestrictionDao commercePromotionRestrictionDao) -
getModelService
-
setModelService
-