Package org.olat.course.nodes

Examples of org.olat.course.nodes.STCourseNode


   * @return
   */
  public static boolean checkIfNodeIsAssessable(CourseNode node) {
    if (node instanceof AssessableCourseNode) {
      if (node instanceof STCourseNode) {
        STCourseNode scn = (STCourseNode) node;
        if (scn.hasPassedConfigured() || scn.hasScoreConfigured()) { return true; }
      } else if (node instanceof ScormCourseNode) {
        ScormCourseNode scormn = (ScormCourseNode) node;
        if (scormn.hasScoreConfigured()) { return true; }
      } else if (node instanceof ProjectBrokerCourseNode) {
        return false;// TODO:cg 28.01.2010 ProjectBroker : no assessment-tool in V1.0 return always false
View Full Code Here


  transient public static int MAX_PEEKVIEW_CHILD_NODES = 10; // default 10

  private static final String PACKAGE = Util.getPackageName(CourseNodeConfiguration.class);

  public CourseNode getInstance() {
    return new STCourseNode();
  }
View Full Code Here

    PersistingCourseImpl newCourse = new PersistingCourseImpl(ores.getResourceableId());
    // Put new course in course cache   
    putCourseInCache(newCourse.getResourceableId() ,newCourse);
   
    Structure initialStructure = new Structure();
    CourseNode runRootNode = new STCourseNode();
    runRootNode.setShortTitle(shortTitle);
    runRootNode.setLongTitle(longTitle);
    runRootNode.setLearningObjectives(learningObjectives);
    initialStructure.setRootNode(runRootNode);
    newCourse.setRunStructure(initialStructure);
    newCourse.saveRunStructure();

    CourseEditorTreeModel editorTreeModel = new CourseEditorTreeModel();
View Full Code Here

TOP

Related Classes of org.olat.course.nodes.STCourseNode

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.