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,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:
-
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, txManagerFields inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
tenant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetApplicableEntries(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, getVoucherMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
getModelService, getSessionService, getTxManager, setModelService, setSessionService, setTxManagerMethods inherited from class de.hybris.platform.servicelayer.internal.service.AbstractService
afterPropertiesSet, getCurrentTenant, setBeanName, setCurrentTenant, writeReplace
-
Constructor Details
-
DefaultVoucherRestrictionService
public DefaultVoucherRestrictionService()
-
-
Method Details
-
getApplicableEntries
- Specified by:
getApplicableEntriesin interfaceVoucherRestrictionService
-
isFulfilled
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
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.
-