Class DefaultSLFindOrderDiscountValuesStrategy
java.lang.Object
de.hybris.platform.order.strategies.calculation.impl.servicelayer.DefaultSLFindOrderDiscountValuesStrategy
- All Implemented Interfaces:
FindDiscountValuesStrategy,ServiceLayerOnlyCalculationVerifier
public class DefaultSLFindOrderDiscountValuesStrategy
extends Object
implements FindDiscountValuesStrategy
Implementation of
FindDiscountValuesStrategy that resolves DiscountValues from the order's attached
DiscountModels.-
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) booleanisSLOnly()Implement this and return true if you are using only service-layer modelsMethods 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
getDiscountInformation
-
Constructor Details
-
DefaultSLFindOrderDiscountValuesStrategy
public DefaultSLFindOrderDiscountValuesStrategy()
-
-
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
-
isSLOnly
public boolean isSLOnly()Description copied from interface:ServiceLayerOnlyCalculationVerifierImplement this and return true if you are using only service-layer models- Specified by:
isSLOnlyin interfaceServiceLayerOnlyCalculationVerifier- Returns:
- true, if only service-layer models are used
-
getDiscountValue
-