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

Examples of org.olat.modules.scorm.server.servermodels.ScoDocument.loadDocument()


    List<VFSItem> contents = scoFolder.getItems(new XMLFilter());
    for(VFSItem file:contents) {
      ScoDocument document = new ScoDocument(null);
      try {
        if(file instanceof LocalFileImpl) {
          document.loadDocument(((LocalFileImpl)file).getBasefile());
        }
        else {
          logger.warn("Cannot use this type of VSFItem to load a SCO Datamodel: " + file.getClass().getName(), null);
          continue;
        }
View Full Code Here


    List<VFSItem> contents = scoFolder.getItems(new XMLFilter());
    for(VFSItem file:contents) {
      ScoDocument document = new ScoDocument(null);
      try {
        if(file instanceof LocalFileImpl) {
          document.loadDocument(((LocalFileImpl)file).getBasefile());
        }
        else {
          logger.warn("Cannot use this type of VSFItem to load a SCO Datamodel: " + file.getClass().getName(), null);
          continue;
        }
View Full Code Here

        // if this is a sco then we need to access the
        // cmi data model we created when importing the package
        if (isItemSco()) {
            if (_scoitemID != null) {
                ScoDocument anSco = new ScoDocument(settings);
                anSco.loadDocument(_scoitemID);
                _scoDataModel = anSco;
            }
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.