Class PromotionRuleIrProcessor
- java.lang.Object
-
- de.hybris.platform.promotionengineservices.compiler.processors.PromotionRuleIrProcessor
-
- All Implemented Interfaces:
RuleIrProcessor
public class PromotionRuleIrProcessor extends java.lang.Object implements RuleIrProcessor
Adds required conditions to the intermediate representation.
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringAVAILABLE_QUANTITY_PARAMprotected static java.lang.StringCART_RAO_CURRENCY_ATTRIBUTEprotected static java.lang.StringCART_RAO_TOTAL_ATTRIBUTEprotected static java.lang.StringORDER_CONSUMED_RAO_CART_ATTRIBUTEstatic java.lang.StringWEBSITE_GROUP_RAO_ID_ATTRIBUTE
-
Constructor Summary
Constructors Constructor Description PromotionRuleIrProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PromotionsServicegetPromotionsService()protected java.util.Map<java.lang.String,java.lang.Object>getSharedParameters(java.util.List<RuleConditionData> ruleConditionDataList)protected SwitchServicegetSwitchService()voidprocess(RuleCompilerContext context, RuleIr ruleIr)Processes the intermediate representation.voidsetPromotionsService(PromotionsService promotionsService)voidsetSharedParametersProvider(SharedParametersProvider sharedParametersProvider)voidsetSwitchService(SwitchService switchService)
-
-
-
Field Detail
-
WEBSITE_GROUP_RAO_ID_ATTRIBUTE
public static final java.lang.String WEBSITE_GROUP_RAO_ID_ATTRIBUTE
- See Also:
- Constant Field Values
-
ORDER_CONSUMED_RAO_CART_ATTRIBUTE
protected static final java.lang.String ORDER_CONSUMED_RAO_CART_ATTRIBUTE
- See Also:
- Constant Field Values
-
AVAILABLE_QUANTITY_PARAM
protected static final java.lang.String AVAILABLE_QUANTITY_PARAM
- See Also:
- Constant Field Values
-
CART_RAO_CURRENCY_ATTRIBUTE
protected static final java.lang.String CART_RAO_CURRENCY_ATTRIBUTE
- See Also:
- Constant Field Values
-
CART_RAO_TOTAL_ATTRIBUTE
protected static final java.lang.String CART_RAO_TOTAL_ATTRIBUTE
- See Also:
- Constant Field Values
-
-
Method Detail
-
process
public void process(RuleCompilerContext context, RuleIr ruleIr)
Description copied from interface:RuleIrProcessorProcesses the intermediate representation.- Specified by:
processin interfaceRuleIrProcessor- Parameters:
context- - the compiler context
-
getSharedParameters
protected java.util.Map<java.lang.String,java.lang.Object> getSharedParameters(java.util.List<RuleConditionData> ruleConditionDataList)
-
getPromotionsService
public PromotionsService getPromotionsService()
-
setPromotionsService
public void setPromotionsService(PromotionsService promotionsService)
-
setSharedParametersProvider
public void setSharedParametersProvider(SharedParametersProvider sharedParametersProvider)
-
getSwitchService
protected SwitchService getSwitchService()
-
setSwitchService
public void setSwitchService(SwitchService switchService)
-
-