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, EntitiesContextFactory entitiesContextFactory) -
Method Summary
Modifier and TypeMethodDescriptioncreateEvaluation(Input input) create a collection of evaluations for a specificInputcreateEvaluation(InputData data) create an evaluation for a specificInputDatacreateEvaluations(Evaluation rootEvaluation) create a collection of evaluations for a specificEvaluationcreatePromotionFromScaffold(EvaluationFactory.PromotionScaffold promotionScaffold) create an evaluation from previously setup datacreatePromotionScaffolds(Evaluation rootEvaluation, Predicate<Entity> participantFilter) gather all information needed to buildPromotionEvaluationfor aEvaluationthis 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 datavoidsetRatingNodeGatheringType(String ratingNodeGatheringType) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, EntitiesContextFactory entitiesContextFactory)
-
-
Method Details
-
createEvaluation
Description copied from interface:EvaluationFactorycreate a collection of evaluations for a specificInput- Specified by:
createEvaluationin interfaceEvaluationFactory
-
createEvaluation
Description copied from interface:EvaluationFactorycreate an evaluation for a specificInputData- Specified by:
createEvaluationin interfaceEvaluationFactory
-
createEvaluations
Description copied from interface:EvaluationFactorycreate a collection of evaluations for a specificEvaluation- Specified by:
createEvaluationsin interfaceEvaluationFactory
-
createPromotionScaffolds
public List<EvaluationFactory.PromotionScaffold> createPromotionScaffolds(Evaluation rootEvaluation, Predicate<Entity> participantFilter) Description copied from interface:EvaluationFactorygather all information needed to buildPromotionEvaluationfor aEvaluationthis can be used for instance when wanting to use PromotionEvaluations in different persist contexts, since no Entities are used here- Specified by:
createPromotionScaffoldsin interfaceEvaluationFactory
-
createPromotionFromScaffold
public PromotionEvaluation createPromotionFromScaffold(EvaluationFactory.PromotionScaffold promotionScaffold) Description copied from interface:EvaluationFactorycreate an evaluation from previously setup data- Specified by:
createPromotionFromScaffoldin interfaceEvaluationFactory
-
createPromotionsFromScaffolds
public List<PromotionEvaluation> createPromotionsFromScaffolds(Iterable<EvaluationFactory.PromotionScaffold> promotionScaffolds) Description copied from interface:EvaluationFactorycreate evaluations from previously setup data- Specified by:
createPromotionsFromScaffoldsin interfaceEvaluationFactory
-
setRatingNodeGatheringType
@Value("${nice2.optional.qualification.ratingNodeGatheringType}") public void setRatingNodeGatheringType(String ratingNodeGatheringType)
-