Search in sources :

Example 1 with AssessmentToolOptions

use of org.olat.modules.assessment.AssessmentToolOptions in project OpenOLAT by OpenOLAT.

the class GTAIdentityListCourseNodeController method doDownload.

private void doDownload(UserRequest ureq) {
    AssessmentToolOptions asOptions = getOptions();
    OLATResource courseOres = getCourseRepositoryEntry().getOlatResource();
    ArchiveOptions options = new ArchiveOptions();
    options.setGroup(asOptions.getGroup());
    options.setIdentities(asOptions.getIdentities());
    ArchiveResource resource = new ArchiveResource(courseNode, courseOres, options, getLocale());
    ureq.getDispatchResult().setResultingMediaResource(resource);
}
Also used : AssessmentToolOptions(org.olat.modules.assessment.AssessmentToolOptions) OLATResource(org.olat.resource.OLATResource) ArchiveOptions(org.olat.course.nodes.ArchiveOptions) ArchiveResource(org.olat.course.archiver.ArchiveResource)

Example 2 with AssessmentToolOptions

use of org.olat.modules.assessment.AssessmentToolOptions in project OpenOLAT by OpenOLAT.

the class IQIdentityListCourseNodeController method getIdentities.

private List<Identity> getIdentities() {
    AssessmentToolOptions asOptions = getOptions();
    List<Identity> identities = asOptions.getIdentities();
    if (group != null) {
        identities = groupService.getMembers(group, GroupRoles.participant.toString());
    } else if (identities != null) {
        identities = asOptions.getIdentities();
    } else if (asOptions.isAdmin()) {
        identities = ScoreAccountingHelper.loadUsers(getCourseEnvironment());
    }
    return identities;
}
Also used : AssessmentToolOptions(org.olat.modules.assessment.AssessmentToolOptions) Identity(org.olat.core.id.Identity)

Example 3 with AssessmentToolOptions

use of org.olat.modules.assessment.AssessmentToolOptions in project OpenOLAT by OpenOLAT.

the class IQIdentityListCourseNodeController method doConfirmResetData.

private void doConfirmResetData(UserRequest ureq) {
    AssessmentToolOptions asOptions = getOptions();
    CourseEnvironment courseEnv = getCourseEnvironment();
    resetDataCtrl = new QTI21ResetDataController(ureq, getWindowControl(), courseEnv, asOptions, (IQTESTCourseNode) courseNode);
    listenTo(resetDataCtrl);
    String title = translate("tool.reset");
    cmc = new CloseableModalController(getWindowControl(), null, resetDataCtrl.getInitialComponent(), true, title, true);
    listenTo(cmc);
    cmc.activate();
}
Also used : IQTESTCourseNode(org.olat.course.nodes.IQTESTCourseNode) UserCourseEnvironment(org.olat.course.run.userview.UserCourseEnvironment) CourseEnvironment(org.olat.course.run.environment.CourseEnvironment) CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) AssessmentToolOptions(org.olat.modules.assessment.AssessmentToolOptions) QTI21ResetDataController(org.olat.ims.qti21.ui.QTI21ResetDataController)

Example 4 with AssessmentToolOptions

use of org.olat.modules.assessment.AssessmentToolOptions in project OpenOLAT by OpenOLAT.

the class QTI21AssessmentDetailsController method doResetData.

private void doResetData(UserRequest ureq) {
    AssessmentToolOptions asOptions = new AssessmentToolOptions();
    asOptions.setAdmin(reSecurity.isEntryAdmin());
    asOptions.setIdentities(Collections.singletonList(assessedIdentity));
    if (courseNode != null) {
        resetToolCtrl = new QTI21ResetDataController(ureq, getWindowControl(), assessedUserCourseEnv.getCourseEnvironment(), asOptions, courseNode);
    } else {
        resetToolCtrl = new QTI21ResetDataController(ureq, getWindowControl(), entry, asOptions);
    }
    listenTo(resetToolCtrl);
    cmc = new CloseableModalController(getWindowControl(), "close", resetToolCtrl.getInitialComponent(), true, translate("table.header.results"));
    cmc.activate();
    listenTo(cmc);
}
Also used : CloseableModalController(org.olat.core.gui.control.generic.closablewrapper.CloseableModalController) AssessmentToolOptions(org.olat.modules.assessment.AssessmentToolOptions)

Example 5 with AssessmentToolOptions

use of org.olat.modules.assessment.AssessmentToolOptions in project OpenOLAT by OpenOLAT.

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)

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