Class EvaluationFactoryImpl
java.lang.Object
ch.tocco.nice2.optional.qualification.impl.drools.promotion.EvaluationFactoryImpl
- All Implemented Interfaces:
EvaluationFactory
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.optional.qualification.impl.drools.promotion.EvaluationFactory
EvaluationFactory.PromotionScaffold
-
Constructor Summary
ConstructorDescriptionEvaluationFactoryImpl
(org.slf4j.Logger log, KieBaseCompiler kieBaseCompiler, Context context, QueryBuilderFactory queryBuilderFactory, CommandExecutor executor, QualificationBeanFactory qualificationBeanFactory, FormulaHelper formulaHelper, GradeComparisonHelper gradeComparisonHelper) -
Method Summary
Modifier and TypeMethodDescriptioncreateEvaluation
(Input input) create a collection of evaluations for a specificInput
createEvaluation
(InputData data) create an evaluation for a specificInputData
createEvaluations
(Evaluation rootEvaluation) create a collection of evaluations for a specificEvaluation
createPromotionFromScaffold
(EvaluationFactory.PromotionScaffold promotionScaffold) create an evaluation from previously setup datacreatePromotionScaffolds
(Evaluation rootEvaluation) gather all information needed to buildPromotionEvaluation
for aEvaluation
this can be used for instance when wanting to use PromotionEvaluations in different persist contexts, since no Entities are used herevoid
setRatingNodeGatheringType
(String ratingNodeGatheringType)
-
Constructor Details
-
EvaluationFactoryImpl
public EvaluationFactoryImpl(org.slf4j.Logger log, KieBaseCompiler kieBaseCompiler, Context context, QueryBuilderFactory queryBuilderFactory, CommandExecutor executor, QualificationBeanFactory qualificationBeanFactory, FormulaHelper formulaHelper, GradeComparisonHelper gradeComparisonHelper)
-
-
Method Details
-
createEvaluation
Description copied from interface:EvaluationFactory
create a collection of evaluations for a specificInput
- Specified by:
createEvaluation
in interfaceEvaluationFactory
-
createEvaluation
Description copied from interface:EvaluationFactory
create an evaluation for a specificInputData
- Specified by:
createEvaluation
in interfaceEvaluationFactory
-
createEvaluations
Description copied from interface:EvaluationFactory
create a collection of evaluations for a specificEvaluation
- Specified by:
createEvaluations
in interfaceEvaluationFactory
-
createPromotionScaffolds
public List<EvaluationFactory.PromotionScaffold> createPromotionScaffolds(Evaluation rootEvaluation) Description copied from interface:EvaluationFactory
gather all information needed to buildPromotionEvaluation
for aEvaluation
this can be used for instance when wanting to use PromotionEvaluations in different persist contexts, since no Entities are used here- Specified by:
createPromotionScaffolds
in interfaceEvaluationFactory
-
createPromotionFromScaffold
public PromotionEvaluation createPromotionFromScaffold(EvaluationFactory.PromotionScaffold promotionScaffold) Description copied from interface:EvaluationFactory
create an evaluation from previously setup data- Specified by:
createPromotionFromScaffold
in interfaceEvaluationFactory
-
setRatingNodeGatheringType
@Value("${nice2.optional.qualification.ratingNodeGatheringType}") public void setRatingNodeGatheringType(String ratingNodeGatheringType)
-