Class DefaultCommercePromotionRestrictionService
- java.lang.Object
-
- de.hybris.platform.commerceservices.promotion.impl.DefaultCommercePromotionRestrictionService
-
- All Implemented Interfaces:
CommercePromotionRestrictionService
public class DefaultCommercePromotionRestrictionService extends java.lang.Object implements CommercePromotionRestrictionService
Default implementation ofCommercePromotionRestrictionService
-
-
Constructor Summary
Constructors Constructor Description DefaultCommercePromotionRestrictionService()
-
Method Summary
-
-
-
Method Detail
-
getPromotionRestrictions
public java.util.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
protected CommercePromotionRestrictionDao getCommercePromotionRestrictionDao()
-
setCommercePromotionRestrictionDao
public void setCommercePromotionRestrictionDao(CommercePromotionRestrictionDao commercePromotionRestrictionDao)
-
getModelService
protected ModelService getModelService()
-
setModelService
public void setModelService(ModelService modelService)
-
-