use of org.olat.modules.forms.EvaluationFormResponse in project openolat by klemens.
the class EvaluationFormController method saveNumericalResponse.
private void saveNumericalResponse(BigDecimal numericalValue, String stringuifiedReponse, String responseIdentifier) {
if (evaluator == null || readOnly)
return;
EvaluationFormResponse response = identifierToResponses.get(responseIdentifier);
if (response == null) {
response = evaluationFormManager.createResponseForPortfolioEvaluation(responseIdentifier, numericalValue, stringuifiedReponse, session);
} else {
response = evaluationFormManager.updateResponseForPortfolioEvaluation(numericalValue, stringuifiedReponse, response);
}
updateCache(responseIdentifier, response);
}
Aggregations