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
ConstructorsConstructorDescriptionEvaluationFactoryImpl
(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, Predicate<Entity> participantFilter) 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 herecreatePromotionsFromScaffolds
(Iterable<EvaluationFactory.PromotionScaffold> promotionScaffolds) create evaluations from previously setup datavoid
setRatingNodeGatheringType
(String ratingNodeGatheringType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ch.tocco.nice2.optional.qualification.impl.drools.promotion.EvaluationFactory
createPromotionScaffolds
-
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, Predicate<Entity> participantFilter) 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
-
createPromotionsFromScaffolds
public List<PromotionEvaluation> createPromotionsFromScaffolds(Iterable<EvaluationFactory.PromotionScaffold> promotionScaffolds) Description copied from interface:EvaluationFactory
create evaluations from previously setup data- Specified by:
createPromotionsFromScaffolds
in interfaceEvaluationFactory
-
setRatingNodeGatheringType
@Value("${nice2.optional.qualification.ratingNodeGatheringType}") public void setRatingNodeGatheringType(String ratingNodeGatheringType)
-