Package org.olat.fileresource.types

Examples of org.olat.fileresource.types.SurveyFileResource


          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);
          }
          //
          if(myEntry!=null){
View Full Code Here


          }
          if (TestFileResource.validate(fUnzippedDir)) tempFr = new TestFileResource();
          else if (WikiResource.validate(fUnzippedDir)) tempFr = new WikiResource();
          else if (PodcastFileResource.validate(fUnzippedDir)) tempFr = new PodcastFileResource(fResourceFileroot, fUnzippedDir);
          else if (BlogFileResource.validate(fUnzippedDir)) tempFr = new BlogFileResource(fResourceFileroot, fUnzippedDir);
          else if (SurveyFileResource.validate(fUnzippedDir)) tempFr = new SurveyFileResource();
          // CP must be later entry... Test- and SurveyFileResource may contain
          // imsmanifest.xml as well
          else if (ImsCPFileResource.validate(fUnzippedDir)) tempFr = new ImsCPFileResource();
          // scorm and cp now can throw an exception which helps to show a
          // better error message in case
View Full Code Here

    this.translator = new PackageTranslator(PACKAGE_REPOSITORY, ureq.getLocale());
    this.locale = ureq.getLocale();
    if (type.equals(AssessmentInstance.QMD_ENTRY_TYPE_ASSESS)) {
      resource = new TestFileResource();
    } else if (type.equals(AssessmentInstance.QMD_ENTRY_TYPE_SURVEY)) {
      resource = new SurveyFileResource();
    }
    if (addCallback != null) {
      addCallback.setResourceable(resource);
      addCallback.setDisplayName(translator.translate(resource.getResourceableTypeName()));
      addCallback.setResourceName("-");
View Full Code Here

      controller = MessageUIFactory.createInfoMessage(ureq, wControl, title, message);
    } else {
      RepositoryEntry repositoryEntry = ne.getCourseNode().getReferencedRepositoryEntry();
      OLATResourceable ores = repositoryEntry.getOlatResource();
      Long resId = ores.getResourceableId();
      SurveyFileResource fr = new SurveyFileResource();
      fr.overrideResourceableId(resId);
      if(!CoordinatorManager.getCoordinator().getLocker().isLocked(fr, null)) {
        AssessmentManager am = userCourseEnv.getCourseEnvironment().getAssessmentManager();
        IQSecurityCallback sec = new CourseIQSecurityCallback(this, am, ureq.getIdentity());
        controller = new IQRunController(userCourseEnv, this.getModuleConfiguration(), sec, ureq, wControl, this);
      } else {
View Full Code Here

  /**
   * @see org.olat.repository.handlers.RepositoryHandler#getEditorController(org.olat.core.id.OLATResourceable org.olat.core.gui.UserRequest, org.olat.core.gui.control.WindowControl)
   */
  public Controller getEditorController(OLATResourceable res, UserRequest ureq, WindowControl wControl) {
    SurveyFileResource fr = new SurveyFileResource();
    fr.overrideResourceableId(res.getResourceableId());
   
    //check if we can edit in restricted mode -> only typos
    ReferenceManager refM = ReferenceManager.getInstance();
    List referencees = refM.getReferencesTo(res);
    //String referencesSummary = refM.getReferencesToSummary(res, ureq.getLocale());
View Full Code Here

TOP

Related Classes of org.olat.fileresource.types.SurveyFileResource

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.