Class FindOrderDiscountValuesStrategy
java.lang.Object
de.hybris.platform.servicelayer.internal.service.AbstractService
de.hybris.platform.servicelayer.internal.service.AbstractBusinessService
de.hybris.platform.order.strategies.calculation.impl.FindOrderDiscountValuesStrategy
- All Implemented Interfaces:
FindDiscountValuesStrategy,ServiceLayerOnlyCalculationVerifier,Serializable,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.InitializingBean
public class FindOrderDiscountValuesStrategy
extends AbstractBusinessService
implements FindDiscountValuesStrategy
Implementation of
FindDiscountValuesStrategy that resolves DiscountValues from the order's attached
DiscountModels.- 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 TypeMethodDescriptionFind applicableDiscountValues for the target order entry.Find applicable globalDiscountValues for the target order.protected DiscountValuegetDiscountValue(DiscountModel discount, AbstractOrderModel order) Methods 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, writeReplaceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.order.strategies.calculation.FindDiscountValuesStrategy
getDiscountInformationMethods inherited from interface de.hybris.platform.order.strategies.calculation.ServiceLayerOnlyCalculationVerifier
isSLOnly
-
Constructor Details
-
FindOrderDiscountValuesStrategy
public FindOrderDiscountValuesStrategy()
-
-
Method Details
-
findDiscountValues
public List<DiscountValue> findDiscountValues(AbstractOrderEntryModel entry) throws CalculationException Description copied from interface:FindDiscountValuesStrategyFind applicableDiscountValues for the target order entry.- Specified by:
findDiscountValuesin interfaceFindDiscountValuesStrategy- Returns:
- List of
DiscountValues - Throws:
CalculationException
-
findDiscountValues
Description copied from interface:FindDiscountValuesStrategyFind applicable globalDiscountValues for the target order. They may originate from the current session's price factory orDiscountModels directly attached to the target order.- Specified by:
findDiscountValuesin interfaceFindDiscountValuesStrategy- Returns:
- List of
DiscountValues - Throws:
CalculationException
-
getDiscountValue
-