use of org.olat.modules.lecture.ui.export.LecturesBlockPDFExport in project OpenOLAT by OpenOLAT.
the class TeacherLecturesTableController method doExportAttendanceList.
private void doExportAttendanceList(UserRequest ureq, LectureBlock row) {
LectureBlock lectureBlock = lectureService.getLectureBlock(row);
List<Identity> participants = lectureService.getParticipants(lectureBlock);
List<LectureBlockRollCall> rollCalls = lectureService.getRollCalls(row);
try {
LecturesBlockPDFExport export = new LecturesBlockPDFExport(lectureBlock, authorizedAbsenceEnabled, getTranslator());
export.setTeacher(userManager.getUserDisplayName(getIdentity()));
export.create(participants, rollCalls);
ureq.getDispatchResult().setResultingMediaResource(export);
} catch (IOException | TransformerException e) {
logError("", e);
}
}
use of org.olat.modules.lecture.ui.export.LecturesBlockPDFExport in project openolat by klemens.
the class TeacherLecturesTableController method doExportAttendanceList.
private void doExportAttendanceList(UserRequest ureq, LectureBlock row) {
LectureBlock lectureBlock = lectureService.getLectureBlock(row);
List<Identity> participants = lectureService.getParticipants(lectureBlock);
List<LectureBlockRollCall> rollCalls = lectureService.getRollCalls(row);
try {
LecturesBlockPDFExport export = new LecturesBlockPDFExport(lectureBlock, authorizedAbsenceEnabled, getTranslator());
export.setTeacher(userManager.getUserDisplayName(getIdentity()));
export.create(participants, rollCalls);
ureq.getDispatchResult().setResultingMediaResource(export);
} catch (IOException | TransformerException e) {
logError("", e);
}
}
Aggregations