Examples of lookupRepositoryEntryBySoftkey()


Examples of org.olat.repository.RepositoryManager.lookupRepositoryEntryBySoftkey()

  /**
   * @see org.olat.navigation.SiteInstance#createController(org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
   */
  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);
View Full Code Here

Examples of org.olat.repository.RepositoryManager.lookupRepositoryEntryBySoftkey()

    importedRepositoryEntry.setDisplayname(importExport.getDisplayName());
    importedRepositoryEntry.setResourcename(importExport.getResourceName());
    importedRepositoryEntry.setDescription(importExport.getDescription());
    if (keepSoftkey) {
      String theSoftKey = importExport.getSoftkey();
      if (rm.lookupRepositoryEntryBySoftkey(theSoftKey, false) != null) {
        /*
         * keepSoftKey == true -> is used for importing in unattended mode.
         * "Importing and keeping the soft key" only works if there is not an
         * already existing soft key. In the case both if's are taken the
         * respective IMS resource is not imported. It is important to be aware
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.