Package org.olat.ims.qti.export.helper

Examples of org.olat.ims.qti.export.helper.QTIObjectTreeBuilder


      exportDir = CourseFactory.getOrCreateDataExportDirectory(ureq.getIdentity(), course.getCourseTitle());
      UserManager um = UserManager.getInstance();
      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()) };
View Full Code Here


    QTIResultManager qrm = QTIResultManager.getInstance();
    List results = qrm.selectResults(olatResource, olatResourceDetail, repositoryRef, qef.getType());
    if(results.size() > 0){
      QTIResult res0 = (QTIResult) results.get(0);
     
      QTIObjectTreeBuilder qotb = new QTIObjectTreeBuilder(new Long(res0.getResultSet().getRepositoryRef()));
     
      List qtiItemObjectList = qotb.getQTIItemObjectList();
      qef.setQTIItemObjectList(qtiItemObjectList);
      if (results.size() > 0) {
        createContentOfExportFile(results,qtiItemObjectList,qef);
        writeContentToFile(shortTitle, exportDirectory, charset, qef, fileNameSuffix);
      }
View Full Code Here

           
            QTIResultManager qrm = QTIResultManager.getInstance();
            results = qrm.selectResults(olatResource, currentCourseNode.getIdent(), repKey, type);
            QTIResult res0 = (QTIResult) results.get(0);
           
            QTIObjectTreeBuilder qotb = new QTIObjectTreeBuilder(new Long(res0.getResultSet().getRepositoryRef()));
            qtiItemObjectList = qotb.getQTIItemObjectList();
           
            this.qtiItemConfigs = getQTIItemConfigs();
           
            if(dummyMode){
              finishedVC = createVelocityContainer("finished");
View Full Code Here

TOP

Related Classes of org.olat.ims.qti.export.helper.QTIObjectTreeBuilder

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.