Search in sources :

Example 1 with LectureBlockExport

use of org.olat.modules.lecture.ui.export.LectureBlockExport in project OpenOLAT by OpenOLAT.

the class TeacherLecturesTableController method doExportLectureBlock.

private void doExportLectureBlock(UserRequest ureq, LectureBlock row) {
    LectureBlock lectureBlock = lectureService.getLectureBlock(row);
    List<Identity> teachers = lectureService.getTeachers(lectureBlock);
    LectureBlockExport export = new LectureBlockExport(lectureBlock, teachers, isAdministrativeUser, authorizedAbsenceEnabled, getTranslator());
    ureq.getDispatchResult().setResultingMediaResource(export);
}
Also used : LectureBlock(org.olat.modules.lecture.LectureBlock) LectureBlockExport(org.olat.modules.lecture.ui.export.LectureBlockExport) Identity(org.olat.core.id.Identity)

Example 2 with LectureBlockExport

use of org.olat.modules.lecture.ui.export.LectureBlockExport in project openolat by klemens.

the class TeacherLecturesTableController method doExportLectureBlock.

private void doExportLectureBlock(UserRequest ureq, LectureBlock row) {
    LectureBlock lectureBlock = lectureService.getLectureBlock(row);
    List<Identity> teachers = lectureService.getTeachers(lectureBlock);
    LectureBlockExport export = new LectureBlockExport(lectureBlock, teachers, isAdministrativeUser, authorizedAbsenceEnabled, getTranslator());
    ureq.getDispatchResult().setResultingMediaResource(export);
}
Also used : LectureBlock(org.olat.modules.lecture.LectureBlock) LectureBlockExport(org.olat.modules.lecture.ui.export.LectureBlockExport) Identity(org.olat.core.id.Identity)

Aggregations

Identity (org.olat.core.id.Identity)2 LectureBlock (org.olat.modules.lecture.LectureBlock)2 LectureBlockExport (org.olat.modules.lecture.ui.export.LectureBlockExport)2