use of org.olat.course.nodes.ArchiveOptions 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.course.nodes.ArchiveOptions in project OpenOLAT by OpenOLAT.
the class QTI21ResultsExportMediaResource method exportExcelResults.
private void exportExcelResults(RepositoryEntry testEntry, ZipOutputStream zout) {
ArchiveOptions options = new ArchiveOptions();
options.setIdentities(identities);
QTI21StatisticSearchParams searchParams = new QTI21StatisticSearchParams(options, testEntry, entry, courseNode.getIdent());
searchParams.setLimitToIdentities(identities);
QTI21ArchiveFormat qaf = new QTI21ArchiveFormat(translator.getLocale(), searchParams);
String label = StringHelper.transformDisplayNameToFileSystemName(courseNode.getShortName() + "_" + testEntry.getDisplayname()) + "_" + Formatter.formatDatetimeWithMinutes(new Date()) + ".xlsx";
qaf.exportCourseElement(exportFolderName + "/" + label, zout);
}
use of org.olat.course.nodes.ArchiveOptions in project OpenOLAT by OpenOLAT.
the class GTACoachSelectionController method doBulkDownload.
private void doBulkDownload(UserRequest ureq) {
if (participantListCtrl != null) {
ArchiveOptions asOptions = new ArchiveOptions();
asOptions.setIdentities(getIdentitesForBulkDownload(ureq));
OLATResource ores = courseEnv.getCourseGroupManager().getCourseResource();
ArchiveResource resource = new ArchiveResource(gtaNode, ores, asOptions, getLocale());
ureq.getDispatchResult().setResultingMediaResource(resource);
} else if (groupListCtrl != null) {
OLATResource ores = courseEnv.getCourseGroupManager().getCourseResource();
GroupBulkDownloadResource resource = new GroupBulkDownloadResource(gtaNode, ores, groupListCtrl.getCoachedGroups(), getLocale());
ureq.getDispatchResult().setResultingMediaResource(resource);
}
}
use of org.olat.course.nodes.ArchiveOptions in project OpenOLAT by OpenOLAT.
the class FormatConfigHelper method getArchiveOptions.
public static ArchiveOptions getArchiveOptions(UserRequest ureq) {
ArchiveOptions options = new ArchiveOptions();
ExportFormat formatConfig = loadExportFormat(ureq);
options.setExportFormat(formatConfig);
return options;
}
use of org.olat.course.nodes.ArchiveOptions in project openolat by klemens.
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);
}
Aggregations