Search in sources :

Example 1 with QTIWordExport

use of org.olat.ims.qti.export.QTIWordExport in project openolat by klemens.

the class QTIEditorMainController method doExportDocx.

private void doExportDocx(UserRequest ureq) {
    AssessmentNode rootNode = (AssessmentNode) menuTreeModel.getRootNode();
    VFSContainer editorContainer = qtiPackage.getBaseDir();
    exportLatch = new CountDownLatch(1);
    MediaResource mr = new QTIWordExport(rootNode, editorContainer, getLocale(), "UTF-8", exportLatch);
    ureq.getDispatchResult().setResultingMediaResource(mr);
}
Also used : AssessmentNode(org.olat.ims.qti.editor.tree.AssessmentNode) VFSContainer(org.olat.core.util.vfs.VFSContainer) MediaResource(org.olat.core.gui.media.MediaResource) CountDownLatch(java.util.concurrent.CountDownLatch) QTIWordExport(org.olat.ims.qti.export.QTIWordExport)

Example 2 with QTIWordExport

use of org.olat.ims.qti.export.QTIWordExport in project OpenOLAT by OpenOLAT.

the class QTIEditorMainController method doExportDocx.

private void doExportDocx(UserRequest ureq) {
    AssessmentNode rootNode = (AssessmentNode) menuTreeModel.getRootNode();
    VFSContainer editorContainer = qtiPackage.getBaseDir();
    exportLatch = new CountDownLatch(1);
    MediaResource mr = new QTIWordExport(rootNode, editorContainer, getLocale(), "UTF-8", exportLatch);
    ureq.getDispatchResult().setResultingMediaResource(mr);
}
Also used : AssessmentNode(org.olat.ims.qti.editor.tree.AssessmentNode) VFSContainer(org.olat.core.util.vfs.VFSContainer) MediaResource(org.olat.core.gui.media.MediaResource) CountDownLatch(java.util.concurrent.CountDownLatch) QTIWordExport(org.olat.ims.qti.export.QTIWordExport)

Aggregations

CountDownLatch (java.util.concurrent.CountDownLatch)2 MediaResource (org.olat.core.gui.media.MediaResource)2 VFSContainer (org.olat.core.util.vfs.VFSContainer)2 AssessmentNode (org.olat.ims.qti.editor.tree.AssessmentNode)2 QTIWordExport (org.olat.ims.qti.export.QTIWordExport)2