Class RuleExecutableActionTranslator
- java.lang.Object
-
- de.hybris.platform.ruleengineservices.definitions.actions.RuleExecutableActionTranslator
-
- All Implemented Interfaces:
RuleActionTranslator,RuleActionValidator,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class RuleExecutableActionTranslator extends java.lang.Object implements RuleActionTranslator, RuleActionValidator, org.springframework.context.ApplicationContextAware
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringACTION_ID_PARAM
-
Constructor Summary
Constructors Constructor Description RuleExecutableActionTranslator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.context.ApplicationContextgetApplicationContext()RuleCompilerProblemFactorygetRuleCompilerProblemFactory()protected RuleExecutableActiongetRuleExecutableAction(java.lang.String actionId)voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)voidsetRuleCompilerProblemFactory(RuleCompilerProblemFactory ruleCompilerProblemFactory)RuleIrActiontranslate(RuleCompilerContext context, RuleActionData action, RuleActionDefinitionData actionDefinition)Translates a rule action to the intermediate representation.voidvalidate(RuleCompilerContext context, RuleActionData action, RuleActionDefinitionData actionDefinition)Validates a rule action.
-
-
-
Field Detail
-
ACTION_ID_PARAM
public static final java.lang.String ACTION_ID_PARAM
- See Also:
- Constant Field Values
-
-
Method Detail
-
validate
public void validate(RuleCompilerContext context, RuleActionData action, RuleActionDefinitionData actionDefinition)
Description copied from interface:RuleActionValidatorValidates a rule action.- Specified by:
validatein interfaceRuleActionValidator- Parameters:
context- - the compiler contextaction- - the actionactionDefinition- - the action definition
-
translate
public RuleIrAction translate(RuleCompilerContext context, RuleActionData action, RuleActionDefinitionData actionDefinition)
Description copied from interface:RuleActionTranslatorTranslates a rule action to the intermediate representation.- Specified by:
translatein interfaceRuleActionTranslator- Parameters:
context- - the compiler contextaction- - the actionactionDefinition- - the action definition- Returns:
- the intermediate representation for the action
-
getRuleExecutableAction
protected RuleExecutableAction getRuleExecutableAction(java.lang.String actionId)
-
getRuleCompilerProblemFactory
public RuleCompilerProblemFactory getRuleCompilerProblemFactory()
-
setRuleCompilerProblemFactory
public void setRuleCompilerProblemFactory(RuleCompilerProblemFactory ruleCompilerProblemFactory)
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
-