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

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


   */
  public ScormPackageHandler(ISettingsHandler settings) throws JDOMException, IOException {
    this.settings = settings;
    // Load the Document
    loadDocument(settings.getManifestFile());
    _sequencerModel = new SequencerModel(new File(settings.getScoItemSequenceFilePath()),settings);
    _scormCore = new SCORM12_Core(this);
  }
View Full Code Here


   */
  public NavigationViewer(ISettingsHandler settings) throws Exception {
    this.settings = settings;
    super.loadDocument(settings.getManifestFile());
    _scormCore = new SCORM12_Core(this);
    _sequencerModel = new SequencerModel(settings.getScoItemSequenceFile(), settings);
  }
View Full Code Here

   *
   * @return true or false
   */
  public boolean hasManifestChanged() {
    String manifestTimeStamp = Long.toString(getFile().lastModified());
    SequencerModel sequence = new SequencerModel(settings.getScoItemSequenceFile(), settings);
    String storedLastModified = sequence.getManifestModifiedDate();
    return (manifestTimeStamp.equals(storedLastModified));
  }
View Full Code Here

    if(scoDirectory == null) return null;
   
    VFSItem reloadSettingsFile = scoDirectory.resolve(RELOAD_SETTINGS_FILE);
    if(reloadSettingsFile instanceof LocalFileImpl) {
      LocalFileImpl fileImpl = (LocalFileImpl)reloadSettingsFile;
      return new SequencerModel(fileImpl.getBasefile(), null);
    } else if (reloadSettingsFile != null) {
      throw new OLATRuntimeException(this.getClass(), "Programming error, SCORM results must be file based", null);
    }
    return null;
  }
View Full Code Here

   *
   * @param org
   * @return true is successful
   */
  protected boolean populateFromDisk(String org) {
    _sequencerModel = new SequencerModel(settings.getScoItemSequenceFile(), settings);
    _prereqTable = _sequencerModel.getItemsAsHash(org);
    return (_prereqTable != null);
  }
View Full Code Here

TOP

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

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.