Search in sources :

Example 1 with FileSystemExport

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);
}
Also used : ArrayList(java.util.ArrayList) MediaResource(org.olat.core.gui.media.MediaResource) Identity(org.olat.core.id.Identity) FileSystemExport(org.olat.course.nodes.pf.manager.FileSystemExport)

Example 2 with FileSystemExport

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);
}
Also used : ArrayList(java.util.ArrayList) MediaResource(org.olat.core.gui.media.MediaResource) Identity(org.olat.core.id.Identity) FileSystemExport(org.olat.course.nodes.pf.manager.FileSystemExport)

Aggregations

ArrayList (java.util.ArrayList)2 MediaResource (org.olat.core.gui.media.MediaResource)2 Identity (org.olat.core.id.Identity)2 FileSystemExport (org.olat.course.nodes.pf.manager.FileSystemExport)2