Search in sources :

Example 26 with EvaluationFormResponse

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);
}
Also used : EvaluationFormResponse(org.olat.modules.forms.EvaluationFormResponse)

Aggregations

EvaluationFormResponse (org.olat.modules.forms.EvaluationFormResponse)26 EvaluationFormElementWrapper (org.olat.modules.forms.ui.model.EvaluationFormElementWrapper)16 ArrayList (java.util.ArrayList)14 Identity (org.olat.core.id.Identity)10 Slider (org.olat.modules.forms.model.xml.Slider)8 SliderWrapper (org.olat.modules.forms.ui.model.SliderWrapper)8 EvaluationFormSession (org.olat.modules.forms.EvaluationFormSession)6 TextInputWrapper (org.olat.modules.forms.ui.model.TextInputWrapper)6 File (java.io.File)4 HashMap (java.util.HashMap)4 RadarChartElement (org.olat.core.gui.components.chart.RadarChartElement)4 RadarSeries (org.olat.core.gui.components.chart.RadarSeries)4 SliderType (org.olat.modules.forms.model.xml.Rubric.SliderType)4 FileUploadCompareWrapper (org.olat.modules.forms.ui.model.FileUploadCompareWrapper)4 PageBody (org.olat.modules.portfolio.PageBody)4 RepositoryEntry (org.olat.repository.RepositoryEntry)4 BigDecimal (java.math.BigDecimal)2 Path (java.nio.file.Path)2 List (java.util.List)2 Map (java.util.Map)2