public class PromotionRuleIrProcessor extends java.lang.Object implements RuleIrProcessor
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
ACTION_PARAMETER_CART_THRESHOLD |
protected static java.lang.String |
AVAILABLE_QUANTITY_PARAM |
protected static java.lang.String |
CART_RAO_CURRENCY_ATTRIBUTE |
protected static java.lang.String |
CART_RAO_TOTAL_ATTRIBUTE |
protected static java.lang.String |
CART_TOTAL_OPERATOR |
protected static java.lang.String |
ORDER_CONSUMED_RAO_CART_ATTRIBUTE |
static java.lang.String |
WEBSITE_GROUP_RAO_ID_ATTRIBUTE |
| Constructor and Description |
|---|
PromotionRuleIrProcessor() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCartThresholdActionParam(java.util.Collection<RuleIrGroupCondition> cartTotalConditions) |
protected java.util.Collection<RuleIrGroupCondition> |
getCartTotalThresholdConditions(java.util.Collection<RuleIrCondition> conditions) |
protected java.util.Collection<RuleIrGroupCondition> |
getCartTotalThresholdConditions(RuleIrCondition condition) |
PromotionsService |
getPromotionsService() |
protected java.util.Map<java.lang.String,java.lang.Object> |
getSharedConditionParameters(java.util.Collection<RuleIrCondition> cartConditions) |
protected boolean |
isCartTotalThresholdGroupCondition(RuleIrGroupCondition irGroupCondition) |
protected boolean |
isRuleNonStackable(RuleCompilerContext context)
Deprecated.
since 6.7
|
void |
process(RuleCompilerContext context,
RuleIr ruleIr)
Processes the intermediate representation.
|
void |
setPromotionsService(PromotionsService promotionsService) |
public static final java.lang.String WEBSITE_GROUP_RAO_ID_ATTRIBUTE
protected static final java.lang.String ORDER_CONSUMED_RAO_CART_ATTRIBUTE
protected static final java.lang.String AVAILABLE_QUANTITY_PARAM
protected static final java.lang.String ACTION_PARAMETER_CART_THRESHOLD
protected static final java.lang.String CART_RAO_CURRENCY_ATTRIBUTE
protected static final java.lang.String CART_RAO_TOTAL_ATTRIBUTE
protected static final java.lang.String CART_TOTAL_OPERATOR
public void process(RuleCompilerContext context, RuleIr ruleIr)
RuleIrProcessorprocess in interface RuleIrProcessorcontext - - the compiler contextprotected java.util.Map<java.lang.String,java.lang.Object> getSharedConditionParameters(java.util.Collection<RuleIrCondition> cartConditions)
protected java.util.Map<java.lang.String,java.lang.Object> getCartThresholdActionParam(java.util.Collection<RuleIrGroupCondition> cartTotalConditions)
protected java.util.Collection<RuleIrGroupCondition> getCartTotalThresholdConditions(java.util.Collection<RuleIrCondition> conditions)
protected java.util.Collection<RuleIrGroupCondition> getCartTotalThresholdConditions(RuleIrCondition condition)
protected boolean isCartTotalThresholdGroupCondition(RuleIrGroupCondition irGroupCondition)
@Deprecated protected boolean isRuleNonStackable(RuleCompilerContext context)
public PromotionsService getPromotionsService()
public void setPromotionsService(PromotionsService promotionsService)
Copyright © 2018 SAP SE. All Rights Reserved.