Package org.olat.ims.qti

Examples of org.olat.ims.qti.QTIResultManager


          si = new SubscriptionInfo(new TitleItem(title, CSS_CLASSS_IQTEST_ICON), null);

          for (Iterator<IQTESTCourseNode> i = testNodes.iterator(); i.hasNext();) {
            IQTESTCourseNode test = i.next();

            QTIResultManager qrm = QTIResultManager.getInstance();
            List testResultSets = qrm.getResultSets(course.getResourceableId(), test.getIdent(),
                test.getReferencedRepositoryEntry().getKey(), null);

            for (Iterator j = testResultSets.iterator(); j.hasNext();) {
              QTIResultSet qrs = (QTIResultSet) j.next();
              // - modify date on test set must be newer than last visit of
View Full Code Here


   * should be used (only for type 2 and 3)
   */
  public void selectAndExportResults(QTIExportFormatter qef, Long olatResource, String shortTitle, String olatResourceDetail, Long repositoryRef,
    File exportDirectory, String charset, String fileNameSuffix) {
   
    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()));
     
View Full Code Here

          if (success) {
            String repositorySoftKey = (String) currentCourseNode.getModuleConfiguration().get(IQEditController.CONFIG_KEY_REPOSITORY_SOFTKEY);
            Long repKey = RepositoryManager.getInstance().lookupRepositoryEntryBySoftkey(repositorySoftKey, true).getKey();
           
            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();
           
View Full Code Here

        type = 2;
    } else {
        type = 3;
    }
   
    QTIResultManager qrm = QTIResultManager.getInstance();
 
    String repositorySoftKey = (String) currentCourseNode.getModuleConfiguration().get(IQEditController.CONFIG_KEY_REPOSITORY_SOFTKEY);
 
    Long repKey = RepositoryManager.getInstance().lookupRepositoryEntryBySoftkey(repositorySoftKey, true).getKey();
    boolean hasSets = qrm.hasResultSets(olatResource, currentCourseNode.getIdent(), repKey);
   
    if (hasSets) return true;
    else return false;
  }
View Full Code Here

TOP

Related Classes of org.olat.ims.qti.QTIResultManager

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.