Search in sources :

Example 1 with LectureBlockAuditLogExport

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

the class LectureListRepositoryController method doExportLog.

private void doExportLog(UserRequest ureq, LectureBlockRow row) {
    LectureBlock lectureBlock = lectureService.getLectureBlock(row);
    List<LectureBlockAuditLog> auditLog = lectureService.getAuditLog(row);
    boolean authorizedAbsenceEnabled = lectureModule.isAuthorizedAbsenceEnabled();
    LectureBlockAuditLogExport export = new LectureBlockAuditLogExport(entry, lectureBlock, auditLog, authorizedAbsenceEnabled, getTranslator());
    ureq.getDispatchResult().setResultingMediaResource(export);
}
Also used : LectureBlock(org.olat.modules.lecture.LectureBlock) LectureBlockAuditLogExport(org.olat.modules.lecture.ui.export.LectureBlockAuditLogExport) LectureBlockAuditLog(org.olat.modules.lecture.LectureBlockAuditLog)

Example 2 with LectureBlockAuditLogExport

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

the class LectureListRepositoryController method doExportLog.

private void doExportLog(UserRequest ureq, LectureBlockRow row) {
    LectureBlock lectureBlock = lectureService.getLectureBlock(row);
    List<LectureBlockAuditLog> auditLog = lectureService.getAuditLog(row);
    boolean authorizedAbsenceEnabled = lectureModule.isAuthorizedAbsenceEnabled();
    LectureBlockAuditLogExport export = new LectureBlockAuditLogExport(entry, lectureBlock, auditLog, authorizedAbsenceEnabled, getTranslator());
    ureq.getDispatchResult().setResultingMediaResource(export);
}
Also used : LectureBlock(org.olat.modules.lecture.LectureBlock) LectureBlockAuditLogExport(org.olat.modules.lecture.ui.export.LectureBlockAuditLogExport) LectureBlockAuditLog(org.olat.modules.lecture.LectureBlockAuditLog)

Aggregations

LectureBlock (org.olat.modules.lecture.LectureBlock)2 LectureBlockAuditLog (org.olat.modules.lecture.LectureBlockAuditLog)2 LectureBlockAuditLogExport (org.olat.modules.lecture.ui.export.LectureBlockAuditLogExport)2