Class DefaultRuleActionsTranslator
java.lang.Object
de.hybris.platform.ruleengineservices.compiler.impl.DefaultRuleActionsTranslator
- All Implemented Interfaces:
RuleActionsTranslator,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class DefaultRuleActionsTranslator
extends Object
implements RuleActionsTranslator, org.springframework.context.ApplicationContextAware
Default implementation of
RuleActionsTranslator.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RuleActionTranslatorgetActionTranslator(String translatorId) org.springframework.context.ApplicationContextprotected RuleParameterValidatorgetParameterValidator(String validatorId) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetRuleCompilerProblemFactory(RuleCompilerProblemFactory ruleCompilerProblemFactory) translate(RuleCompilerContext context, List<RuleActionData> actions) Translates generic rule actions to the intermediate representation.voidvalidate(RuleCompilerContext context, List<RuleActionData> actions) Validates the generic rule actions.protected voidvalidateParameters(RuleCompilerContext context, RuleActionDefinitionData ruleDefinition, Map<String, RuleParameterData> parameters, Map<String, RuleParameterDefinitionData> parameterDefinitions)
-
Field Details
-
ACTION_DEFINITIONS_ATTRIBUTE
- See Also:
-
MANDATORY_PARAMETER_VALIDATOR
- See Also:
-
-
Constructor Details
-
DefaultRuleActionsTranslator
public DefaultRuleActionsTranslator()
-
-
Method Details
-
validate
Description copied from interface:RuleActionsTranslatorValidates the generic rule actions.- Specified by:
validatein interfaceRuleActionsTranslator- Parameters:
context- - the rule compiler contextactions- - the actions
-
validateParameters
protected void validateParameters(RuleCompilerContext context, RuleActionDefinitionData ruleDefinition, Map<String, RuleParameterData> parameters, Map<String, RuleParameterDefinitionData> parameterDefinitions) -
translate
Description copied from interface:RuleActionsTranslatorTranslates generic rule actions to the intermediate representation.- Specified by:
translatein interfaceRuleActionsTranslator- Parameters:
context- - the rule compiler contextactions- - the actions- Returns:
- the intermediate representation of the actions
-
getParameterValidator
-
getActionTranslator
-
getRuleCompilerProblemFactory
-
setRuleCompilerProblemFactory
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext() -
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-