Search in sources :

Example 21 with AssessmentToolOptions

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

the class QTI21AssessedIdentityListController method doResetData.

private void doResetData(UserRequest ureq) {
    if (resetDataCtrl != null)
        return;
    /*
		if(identities == null || identities.isEmpty()) {
			showWarning("warning.reset.test.data.nobody");
		} */
    AssessmentToolOptions asOptions = getOptions();
    resetDataCtrl = new QTI21ResetDataController(ureq, getWindowControl(), this.getRepositoryEntry(), asOptions);
    listenTo(resetDataCtrl);
    String title = translate("reset.test.data.title");
    cmc = new CloseableModalController(getWindowControl(), null, resetDataCtrl.getInitialComponent(), true, title, true);
    listenTo(cmc);
    cmc.activate();
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) AssessmentToolOptions(org.olat.modules.assessment.AssessmentToolOptions)

Example 22 with AssessmentToolOptions

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

the class QTI21AssessedIdentityListController method getOptions.

private AssessmentToolOptions getOptions() {
    AssessmentToolOptions asOptions = new AssessmentToolOptions();
    asOptions.setAdmin(assessmentCallback.isAdmin());
    List<Identity> assessedIdentities = assessmentToolManager.getAssessedIdentities(getIdentity(), getSearchParameters());
    asOptions.setIdentities(assessedIdentities);
    return asOptions;
}
Also used : AssessmentToolOptions(org.olat.modules.assessment.AssessmentToolOptions) Identity(org.olat.core.id.Identity)

Example 23 with AssessmentToolOptions

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

the class QTI21AssessedIdentityListController method doPullSessions.

private void doPullSessions(UserRequest ureq) {
    AssessmentToolOptions asOptions = getOptions();
    pullSessionCtrl = new QTI21RetrieveTestsController(ureq, getWindowControl(), getRepositoryEntry(), asOptions);
    listenTo(pullSessionCtrl);
    String title = translate("retrievetest.confirm.title");
    cmc = new CloseableModalController(getWindowControl(), null, pullSessionCtrl.getInitialComponent(), true, title, true);
    listenTo(cmc);
    cmc.activate();
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) AssessmentToolOptions(org.olat.modules.assessment.AssessmentToolOptions)

Example 24 with AssessmentToolOptions

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

the class QTI21RuntimeController method doAssessmentTestStatistics.

private Activateable2 doAssessmentTestStatistics(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()) {
        AssessmentToolOptions asOptions = new AssessmentToolOptions();
        asOptions.setAdmin(reSecurity.isEntryAdmin());
        QTI21RuntimeStatisticsController ctrl = new QTI21RuntimeStatisticsController(ureq, swControl, toolbarPanel, getRepositoryEntry(), asOptions);
        listenTo(ctrl);
        statsToolCtr = pushController(ureq, translate("command.openteststatistic"), ctrl);
        currentToolCtr = ctrl;
        setActiveTool(testStatisticLink);
        return statsToolCtr;
    }
    return null;
}
Also used : OLATResourceable(org.olat.core.id.OLATResourceable) AssessmentToolOptions(org.olat.modules.assessment.AssessmentToolOptions) WindowControl(org.olat.core.gui.control.WindowControl)

Aggregations

AssessmentToolOptions (org.olat.modules.assessment.AssessmentToolOptions)24 CloseableModalController (org.olat.core.gui.control.generic.closablewrapper.CloseableModalController)10 Identity (org.olat.core.id.Identity)6 IQTESTCourseNode (org.olat.course.nodes.IQTESTCourseNode)6 ArchiveResource (org.olat.course.archiver.ArchiveResource)4 ArchiveOptions (org.olat.course.nodes.ArchiveOptions)4 CourseEnvironment (org.olat.course.run.environment.CourseEnvironment)4 UserCourseEnvironment (org.olat.course.run.userview.UserCourseEnvironment)4 OLATResource (org.olat.resource.OLATResource)4 WindowControl (org.olat.core.gui.control.WindowControl)2 OLATResourceable (org.olat.core.id.OLATResourceable)2 SearchAssessedIdentityParams (org.olat.course.assessment.model.SearchAssessedIdentityParams)2 QTI12PullTestsToolController (org.olat.ims.qti.statistics.ui.QTI12PullTestsToolController)2 QTI21ResetDataController (org.olat.ims.qti21.ui.QTI21ResetDataController)2 QTI21RetrieveTestsController (org.olat.ims.qti21.ui.QTI21RetrieveTestsController)2 CorrectionOverviewController (org.olat.ims.qti21.ui.assessment.CorrectionOverviewController)2 RepositoryEntry (org.olat.repository.RepositoryEntry)2