public class CartTotalSumOperandValueProvider extends AbstractCartOperandValueProvider implements OperandValueProvider<BTGCartTotalSumOperandModel>
BTGCartTotalSumOperandModel for the given user. Utilizes CartService to fetch the cart's
value and assures that value is represented in base currencycartServicecommonI18NService| Constructor and Description |
|---|
CartTotalSumOperandValueProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected PriceValue |
getCartTotalValue(UserModel user,
BTGConditionEvaluationScope scope,
boolean net) |
java.lang.Object |
getValue(BTGCartTotalSumOperandModel operand,
UserModel user,
BTGConditionEvaluationScope evaluationScope)
Retrieves the concrete value from a
BTGOperandModel. |
java.lang.Class |
getValueType(BTGCartTotalSumOperandModel operand)
Retrieves the value-type from a
BTGOperandModel. |
setCartServicegetPriceValueInBaseCurrency, setCommonI18NService, sumPriceValuesInBaseCurrencypublic java.lang.Object getValue(BTGCartTotalSumOperandModel operand, UserModel user, BTGConditionEvaluationScope evaluationScope)
OperandValueProviderBTGOperandModel.getValue in interface OperandValueProvider<BTGCartTotalSumOperandModel>operand - BTGOperandModel which is asked for it's valueevaluationScope - YTODOpublic java.lang.Class getValueType(BTGCartTotalSumOperandModel operand)
OperandValueProviderBTGOperandModel.
The type is always assignable to the value-type returned by
OperandValueProvider.getValue(BTGOperandModel, UserModel, BTGConditionEvaluationScope).BTGOperandModel which is asked for it's typegetValueType in interface OperandValueProvider<BTGCartTotalSumOperandModel>protected PriceValue getCartTotalValue(UserModel user, BTGConditionEvaluationScope scope, boolean net)
Copyright © 2018 SAP SE. All Rights Reserved.