public class DefaultVoucherRestrictionService extends AbstractVoucherService implements VoucherRestrictionService
AbstractService.SerializableDTOmodelService, sessionService, txManagertenant| Constructor and Description |
|---|
DefaultVoucherRestrictionService() |
| Modifier and Type | Method and Description |
|---|---|
VoucherEntrySet |
getApplicableEntries(RestrictionModel restriction,
AbstractOrderModel order) |
boolean |
isFulfilled(RestrictionModel restriction,
AbstractOrderModel order)
Returns true if the specified abstract order is not null and fulfills this restriction.
|
boolean |
isFulfilled(RestrictionModel restriction,
ProductModel product)
Returns true if the specified product is not null and fulfills this restriction.
|
getAbstractOrder, getCart, getOrder, getProduct, getRestriction, getUser, getVouchergetModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerafterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplacepublic VoucherEntrySet getApplicableEntries(RestrictionModel restriction, AbstractOrderModel order)
getApplicableEntries in interface VoucherRestrictionServicepublic boolean isFulfilled(RestrictionModel restriction, AbstractOrderModel order)
VoucherRestrictionServiceisFulfilled in interface VoucherRestrictionServicerestriction - the restrictionorder - the abstract order to check whether it fullfills this restriction.public boolean isFulfilled(RestrictionModel restriction, ProductModel product)
VoucherRestrictionServiceisFulfilled in interface VoucherRestrictionServicerestriction - the restrictionproduct - the product to check whether it fullfills this restriction.Copyright © 2018 SAP SE. All Rights Reserved.