Search in sources :

Example 1 with RollCallSecurityCallback

use of org.olat.modules.lecture.RollCallSecurityCallback in project openolat by klemens.

the class AbstractTeacherOverviewController method doStartWizardRollCall.

@SuppressWarnings("deprecation")
private void doStartWizardRollCall(UserRequest ureq, LectureBlock block) {
    if (rollCallWizardCtrl != null)
        return;
    LectureBlock reloadedBlock = lectureService.getLectureBlock(block);
    List<Identity> teachers = lectureService.getTeachers(reloadedBlock);
    List<Identity> participants = lectureService.startLectureBlock(getIdentity(), reloadedBlock);
    RollCallSecurityCallback secCallback = getRollCallSecurityCallback(reloadedBlock, teachers.contains(getIdentity()));
    rollCallWizardCtrl = new TeacherRollCallWizardController(ureq, getWindowControl(), reloadedBlock, participants, secCallback);
    if (withRepositoryEntry) {
        rollCallWizardCtrl.addLoggingResourceable(CoreLoggingResourceable.wrap(reloadedBlock.getEntry().getOlatResource(), OlatResourceableType.course, reloadedBlock.getEntry().getDisplayname()));
    }
    listenTo(rollCallWizardCtrl);
    ChiefController cc = getWindowControl().getWindowBackOffice().getChiefController();
    cc.getScreenMode().setMode(Mode.full);
    getWindowControl().pushToMainArea(rollCallWizardCtrl.getInitialComponent());
    ThreadLocalUserActivityLogger.log(LearningResourceLoggingAction.LECTURE_BLOCK_ROLL_CALL_STARTED, getClass(), CoreLoggingResourceable.wrap(block, OlatResourceableType.lectureBlock, block.getTitle()));
}
Also used : LectureBlock(org.olat.modules.lecture.LectureBlock) RollCallSecurityCallback(org.olat.modules.lecture.RollCallSecurityCallback) ChiefController(org.olat.core.gui.control.ChiefController) Identity(org.olat.core.id.Identity)

Example 2 with RollCallSecurityCallback

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

the class AbstractTeacherOverviewController method doStartRollCall.

// same as above???
private void doStartRollCall(UserRequest ureq, LectureBlock block) {
    LectureBlock reloadedBlock = lectureService.getLectureBlock(block);
    List<Identity> teachers = lectureService.getTeachers(reloadedBlock);
    List<Identity> participants = lectureService.startLectureBlock(getIdentity(), reloadedBlock);
    RollCallSecurityCallback secCallback = getRollCallSecurityCallback(reloadedBlock, teachers.contains(getIdentity()));
    rollCallCtrl = new TeacherRollCallController(ureq, getWindowControl(), reloadedBlock, participants, secCallback);
    if (withRepositoryEntry) {
        rollCallCtrl.addLoggingResourceable(CoreLoggingResourceable.wrap(reloadedBlock.getEntry().getOlatResource(), OlatResourceableType.course, reloadedBlock.getEntry().getDisplayname()));
    }
    listenTo(rollCallCtrl);
    stackPanel.pushController(reloadedBlock.getTitle(), rollCallCtrl);
    ThreadLocalUserActivityLogger.log(LearningResourceLoggingAction.LECTURE_BLOCK_ROLL_CALL_STARTED, getClass(), CoreLoggingResourceable.wrap(block, OlatResourceableType.lectureBlock, block.getTitle()));
}
Also used : LectureBlock(org.olat.modules.lecture.LectureBlock) RollCallSecurityCallback(org.olat.modules.lecture.RollCallSecurityCallback) Identity(org.olat.core.id.Identity)

Example 3 with RollCallSecurityCallback

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

the class AbstractTeacherOverviewController method doStartWizardRollCall.

@SuppressWarnings("deprecation")
private void doStartWizardRollCall(UserRequest ureq, LectureBlock block) {
    if (rollCallWizardCtrl != null)
        return;
    LectureBlock reloadedBlock = lectureService.getLectureBlock(block);
    List<Identity> teachers = lectureService.getTeachers(reloadedBlock);
    List<Identity> participants = lectureService.startLectureBlock(getIdentity(), reloadedBlock);
    RollCallSecurityCallback secCallback = getRollCallSecurityCallback(reloadedBlock, teachers.contains(getIdentity()));
    rollCallWizardCtrl = new TeacherRollCallWizardController(ureq, getWindowControl(), reloadedBlock, participants, secCallback);
    if (withRepositoryEntry) {
        rollCallWizardCtrl.addLoggingResourceable(CoreLoggingResourceable.wrap(reloadedBlock.getEntry().getOlatResource(), OlatResourceableType.course, reloadedBlock.getEntry().getDisplayname()));
    }
    listenTo(rollCallWizardCtrl);
    ChiefController cc = getWindowControl().getWindowBackOffice().getChiefController();
    cc.getScreenMode().setMode(Mode.full);
    getWindowControl().pushToMainArea(rollCallWizardCtrl.getInitialComponent());
    ThreadLocalUserActivityLogger.log(LearningResourceLoggingAction.LECTURE_BLOCK_ROLL_CALL_STARTED, getClass(), CoreLoggingResourceable.wrap(block, OlatResourceableType.lectureBlock, block.getTitle()));
}
Also used : LectureBlock(org.olat.modules.lecture.LectureBlock) RollCallSecurityCallback(org.olat.modules.lecture.RollCallSecurityCallback) ChiefController(org.olat.core.gui.control.ChiefController) Identity(org.olat.core.id.Identity)

Example 4 with RollCallSecurityCallback

use of org.olat.modules.lecture.RollCallSecurityCallback in project openolat by klemens.

the class AbstractTeacherOverviewController method doStartRollCall.

// same as above???
private void doStartRollCall(UserRequest ureq, LectureBlock block) {
    LectureBlock reloadedBlock = lectureService.getLectureBlock(block);
    List<Identity> teachers = lectureService.getTeachers(reloadedBlock);
    List<Identity> participants = lectureService.startLectureBlock(getIdentity(), reloadedBlock);
    RollCallSecurityCallback secCallback = getRollCallSecurityCallback(reloadedBlock, teachers.contains(getIdentity()));
    rollCallCtrl = new TeacherRollCallController(ureq, getWindowControl(), reloadedBlock, participants, secCallback);
    if (withRepositoryEntry) {
        rollCallCtrl.addLoggingResourceable(CoreLoggingResourceable.wrap(reloadedBlock.getEntry().getOlatResource(), OlatResourceableType.course, reloadedBlock.getEntry().getDisplayname()));
    }
    listenTo(rollCallCtrl);
    stackPanel.pushController(reloadedBlock.getTitle(), rollCallCtrl);
    ThreadLocalUserActivityLogger.log(LearningResourceLoggingAction.LECTURE_BLOCK_ROLL_CALL_STARTED, getClass(), CoreLoggingResourceable.wrap(block, OlatResourceableType.lectureBlock, block.getTitle()));
}
Also used : LectureBlock(org.olat.modules.lecture.LectureBlock) RollCallSecurityCallback(org.olat.modules.lecture.RollCallSecurityCallback) Identity(org.olat.core.id.Identity)

Aggregations

Identity (org.olat.core.id.Identity)4 LectureBlock (org.olat.modules.lecture.LectureBlock)4 RollCallSecurityCallback (org.olat.modules.lecture.RollCallSecurityCallback)4 ChiefController (org.olat.core.gui.control.ChiefController)2