Search in sources :

Example 1 with ArchiveResource

use of org.olat.course.archiver.ArchiveResource 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 ArchiveResource

use of org.olat.course.archiver.ArchiveResource 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 3 with ArchiveResource

use of org.olat.course.archiver.ArchiveResource 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)

Example 4 with ArchiveResource

use of org.olat.course.archiver.ArchiveResource 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);
}
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 5 with ArchiveResource

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

Aggregations

ArchiveResource (org.olat.course.archiver.ArchiveResource)6 ArchiveOptions (org.olat.course.nodes.ArchiveOptions)6 OLATResource (org.olat.resource.OLATResource)6 AssessmentToolOptions (org.olat.modules.assessment.AssessmentToolOptions)4