Search in sources :

Example 6 with LectureRollCallStatus

use of org.olat.modules.lecture.LectureRollCallStatus in project OpenOLAT by OpenOLAT.

the class ParticipantLectureBlocksDataModel method isDataVisible.

private boolean isDataVisible(LectureBlockAndRollCall row) {
    LectureBlockStatus status = row.getStatus();
    if (LectureBlockStatus.cancelled.equals(status)) {
        return false;
    }
    LectureRollCallStatus rollCallStatus = row.getRollCallStatus();
    return status == LectureBlockStatus.done && (rollCallStatus == LectureRollCallStatus.closed || rollCallStatus == LectureRollCallStatus.autoclosed);
}
Also used : LectureRollCallStatus(org.olat.modules.lecture.LectureRollCallStatus) LectureBlockStatus(org.olat.modules.lecture.LectureBlockStatus)

Aggregations

LectureBlockStatus (org.olat.modules.lecture.LectureBlockStatus)6 LectureRollCallStatus (org.olat.modules.lecture.LectureRollCallStatus)6 LectureBlockRollCall (org.olat.modules.lecture.LectureBlockRollCall)2