Package de.hybris.platform.voucher.impl
Class DefaultVoucherRestrictionService
- java.lang.Object
-
- de.hybris.platform.servicelayer.internal.service.AbstractService
-
- de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
-
- de.hybris.platform.voucher.impl.AbstractVoucherService
-
- de.hybris.platform.voucher.impl.DefaultVoucherRestrictionService
-
- All Implemented Interfaces:
VoucherRestrictionService,java.io.Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
public class DefaultVoucherRestrictionService extends AbstractVoucherService implements VoucherRestrictionService
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
AbstractService.SerializableDTO
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
modelService, sessionService, txManager
-
Fields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant
-
-
Constructor Summary
Constructors Constructor Description DefaultVoucherRestrictionService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VoucherEntrySetgetApplicableEntries(RestrictionModel restriction, AbstractOrderModel order)booleanisFulfilled(RestrictionModel restriction, AbstractOrderModel order)Returns true if the specified abstract order is not null and fulfills this restriction.booleanisFulfilled(RestrictionModel restriction, ProductModel product)Returns true if the specified product is not null and fulfills this restriction.-
Methods inherited from class de.hybris.platform.voucher.impl.AbstractVoucherService
getAbstractOrder, getCart, getOrder, getProduct, getRestriction, getUser, getVoucher
-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManager
-
Methods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
-
-
-
Method Detail
-
getApplicableEntries
public VoucherEntrySet getApplicableEntries(RestrictionModel restriction, AbstractOrderModel order)
- Specified by:
getApplicableEntriesin interfaceVoucherRestrictionService
-
isFulfilled
public boolean isFulfilled(RestrictionModel restriction, AbstractOrderModel order)
Description copied from interface:VoucherRestrictionServiceReturns true if the specified abstract order is not null and fulfills this restriction.- Specified by:
isFulfilledin interfaceVoucherRestrictionService- Parameters:
restriction- the restrictionorder- the abstract order to check whether it fullfills this restriction.- Returns:
- true if the specified abstract order is not null and fulfills this restriction, false else.
-
isFulfilled
public boolean isFulfilled(RestrictionModel restriction, ProductModel product)
Description copied from interface:VoucherRestrictionServiceReturns true if the specified product is not null and fulfills this restriction.- Specified by:
isFulfilledin interfaceVoucherRestrictionService- Parameters:
restriction- the restrictionproduct- the product to check whether it fullfills this restriction.- Returns:
- true if the specified product is not null and fulfills this restriction, false else.
-
-