Search in sources :

Example 6 with ArchiveResource

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

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