Package org.olat.course.run

Examples of org.olat.course.run.RunMainController


   */
  public MainLayoutController createController(UserRequest ureq, WindowControl wControl) {
    RepositoryManager rm = RepositoryManager.getInstance();
    RepositoryEntry entry = rm.lookupRepositoryEntryBySoftkey(repositorySoftKey, true);
    ICourse course = CourseFactory.loadCourse(entry.getOlatResource());
    RunMainController c = new RunMainController(ureq, wControl, course, null, false, true);   
    // needed for css style reasons: a site own the whole content area and needs either to use a MenuAndToolController for the 3-columns layout or,
    // like here, the contentOnlyController
    //ContentOnlyController coc = new ContentOnlyController(ureq, wControl, c);
    return c;
  }
View Full Code Here


    boolean isDebug = Tracing.isDebugEnabled(CourseFactory.class);
    long startT = 0;
    if(isDebug){
      startT = System.currentTimeMillis();
    }
    MainLayoutController launchC = new RunMainController(ureq, wControl, course, initialViewIdentifier, true, true);
    if(isDebug){
      Tracing.logDebug("Runview for [["+course.getCourseTitle()+"]] took [ms]"+(System.currentTimeMillis() - startT), CourseFactory.class);
    }
   
    return launchC;
View Full Code Here

      ICourse course = loadCourse(ores);
     
      ContextEntry ce = BusinessControlFactory.getInstance().createContextEntry(entry);
      WindowControl bwControl = BusinessControlFactory.getInstance().createBusinessWindowControl(ce, wControl)
     
      RunMainController launchC = new RunMainController(ureq, bwControl, course, null, false, false);
      return launchC;     
    }   
  }
View Full Code Here

TOP

Related Classes of org.olat.course.run.RunMainController

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.