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()));
}
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()));
}
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()));
}
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()));
}
Aggregations