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