Examples of lookupRepositoryEntry()


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

          //these are eiterh surveys or tests
          //try it as testresource then as survey, after this give up
          Long oresId = new Long(folderOfResource.getName());
          FileResource fr = new TestFileResource();
          fr.overrideResourceableId(oresId);
          myEntry = rm.lookupRepositoryEntry(fr,false);
          if(myEntry==null){
            //no qti test found, try the qti survey
            fr = new SurveyFileResource();
            fr.overrideResourceableId(oresId);
            myEntry = rm.lookupRepositoryEntry(fr,false);
View Full Code Here

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

          myEntry = rm.lookupRepositoryEntry(fr,false);
          if(myEntry==null){
            //no qti test found, try the qti survey
            fr = new SurveyFileResource();
            fr.overrideResourceableId(oresId);
            myEntry = rm.lookupRepositoryEntry(fr,false);
          }
          //
          if(myEntry!=null){
            List identites = manager.getVisibleIdentitiesByPowerSearch(folderOfUser.getName(),null,false, null,null,null,null,null);
            if(identites!=null && identites.size()==1){
View Full Code Here

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

  private String sUnzippedDirRel;
  private Document doc = null;

  public ImsRepositoryResolver(Long repositoryEntryKey) {
    RepositoryManager rm = RepositoryManager.getInstance();
    RepositoryEntry entry = rm.lookupRepositoryEntry(repositoryEntryKey);
    if (entry != null) {
      OLATResource ores = entry.getOlatResource();
      init(ores);
    }
  }
View Full Code Here

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

    List<String> calendarIDsToBeRemoved = new ArrayList<String>();
    for (Iterator<String> iter = subscribedCourseCalendarIDs.iterator(); iter.hasNext();) {
      String courseCalendarID = iter.next();
      final long courseResourceableID = Long.parseLong(courseCalendarID);
     
      RepositoryEntry repoEntry = repoManager.lookupRepositoryEntry(new OLATResourceable() {

        public Long getResourceableId() { return new Long(courseResourceableID); }
        public String getResourceableTypeName() { return CourseModule.getCourseTypeName(); }
      }, false);
      if (repoEntry == null) {
View Full Code Here

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

    } else if (OresHelper.isOfType(olatResourceable, RepositoryEntry.class)) {
      // it this is a respository type, the resourceableID is the repository
      // entry key
      RepositoryManager rm = RepositoryManager.getInstance();
      RepositoryEntry re = rm.lookupRepositoryEntry(olatResourceable.getResourceableId());
      MainLayoutController ctrl = RepositoyUIFactory.createLaunchController(re, initialViewIdentifier, ureq, wControl);
      if (ctrl != null) return ctrl;

    } else if (OresHelper.isOfType(olatResourceable, CourseModule.class)) {
      // gets called by subscription launcher
View Full Code Here

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

      // the surrounding resource, but for launching we always need the
      // repoentry
      // if it is a course, we also take the repository entry, since a course
      // can only be called by a repoentry
      RepositoryManager rm = RepositoryManager.getInstance();
      RepositoryEntry re = rm.lookupRepositoryEntry(olatResourceable, false);
      MainLayoutController ctrl = RepositoyUIFactory.createLaunchController(re, initialViewIdentifier, ureq, wControl);
      if (ctrl != null) return ctrl;
    } else if (OresHelper.isOfType(olatResourceable, AssessmentManager.class)) {
      // gets called by subscription launcher
      //FIXME:fj:make it clearer here: subscriptioncontext is always given by
View Full Code Here

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

      // can only be called by a repoentry
      RepositoryManager rm = RepositoryManager.getInstance();
      // launch course with view identifyer assessment tool. however notifications
      // publisher data provides not existing assessmentManager resource
      OLATResourceable fakedCourseResource = OresHelper.createOLATResourceableInstance(CourseModule.class, olatResourceable.getResourceableId());
      RepositoryEntry re = rm.lookupRepositoryEntry(fakedCourseResource, false);
      MainLayoutController ctrl = RepositoyUIFactory.createLaunchController(re, "assessmentTool", ureq, wControl);
     
      if (ctrl != null) return ctrl;
    } else if (OresHelper.isOfType(olatResourceable, DropboxController.class)) {
      // JumpIn-handling for task-dropbox notification
View Full Code Here

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

      if (ctrl != null) return ctrl;
    } else if (OresHelper.isOfType(olatResourceable, DropboxController.class)) {
      // JumpIn-handling for task-dropbox notification
      RepositoryManager rm = RepositoryManager.getInstance();
      OLATResourceable fakedCourseResource = OresHelper.createOLATResourceableInstance(CourseModule.class, olatResourceable.getResourceableId());
      RepositoryEntry re = rm.lookupRepositoryEntry(fakedCourseResource,false);
      if (re == null) {
        return null;// found no repositoryEntry => return null
      }
      MainLayoutController ctrl = RepositoyUIFactory.createLaunchController(re, "assessmentTool:nodeChoose", ureq, wControl)
      if (ctrl != null) return ctrl;
View Full Code Here

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

      if (ctrl != null) return ctrl;
    } else if (OresHelper.isOfType(olatResourceable, ReturnboxController.class)) {
      // JumpIn-handling for task-returnbox notification
      RepositoryManager rm = RepositoryManager.getInstance();
      OLATResourceable fakedCourseResource = OresHelper.createOLATResourceableInstance(CourseModule.class, olatResourceable.getResourceableId());
      RepositoryEntry re = rm.lookupRepositoryEntry(fakedCourseResource, false);
      MainLayoutController ctrl = RepositoyUIFactory.createLaunchController(re, initialViewIdentifier, ureq, wControl)
      if (ctrl != null) return ctrl;
    }

    // --- repository ---
View Full Code Here

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

      RepositoryManager rm = RepositoryManager.getInstance();
      //OLAT-1842
      //if the LaunchController is created from a link click in a
      //notification list/email then we cannot be strict in the repoentry lookup.
      //Because the notification can live longer then the resource it is pointing to.
      RepositoryEntry re = rm.lookupRepositoryEntry(olatResourceable, false);
      //but now we have to handle the NULL case.
      //from the method signature it follows that one can choose if the method
      //should throw the "Unable to creat..." exception or to return null.
      //Hence it follows to set the ctrl == null if no repoentry found.
      MainLayoutController ctrl;
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.