Class RuleCartTotalConditionTranslator
java.lang.Object
de.hybris.platform.ruledefinitions.conditions.AbstractRuleConditionTranslator
de.hybris.platform.ruledefinitions.conditions.RuleCartTotalConditionTranslator
- All Implemented Interfaces:
RuleConditionTranslator
-
Field Summary
Fields inherited from class de.hybris.platform.ruledefinitions.conditions.AbstractRuleConditionTranslator
AVAILABLE_QUANTITY_PARAM, BASE_PRODUCT_CODES_ATTRIBUTE, CART_RAO_CURRENCY_ATTRIBUTE, CART_RAO_ENTRIES_ATTRIBUTE, CATEGORIES_OPERATOR_PARAM, CATEGORIES_PARAM, OPERATOR_PARAM, ORDER_ENTRY_RAO_BASE_PRICE_ATTRIBUTE, ORDER_ENTRY_RAO_CATEGORY_CODES_ATTRIBUTE, ORDER_ENTRY_RAO_PRODUCT_CODE_ATTRIBUTE, PRODUCT_CONSUMED_RAO_ENTRY_ATTRIBUTE, PRODUCTS_PARAM, QUANTITY_PARAM, VALUE_PARAM -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddCartTotalConditions(RuleCompilerContext context, AmountOperator operator, Map<String, BigDecimal> value, RuleIrGroupCondition irCartTotalCondition) protected Stringprotected RuleIrGroupConditiongetCartTotalConditions(RuleCompilerContext context, AmountOperator operator, Map<String, BigDecimal> value) voidsetCartThresholdConditionAttribute(String cartThresholdConditionAttribute) attribute name used for the order threshold condition ("total" by default, you can redeclare this property to use e.g.translate(RuleCompilerContext context, RuleConditionData condition, RuleConditionDefinitionData conditionDefinition) Translates a rule condition to the intermediate representation.Methods inherited from class de.hybris.platform.ruledefinitions.conditions.AbstractRuleConditionTranslator
covertToNullIfEmptyCollection, covertToNullIfEmptyMap, getConsumptionSupport, setConsumptionSupport, verifyAllPresent, verifyAnyPresent
-
Constructor Details
-
RuleCartTotalConditionTranslator
public RuleCartTotalConditionTranslator()
-
-
Method Details
-
translate
public RuleIrCondition translate(RuleCompilerContext context, RuleConditionData condition, RuleConditionDefinitionData conditionDefinition) Description copied from interface:RuleConditionTranslatorTranslates a rule condition to the intermediate representation.- Parameters:
context- - the compiler contextcondition- - the conditionconditionDefinition- - the condition definition- Returns:
- the intermediate representation for the condition
-
getCartTotalConditions
protected RuleIrGroupCondition getCartTotalConditions(RuleCompilerContext context, AmountOperator operator, Map<String, BigDecimal> value) -
addCartTotalConditions
protected void addCartTotalConditions(RuleCompilerContext context, AmountOperator operator, Map<String, BigDecimal> value, RuleIrGroupCondition irCartTotalCondition) -
getCartThresholdConditionAttribute
-
setCartThresholdConditionAttribute
attribute name used for the order threshold condition ("total" by default, you can redeclare this property to use e.g. "totalIncludingCharges" or "subTotal" instead)- Parameters:
orderThresholdConditionAttribute- attribute name used for the order threshold condition
-