Class DefaultRuleCompilerResultFactory
java.lang.Object
de.hybris.platform.ruleengineservices.compiler.impl.DefaultRuleCompilerResultFactory
- All Implemented Interfaces:
RuleCompilerResultFactory
Default implementation of
RuleCompilerResultFactory-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate(RuleCompilerResult compilerResult, long ruleVersion) Creates a result of rule compiler process based on the existing compiler result, decorating it with rule version information.create(AbstractRuleModel rule, RuleCompilerResult.Result result, List<RuleCompilerProblem> problems) Creates a result of rule compiler process.create(AbstractRuleModel rule, List<RuleCompilerProblem> problems) Creates a result of rule compiler process.
-
Constructor Details
-
DefaultRuleCompilerResultFactory
public DefaultRuleCompilerResultFactory()
-
-
Method Details
-
create
public RuleCompilerResult create(AbstractRuleModel rule, RuleCompilerResult.Result result, List<RuleCompilerProblem> problems) Description copied from interface:RuleCompilerResultFactoryCreates a result of rule compiler process.- Specified by:
createin interfaceRuleCompilerResultFactory- Parameters:
rule- - source rule entityresult- - enum: error or successproblems- - list of compilation problems- Returns:
- rule compiler result
-
create
Description copied from interface:RuleCompilerResultFactoryCreates a result of rule compiler process. Based on problems, calculates if the compilation process was successful or not.- Specified by:
createin interfaceRuleCompilerResultFactory- Parameters:
rule- - source rule entityproblems- - list of compilation problems- Returns:
- rule compiler result
-
create
Description copied from interface:RuleCompilerResultFactoryCreates a result of rule compiler process based on the existing compiler result, decorating it with rule version information.- Specified by:
createin interfaceRuleCompilerResultFactory- Parameters:
compilerResult- - rule compiler resultruleVersion- - version of the compiled rule- Returns:
- rule compiler result
-