use of org.olat.modules.assessment.ui.event.CompleteAssessmentTestSessionEvent in project OpenOLAT by OpenOLAT.
the class CorrectionIdentityListController method doSaveTests.
private void doSaveTests(UserRequest ureq) {
Set<Integer> selections = tableEl.getMultiSelectedIndex();
List<AssessmentTestSession> rows = new ArrayList<>(selections.size());
for (Integer i : selections) {
CorrectionIdentityRow row = tableModel.getObject(i.intValue());
if (row != null) {
rows.add(row.getCandidateSession());
}
}
AssessmentTest assessmentTest = model.getResolvedAssessmentTest().getRootNodeLookup().extractIfSuccessful();
fireEvent(ureq, new CompleteAssessmentTestSessionEvent(rows, assessmentTest, AssessmentEntryStatus.done));
}
Aggregations