Search in sources :

Example 1 with AssessableResource

use of org.olat.modules.assessment.ui.AssessableResource in project OpenOLAT by OpenOLAT.

the class BinderRuntimeController method doAssessmentTool.

private Activateable2 doAssessmentTool(UserRequest ureq) {
    OLATResourceable ores = OresHelper.createOLATResourceableType("TestStatistics");
    ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
    WindowControl swControl = addToHistory(ureq, ores, null);
    if (reSecurity.isEntryAdmin() || reSecurity.isCourseCoach() || reSecurity.isGroupCoach()) {
        AssessmentToolSecurityCallback secCallback = new AssessmentToolSecurityCallback(reSecurity.isEntryAdmin(), reSecurity.isEntryAdmin(), reSecurity.isCourseCoach(), reSecurity.isGroupCoach(), null);
        AssessableResource el = getAssessableElement();
        AssessmentToolController ctrl = new AssessmentToolController(ureq, swControl, toolbarPanel, getRepositoryEntry(), el, secCallback);
        listenTo(ctrl);
        assessmentToolCtrl = pushController(ureq, "Statistics", ctrl);
        currentToolCtr = assessmentToolCtrl;
        setActiveTool(assessmentLink);
        enableRuntimeNavBar(false);
        return assessmentToolCtrl;
    }
    return null;
}
Also used : OLATResourceable(org.olat.core.id.OLATResourceable) AssessmentToolSecurityCallback(org.olat.modules.assessment.ui.AssessmentToolSecurityCallback) AssessableResource(org.olat.modules.assessment.ui.AssessableResource) WindowControl(org.olat.core.gui.control.WindowControl) AssessmentToolController(org.olat.modules.assessment.ui.AssessmentToolController)

Example 2 with AssessableResource

use of org.olat.modules.assessment.ui.AssessableResource in project openolat by klemens.

the class BinderRuntimeController method doAssessmentTool.

private Activateable2 doAssessmentTool(UserRequest ureq) {
    OLATResourceable ores = OresHelper.createOLATResourceableType("TestStatistics");
    ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
    WindowControl swControl = addToHistory(ureq, ores, null);
    if (reSecurity.isEntryAdmin() || reSecurity.isCourseCoach() || reSecurity.isGroupCoach()) {
        AssessmentToolSecurityCallback secCallback = new AssessmentToolSecurityCallback(reSecurity.isEntryAdmin(), reSecurity.isEntryAdmin(), reSecurity.isCourseCoach(), reSecurity.isGroupCoach(), null);
        AssessableResource el = getAssessableElement();
        AssessmentToolController ctrl = new AssessmentToolController(ureq, swControl, toolbarPanel, getRepositoryEntry(), el, secCallback);
        listenTo(ctrl);
        assessmentToolCtrl = pushController(ureq, "Statistics", ctrl);
        currentToolCtr = assessmentToolCtrl;
        setActiveTool(assessmentLink);
        enableRuntimeNavBar(false);
        return assessmentToolCtrl;
    }
    return null;
}
Also used : OLATResourceable(org.olat.core.id.OLATResourceable) AssessmentToolSecurityCallback(org.olat.modules.assessment.ui.AssessmentToolSecurityCallback) AssessableResource(org.olat.modules.assessment.ui.AssessableResource) WindowControl(org.olat.core.gui.control.WindowControl) AssessmentToolController(org.olat.modules.assessment.ui.AssessmentToolController)

Example 3 with AssessableResource

use of org.olat.modules.assessment.ui.AssessableResource in project OpenOLAT by OpenOLAT.

the class QTI21RuntimeController method doAssessmentTool.

private Activateable2 doAssessmentTool(UserRequest ureq) {
    OLATResourceable ores = OresHelper.createOLATResourceableType("TestStatistics");
    ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
    WindowControl swControl = addToHistory(ureq, ores, null);
    if (reSecurity.isEntryAdmin() || reSecurity.isCourseCoach() || reSecurity.isGroupCoach()) {
        AssessmentToolSecurityCallback secCallback = new AssessmentToolSecurityCallback(reSecurity.isEntryAdmin(), reSecurity.isEntryAdmin(), reSecurity.isCourseCoach(), reSecurity.isGroupCoach(), null);
        AssessableResource el = getAssessableElement(getRepositoryEntry());
        AssessmentToolController ctrl = new AssessmentToolController(ureq, swControl, toolbarPanel, getRepositoryEntry(), el, secCallback);
        listenTo(ctrl);
        assessmentToolCtrl = pushController(ureq, translate("command.openassessment"), ctrl);
        currentToolCtr = assessmentToolCtrl;
        setActiveTool(assessmentLink);
        return assessmentToolCtrl;
    }
    return null;
}
Also used : OLATResourceable(org.olat.core.id.OLATResourceable) AssessmentToolSecurityCallback(org.olat.modules.assessment.ui.AssessmentToolSecurityCallback) AssessableResource(org.olat.modules.assessment.ui.AssessableResource) WindowControl(org.olat.core.gui.control.WindowControl) AssessmentToolController(org.olat.modules.assessment.ui.AssessmentToolController)

Example 4 with AssessableResource

use of org.olat.modules.assessment.ui.AssessableResource in project openolat by klemens.

the class QTI21RuntimeController method doAssessmentTool.

private Activateable2 doAssessmentTool(UserRequest ureq) {
    OLATResourceable ores = OresHelper.createOLATResourceableType("TestStatistics");
    ThreadLocalUserActivityLogger.addLoggingResourceInfo(LoggingResourceable.wrapBusinessPath(ores));
    WindowControl swControl = addToHistory(ureq, ores, null);
    if (reSecurity.isEntryAdmin() || reSecurity.isCourseCoach() || reSecurity.isGroupCoach()) {
        AssessmentToolSecurityCallback secCallback = new AssessmentToolSecurityCallback(reSecurity.isEntryAdmin(), reSecurity.isEntryAdmin(), reSecurity.isCourseCoach(), reSecurity.isGroupCoach(), null);
        AssessableResource el = getAssessableElement(getRepositoryEntry());
        AssessmentToolController ctrl = new AssessmentToolController(ureq, swControl, toolbarPanel, getRepositoryEntry(), el, secCallback);
        listenTo(ctrl);
        assessmentToolCtrl = pushController(ureq, translate("command.openassessment"), ctrl);
        currentToolCtr = assessmentToolCtrl;
        setActiveTool(assessmentLink);
        return assessmentToolCtrl;
    }
    return null;
}
Also used : OLATResourceable(org.olat.core.id.OLATResourceable) AssessmentToolSecurityCallback(org.olat.modules.assessment.ui.AssessmentToolSecurityCallback) AssessableResource(org.olat.modules.assessment.ui.AssessableResource) WindowControl(org.olat.core.gui.control.WindowControl) AssessmentToolController(org.olat.modules.assessment.ui.AssessmentToolController)

Aggregations

WindowControl (org.olat.core.gui.control.WindowControl)4 OLATResourceable (org.olat.core.id.OLATResourceable)4 AssessableResource (org.olat.modules.assessment.ui.AssessableResource)4 AssessmentToolController (org.olat.modules.assessment.ui.AssessmentToolController)4 AssessmentToolSecurityCallback (org.olat.modules.assessment.ui.AssessmentToolSecurityCallback)4