Search in sources :

Example 1 with QTI21WordExport

use of org.olat.ims.qti21.manager.openxml.QTI21WordExport in project OpenOLAT by OpenOLAT.

the class AssessmentTestComposerController method doExportDocx.

private void doExportDocx(UserRequest ureq) {
    exportLatch = new CountDownLatch(1);
    MediaResource mr = new QTI21WordExport(resolvedAssessmentTest, unzippedContRoot, unzippedDirRoot, getLocale(), "UTF-8", exportLatch);
    ureq.getDispatchResult().setResultingMediaResource(mr);
}
Also used : MediaResource(org.olat.core.gui.media.MediaResource) CountDownLatch(java.util.concurrent.CountDownLatch) QTI21WordExport(org.olat.ims.qti21.manager.openxml.QTI21WordExport)

Example 2 with QTI21WordExport

use of org.olat.ims.qti21.manager.openxml.QTI21WordExport in project openolat by klemens.

the class AssessmentTestComposerController method doExportDocx.

private void doExportDocx(UserRequest ureq) {
    exportLatch = new CountDownLatch(1);
    MediaResource mr = new QTI21WordExport(resolvedAssessmentTest, unzippedContRoot, unzippedDirRoot, getLocale(), "UTF-8", exportLatch);
    ureq.getDispatchResult().setResultingMediaResource(mr);
}
Also used : MediaResource(org.olat.core.gui.media.MediaResource) CountDownLatch(java.util.concurrent.CountDownLatch) QTI21WordExport(org.olat.ims.qti21.manager.openxml.QTI21WordExport)

Aggregations

CountDownLatch (java.util.concurrent.CountDownLatch)2 MediaResource (org.olat.core.gui.media.MediaResource)2 QTI21WordExport (org.olat.ims.qti21.manager.openxml.QTI21WordExport)2