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