use of org.olat.course.assessment.model.BulkAssessmentColumnSettings in project OpenOLAT by OpenOLAT.
the class ChooseColumnsStepForm method formOK.
@Override
protected void formOK(UserRequest ureq) {
BulkAssessmentDatas datas = (BulkAssessmentDatas) getFromRunContext("datas");
List<BulkAssessmentRow> rows = datas.getRows();
Map<String, BulkAssessmentRow> assessedIdToRow = new HashMap<>();
for (BulkAssessmentRow row : rows) {
assessedIdToRow.put(row.getAssessedId(), row);
}
BulkAssessmentColumnSettings settings = datas.getColumnsSettings();
if (settings == null) {
settings = new BulkAssessmentColumnSettings();
datas.setColumnsSettings(settings);
}
settings.setUsernameColumn(getColumnPosition(userNameColumnEl));
settings.setScoreColumn(getColumnPosition(scoreColumnEl));
settings.setPassedColumn(getColumnPosition(passedColumnEl));
settings.setCommentColumn(getColumnPosition(commentColumnEl));
List<String[]> splittedRows = overviewDataModel.getObjects();
for (String[] values : splittedRows) {
createRow(values, settings, rows, assessedIdToRow);
}
fireEvent(ureq, StepsEvent.ACTIVATE_NEXT);
}
use of org.olat.course.assessment.model.BulkAssessmentColumnSettings in project openolat by klemens.
the class ChooseColumnsStepForm method formOK.
@Override
protected void formOK(UserRequest ureq) {
BulkAssessmentDatas datas = (BulkAssessmentDatas) getFromRunContext("datas");
List<BulkAssessmentRow> rows = datas.getRows();
Map<String, BulkAssessmentRow> assessedIdToRow = new HashMap<>();
for (BulkAssessmentRow row : rows) {
assessedIdToRow.put(row.getAssessedId(), row);
}
BulkAssessmentColumnSettings settings = datas.getColumnsSettings();
if (settings == null) {
settings = new BulkAssessmentColumnSettings();
datas.setColumnsSettings(settings);
}
settings.setUsernameColumn(getColumnPosition(userNameColumnEl));
settings.setScoreColumn(getColumnPosition(scoreColumnEl));
settings.setPassedColumn(getColumnPosition(passedColumnEl));
settings.setCommentColumn(getColumnPosition(commentColumnEl));
List<String[]> splittedRows = overviewDataModel.getObjects();
for (String[] values : splittedRows) {
createRow(values, settings, rows, assessedIdToRow);
}
fireEvent(ureq, StepsEvent.ACTIVATE_NEXT);
}
Aggregations