Package ch.entwine.weblounge.common.content.movie

Examples of ch.entwine.weblounge.common.content.movie.MovieContent


        Resource<MovieContent> resource = parseResource(record);
        resource.getURI().setIdentifier(movieResource.getIdentifier());
        resource.setPublished(harvesterUser, date, null);
        removeContents(resource);

        MovieContent content = parseResourceContent(record);
        content.setSource(recordIdentifier);
        resource.addContent(content);

        addResource(resource);
        addContent(resource.getURI(), content);
      } else if (searchResult.getHitCount() > 1) {
        logger.error("The repository contains already more than one element of {}", recordIdentifier);
      } else {
        Resource<?> resource = parseResource(record);
        resource.setPublished(harvesterUser, date, null);
        ResourceContent content = parseResourceContent(record);

        if (resource == null || content == null)
          return;

        addResource(resource);
        content.setSource(recordIdentifier);
        addContent(resource.getURI(), content);
        logger.info("Harvesting resource " + recordIdentifier);
      }
    }
  }
View Full Code Here


      logger.error("Error trying to look up video resource {} from {}", videoId, repository);
      return SKIP_BODY;
    }

    MovieResource video = null;
    MovieContent videoContent = null;

    // Store the result in the jsp page context
    try {
      video = (MovieResource) repository.get(uri);
      video.switchTo(language);
View Full Code Here

   */
  public MovieContent createFromContent(InputStream is, User user,
      Language language, long size, String fileName, String mimeType)
      throws IOException {

    MovieContent content = new MovieContentImpl(fileName, language, mimeType);

    // Use the logged in user as the author
    content.setCreator(user);

    // Set the creation date
    content.setCreationDate(new Date());

    // MemoryCacheSeekableStream mcss = new MemoryCacheSeekableStream(is);
    // UnclosableInputStream bis = new UnclosableInputStream(mcss);

    // Read the audio visual metadata
View Full Code Here

TOP

Related Classes of ch.entwine.weblounge.common.content.movie.MovieContent

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.