Class RuleCartTotalConditionTranslator

java.lang.Object
de.hybris.platform.ruledefinitions.conditions.AbstractRuleConditionTranslator
de.hybris.platform.ruledefinitions.conditions.RuleCartTotalConditionTranslator
All Implemented Interfaces:
RuleConditionTranslator

public class RuleCartTotalConditionTranslator extends AbstractRuleConditionTranslator
  • Constructor Details

    • RuleCartTotalConditionTranslator

      public RuleCartTotalConditionTranslator()
  • Method Details

    • translate

      public RuleIrCondition translate(RuleCompilerContext context, RuleConditionData condition, RuleConditionDefinitionData conditionDefinition)
      Description copied from interface: RuleConditionTranslator
      Translates a rule condition to the intermediate representation.
      Parameters:
      context - - the compiler context
      condition - - the condition
      conditionDefinition - - 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

      protected String getCartThresholdConditionAttribute()
    • setCartThresholdConditionAttribute

      public void setCartThresholdConditionAttribute(String cartThresholdConditionAttribute)
      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