Package org.olat.ims.qti.export

Examples of org.olat.ims.qti.export.QTIExportFormatter


    QTIExportManager qem = QTIExportManager.getInstance();
    String repositorySoftKey = (String) getModuleConfiguration().get(IQEditController.CONFIG_KEY_REPOSITORY_SOFTKEY);
    Long repKey = RepositoryManager.getInstance().lookupRepositoryEntryBySoftkey(repositorySoftKey, true).getKey();
   
    QTIExportFormatter qef = new QTIExportFormatterCVSType3(locale, null,"\t", "\"", "\\", "\r\n", false);
    qem.selectAndExportResults(qef, course.getResourceableId(), this.getShortTitle(), this.getIdent(), repKey, exportDirectory,charset, ".xls");
  }
View Full Code Here


    super.archiveNodeData(locale, course, exportDirectory, charset);

    QTIExportManager qem = QTIExportManager.getInstance();
    String repositorySoftKey = (String) getModuleConfiguration().get(IQEditController.CONFIG_KEY_REPOSITORY_SOFTKEY);
    Long repKey = RepositoryManager.getInstance().lookupRepositoryEntryBySoftkey(repositorySoftKey, true).getKey();
    QTIExportFormatter qef = new QTIExportFormatterCSVType1(locale,"\t", "\"", "\\", "\r\n", false);
    qem.selectAndExportResults(qef, course.getResourceableId(), this.getShortTitle(), this.getIdent(), repKey, exportDirectory,charset, ".xls");
  }
View Full Code Here

    QTIExportManager qem = QTIExportManager.getInstance();
    String repositorySoftKey = (String) getModuleConfiguration().get(IQEditController.CONFIG_KEY_REPOSITORY_SOFTKEY);
    Long repKey = RepositoryManager.getInstance().lookupRepositoryEntryBySoftkey(repositorySoftKey, true).getKey();
   
    QTIExportFormatter qef = new QTIExportFormatterCSVType2(locale,null,"\t", "\"", "\\", "\r\n", false);
    qem.selectAndExportResults(qef, course.getResourceableId(), this.getShortTitle(), this.getIdent(), repKey, exportDirectory,charset, ".xls");
  }
View Full Code Here

      String charset = um.getUserCharset(ureq.getIdentity());
      QTIExportManager qem = QTIExportManager.getInstance();
      Long repositoryRef = results.get(0).getResultSet().getRepositoryRef();
      QTIObjectTreeBuilder qotb = new QTIObjectTreeBuilder(repositoryRef);
      List qtiItemObjectList = qotb.getQTIItemObjectList();
      QTIExportFormatter formatter = new QTIExportFormatterCSVType1(ureq.getLocale(), "\t", "\"", "\\", "\r\n", false);
      Map qtiItemConfigs = getQTIItemConfigs(qtiItemObjectList);
      formatter.setMapWithExportItemConfigs(qtiItemConfigs);
      resultExportFile = qem.exportResults(formatter, results, qtiItemObjectList, courseNode.getShortTitle(), exportDir, charset, ".xls");
      String[] args1 = new String[] { Integer.toString(learners.size()) };
      vcStep2.contextPut("information", translator.translate("replace.wizard.information.paragraph1", args1));
      String[] args2 = new String[] { exportDir.getName(), resultExportFile };
      vcStep2.contextPut("information_par2", translator.translate("replace.wizard.information.paragraph2", args2));
View Full Code Here

TOP

Related Classes of org.olat.ims.qti.export.QTIExportFormatter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.