Class RuleOrderThresholdPerfectPartnerConditionTranslator
- java.lang.Object
-
- de.hybris.platform.ruledefinitions.conditions.AbstractRuleConditionTranslator
-
- de.hybris.platform.ruledefinitions.conditions.RuleOrderThresholdPerfectPartnerConditionTranslator
-
- All Implemented Interfaces:
RuleConditionTranslator
public class RuleOrderThresholdPerfectPartnerConditionTranslator extends AbstractRuleConditionTranslator
Creates the intermediate representation of Order Threshold Perfect Partner condition.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCART_THRESHOLD_PARAMstatic java.lang.StringIS_DISCOUNTED_PRICE_INCLUDED_PARAMstatic java.lang.StringPARTNER_PRODUCT_PARAM-
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, CART_RAO_TOTAL_ATTRIBUTE, CATEGORIES_OPERATOR_PARAM, CATEGORIES_PARAM, CATEGORY_RAO_CODE_ATTRIBUTE, OPERATOR_PARAM, ORDER_CONSUMED_RAO_CART_ATTRIBUTE, ORDER_ENTRY_RAO_BASE_PRICE_ATTRIBUTE, ORDER_ENTRY_RAO_CATEGORY_CODES_ATTRIBUTE, ORDER_ENTRY_RAO_PRODUCT_ATTRIBUTE, ORDER_ENTRY_RAO_PRODUCT_CODE_ATTRIBUTE, PRODUCT_CONSUMED_RAO_ENTRY_ATTRIBUTE, PRODUCT_RAO_CATEGORIES_ATTRIBUTE, PRODUCT_RAO_CODE_ATTRIBUTE, PRODUCTS_PARAM, QUANTITY_PARAM, VALUE_PARAM
-
-
Constructor Summary
Constructors Constructor Description RuleOrderThresholdPerfectPartnerConditionTranslator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RuleIrConditiongetConditions(RuleCompilerContext context, java.lang.String partnerProduct, java.util.Map<java.lang.String,java.math.BigDecimal> cartThreshold)protected java.lang.StringgetOrderThresholdConditionAttribute()voidsetOrderThresholdConditionAttribute(java.lang.String orderThresholdConditionAttribute)attribute name used for the order threshold condition ("total" by default, you can redeclare this property to use e.g.RuleIrConditiontranslate(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, createProductConsumedCondition, getConsumptionSupport, isConsumptionEnabled, setConsumptionEnabled, setConsumptionSupport, verifyAllPresent, verifyAnyPresent
-
-
-
-
Field Detail
-
PARTNER_PRODUCT_PARAM
public static final java.lang.String PARTNER_PRODUCT_PARAM
- See Also:
- Constant Field Values
-
CART_THRESHOLD_PARAM
public static final java.lang.String CART_THRESHOLD_PARAM
- See Also:
- Constant Field Values
-
IS_DISCOUNTED_PRICE_INCLUDED_PARAM
public static final java.lang.String IS_DISCOUNTED_PRICE_INCLUDED_PARAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
-
getConditions
protected RuleIrCondition getConditions(RuleCompilerContext context, java.lang.String partnerProduct, java.util.Map<java.lang.String,java.math.BigDecimal> cartThreshold)
-
getOrderThresholdConditionAttribute
protected java.lang.String getOrderThresholdConditionAttribute()
-
setOrderThresholdConditionAttribute
public void setOrderThresholdConditionAttribute(java.lang.String orderThresholdConditionAttribute)
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
-
-