Search in sources :

Example 1 with ArchiveOptions

use of org.olat.course.nodes.ArchiveOptions 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 ArchiveOptions

use of org.olat.course.nodes.ArchiveOptions in project openolat by klemens.

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);
}
Also used : QTI21StatisticSearchParams(org.olat.ims.qti21.model.QTI21StatisticSearchParams) ArchiveOptions(org.olat.course.nodes.ArchiveOptions) QTI21ArchiveFormat(org.olat.ims.qti21.manager.archive.QTI21ArchiveFormat) Date(java.util.Date)

Example 3 with ArchiveOptions

use of org.olat.course.nodes.ArchiveOptions in project openolat by klemens.

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);
    }
}
Also used : ArchiveOptions(org.olat.course.nodes.ArchiveOptions) OLATResource(org.olat.resource.OLATResource) ArchiveResource(org.olat.course.archiver.ArchiveResource)

Example 4 with ArchiveOptions

use of org.olat.course.nodes.ArchiveOptions in project openolat by klemens.

the class FormatConfigHelper method getArchiveOptions.

public static ArchiveOptions getArchiveOptions(UserRequest ureq) {
    ArchiveOptions options = new ArchiveOptions();
    ExportFormat formatConfig = loadExportFormat(ureq);
    options.setExportFormat(formatConfig);
    return options;
}
Also used : ArchiveOptions(org.olat.course.nodes.ArchiveOptions)

Example 5 with ArchiveOptions

use of org.olat.course.nodes.ArchiveOptions in project openolat by klemens.

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)

Aggregations

ArchiveOptions (org.olat.course.nodes.ArchiveOptions)10 ArchiveResource (org.olat.course.archiver.ArchiveResource)6 OLATResource (org.olat.resource.OLATResource)6 AssessmentToolOptions (org.olat.modules.assessment.AssessmentToolOptions)4 Date (java.util.Date)2 QTI21ArchiveFormat (org.olat.ims.qti21.manager.archive.QTI21ArchiveFormat)2 QTI21StatisticSearchParams (org.olat.ims.qti21.model.QTI21StatisticSearchParams)2