Class DefaultRuleCompilerResultFactory
- java.lang.Object
-
- de.hybris.platform.ruleengineservices.compiler.impl.DefaultRuleCompilerResultFactory
-
- All Implemented Interfaces:
RuleCompilerResultFactory
public class DefaultRuleCompilerResultFactory extends java.lang.Object implements RuleCompilerResultFactory
Default implementation ofRuleCompilerResultFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultRuleCompilerResultFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RuleCompilerResultcreate(RuleCompilerResult compilerResult, long ruleVersion)Creates a result of rule compiler process based on the existing compiler result, decorating it with rule version information.RuleCompilerResultcreate(AbstractRuleModel rule, RuleCompilerResult.Result result, java.util.List<RuleCompilerProblem> problems)Creates a result of rule compiler process.RuleCompilerResultcreate(AbstractRuleModel rule, java.util.List<RuleCompilerProblem> problems)Creates a result of rule compiler process.
-
-
-
Method Detail
-
create
public RuleCompilerResult create(AbstractRuleModel rule, RuleCompilerResult.Result result, java.util.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
public RuleCompilerResult create(AbstractRuleModel rule, java.util.List<RuleCompilerProblem> problems)
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
public RuleCompilerResult create(RuleCompilerResult compilerResult, long ruleVersion)
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
-
-