Package org.olat.modules.scorm.server.servermodels

Examples of org.olat.modules.scorm.server.servermodels.CMI_DataModel


      }

      // if the scoType is "sco", then we have to generate our CMI model
      // for it...
      if (scoType.equals(SCORM12_Core.SCO)) {
        CMI_DataModel scoModel = new CMI_DataModel(settings.getStudentId(), settings.getStudentName(), maxTimeText, timeLimitText,
            datafromLmsText, masteryScoreText, settings.getLessonMode(), settings.getCreditMode());

        scoModel.buildFreshModel();
        Document theModel = scoModel.getModel();
        File scoFile = settings.getScoDataModelFile(id);
        scoFile.getParentFile().mkdirs();
        scoModel.setDocument(theModel);
        scoModel.setFile(scoFile);
        try {
          scoModel.saveDocument();
        } catch (IOException ex) {
          throw new OLATRuntimeException(this.getClass(), "Could not save sco settings.", ex);         
        }
      }
    }
View Full Code Here

TOP

Related Classes of org.olat.modules.scorm.server.servermodels.CMI_DataModel

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.