Class DefaultEvaluationExecutionService
java.lang.Object
ch.tocco.nice2.optional.evaluation.api.flow.DefaultEvaluationExecutionService
- All Implemented Interfaces:
EvaluationExecutionService
-
Nested Class Summary
Nested classes/interfaces inherited from interface ch.tocco.nice2.optional.evaluation.api.flow.EvaluationExecutionService
EvaluationExecutionService.Evaluation, EvaluationExecutionService.Question, EvaluationExecutionService.QuestionCategory
-
Field Summary
Modifier and TypeFieldDescriptionprotected final BusinessUnitManager
protected final Context
protected final DefaultDisplayService
protected final EmailTemplateLoadService
protected final CommandExecutor
protected final L10N
protected final MailFactory
protected final QueryBuilderFactory
protected final SecurityManager
-
Constructor Summary
ConstructorDescriptionDefaultEvaluationExecutionService
(Context context, QueryBuilderFactory queryBuilderFactory, SecurityManager securityManager, TemplateEngineFactory templateEngineFactory, EmailTemplateLoadService emailTemplateService, MailFactory mailFactory, CommandExecutor executor, BusinessUnitManager businessUnitManager, L10N l10N, DisplayFactory displayFactory, DefaultDisplayService defaultDisplayService) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAdditionalEvaluationProperties
(EvaluationExecutionService.Evaluation evaluation, Entity evaluationPartyAssignment, Entity evaluationExecution, Entity questionnaire) void
protected String
getDefaultDisplay
(Entity evaluationExecution, String executionRelation) getKeyForUuid
(String uuid) protected String
void
saveAnswer
(String evaluationPartyAssignmentKey, String questionKey, List<String> answers) void
saveComment
(String evaluationPartyAssignmentKey, String questionKey, String comment) void
setAnswerSavers
(List<AnswerSaverContribution> contributions) void
shareAnswer
(String evaluationPartyAssignmentKey, String questionKey)
-
Field Details
-
context
-
queryBuilderFactory
-
securityManager
-
emailTemplateService
-
mailFactory
-
executor
-
businessUnitManager
-
l10N
-
defaultDisplayService
-
-
Constructor Details
-
DefaultEvaluationExecutionService
public DefaultEvaluationExecutionService(Context context, QueryBuilderFactory queryBuilderFactory, SecurityManager securityManager, TemplateEngineFactory templateEngineFactory, EmailTemplateLoadService emailTemplateService, MailFactory mailFactory, CommandExecutor executor, BusinessUnitManager businessUnitManager, L10N l10N, DisplayFactory displayFactory, DefaultDisplayService defaultDisplayService)
-
-
Method Details
-
getKeyForUuid
- Specified by:
getKeyForUuid
in interfaceEvaluationExecutionService
-
load
- Specified by:
load
in interfaceEvaluationExecutionService
-
addAdditionalEvaluationProperties
protected void addAdditionalEvaluationProperties(EvaluationExecutionService.Evaluation evaluation, Entity evaluationPartyAssignment, Entity evaluationExecution, Entity questionnaire) -
getLabel
-
getDefaultDisplay
-
saveAnswer
public void saveAnswer(String evaluationPartyAssignmentKey, String questionKey, List<String> answers) - Specified by:
saveAnswer
in interfaceEvaluationExecutionService
-
saveComment
- Specified by:
saveComment
in interfaceEvaluationExecutionService
-
finish
- Specified by:
finish
in interfaceEvaluationExecutionService
-
setAnswerSavers
-