Examples of PodcastFileResource


Examples of org.olat.fileresource.types.PodcastFileResource

        else if (AnimationFileResource.validate(fResource)) tempFr = new AnimationFileResource();
        else if (SharedFolderFileResource.validate(fResource)) tempFr = new SharedFolderFileResource();
        // add a wiki copy
        else if (WikiResource.validate(fResource)) tempFr = new WikiResource();
        // add a podcast copy
        else if (PodcastFileResource.validate(fResource)) tempFr = new PodcastFileResource(fResourceFileroot, fResource);
        // add a blog copy
        else if (BlogFileResource.validate(fResource)) tempFr = new BlogFileResource(fResourceFileroot, fResource);
        // add a glossary copy
        else if (GlossaryResource.validate(fResource)) tempFr = new GlossaryResource();
        // the following types need unzippedDir
        else if (fResource.getName().toLowerCase().endsWith(".zip")) {
          File fUnzippedDir = unzipFileResource(tempFr);
          if (fUnzippedDir == null) {
            // in case of failure we forward the error message
            throw new AddingResourceException("resource.error.zip");
          }
          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();
View Full Code Here

Examples of org.olat.fileresource.types.PodcastFileResource

   * Creates a blank feed object and writes it to the (virtual) file system
   *
   * @see org.olat.modules.webFeed.managers.FeedManager#createPodcastResource()
   */
  public OLATResourceable createPodcastResource() {
    FeedFileResource podcastResource = new PodcastFileResource();
    return createFeedResource(podcastResource);
  }
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.