use of org.olat.modules.assessment.AssessmentToolOptions in project openolat by klemens.
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();
}
use of org.olat.modules.assessment.AssessmentToolOptions in project OpenOLAT by OpenOLAT.
the class IQIdentityListCourseNodeController method doStartCorrection.
private void doStartCorrection(UserRequest ureq) {
AssessmentToolOptions asOptions = getOptions();
correctionIdentitiesCtrl = new CorrectionOverviewController(ureq, getWindowControl(), stackPanel, getCourseEnvironment(), asOptions, (IQTESTCourseNode) courseNode);
if (correctionIdentitiesCtrl.getNumberOfAssessedIdentities() == 0) {
showWarning("grade.nobody");
correctionIdentitiesCtrl = null;
} else {
listenTo(correctionIdentitiesCtrl);
stackPanel.pushController(translate("correction.test.title"), correctionIdentitiesCtrl);
}
}
use of org.olat.modules.assessment.AssessmentToolOptions in project OpenOLAT by OpenOLAT.
the class IQIdentityListCourseNodeController method doConfirmPull.
private void doConfirmPull(UserRequest ureq) {
AssessmentToolOptions asOptions = getOptions();
RepositoryEntry testEntry = getReferencedRepositoryEntry();
CourseEnvironment courseEnv = getCourseEnvironment();
if (ImsQTI21Resource.TYPE_NAME.equals(testEntry.getOlatResource().getResourceableTypeName())) {
retrieveConfirmationCtr = new QTI21RetrieveTestsController(ureq, getWindowControl(), courseEnv, asOptions, (IQTESTCourseNode) courseNode);
} else {
retrieveConfirmationCtr = new QTI12PullTestsToolController(ureq, getWindowControl(), courseEnv, asOptions, (IQTESTCourseNode) courseNode);
}
listenTo(retrieveConfirmationCtr);
String title = translate("tool.pull");
cmc = new CloseableModalController(getWindowControl(), null, retrieveConfirmationCtr.getInitialComponent(), true, title, true);
listenTo(cmc);
cmc.activate();
}
use of org.olat.modules.assessment.AssessmentToolOptions in project OpenOLAT by OpenOLAT.
the class TAIdentityListCourseNodeController method doDownload.
private void doDownload(UserRequest ureq) {
OLATResource courseOres = getCourseRepositoryEntry().getOlatResource();
AssessmentToolOptions asOptions = getOptions();
ArchiveOptions options = new ArchiveOptions();
options.setGroup(asOptions.getGroup());
options.setIdentities(asOptions.getIdentities());
ArchiveResource resource = new ArchiveResource(courseNode, courseOres, options, getLocale());
ureq.getDispatchResult().setResultingMediaResource(resource);
}
use of org.olat.modules.assessment.AssessmentToolOptions in project OpenOLAT by OpenOLAT.
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;
}
Aggregations