use of org.olat.course.nodes.pf.manager.FileSystemExport in project OpenOLAT by OpenOLAT.
the class PFCoachController method downloadFromSelection.
private void downloadFromSelection(UserRequest ureq) {
List<Long> identitykeys = new ArrayList<>();
for (Integer i : dropboxTable.getMultiSelectedIndex()) {
identitykeys.add(tableModel.getObject(i).getIdentity().getIdentityKey());
}
List<Identity> identities = securityManager.loadIdentityByKeys(identitykeys);
MediaResource resource = new FileSystemExport(identities, pfNode, courseEnv, getLocale());
ureq.getDispatchResult().setResultingMediaResource(resource);
}
use of org.olat.course.nodes.pf.manager.FileSystemExport in project openolat by klemens.
the class PFCoachController method downloadFromSelection.
private void downloadFromSelection(UserRequest ureq) {
List<Long> identitykeys = new ArrayList<>();
for (Integer i : dropboxTable.getMultiSelectedIndex()) {
identitykeys.add(tableModel.getObject(i).getIdentity().getIdentityKey());
}
List<Identity> identities = securityManager.loadIdentityByKeys(identitykeys);
MediaResource resource = new FileSystemExport(identities, pfNode, courseEnv, getLocale());
ureq.getDispatchResult().setResultingMediaResource(resource);
}
Aggregations