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

Examples of ch.entwine.weblounge.common.impl.content.movie.MovieResourceURIImpl


    // Create the resource uri, either from the id or the path. If none is
    // specified, and we are not in jsp compilation mode, issue a warning
    ResourceURI uri = null;
    if (StringUtils.isNotBlank(videoId)) {
      uri = new MovieResourceURIImpl(site, null, videoId);
    } else if (StringUtils.isNotBlank(videoResourcePath)) {
      uri = new MovieResourceURIImpl(site, videoResourcePath);
    } else {
      throw new JspException("Neither video id nor video path were specified");
    }

    // Try to load the video resource from the content repository
View Full Code Here


   * {@inheritDoc}
   *
   * @see ch.entwine.weblounge.common.repository.ResourceSerializer#newResource(ch.entwine.weblounge.common.site.Site)
   */
  public Resource<MovieContent> newResource(Site site) {
    return new MovieResourceImpl(new MovieResourceURIImpl(site));
  }
View Full Code Here

  public Resource<MovieContent> newResource(Site site, InputStream is,
      User user, Language language) {

    // TODO: Extract av metadata

    MovieResource avResource = new MovieResourceImpl(new MovieResourceURIImpl(site));
    avResource.setCreated(user, new Date());

    return avResource;
  }
View Full Code Here

    } else {
      path = URI_PREFIX + "/" + id;
      url = new WebUrlImpl(site, path);
    }

    ResourceURI uri = new MovieResourceURIImpl(site, path, id, version);
    MovieResourceSearchResultItemImpl result = new MovieResourceSearchResultItemImpl(uri, url, relevance, site, metadata);

    if (metadataMap.get(XML) != null)
      result.setResourceXml((String) metadataMap.get(XML).getValues().get(0));
    if (metadataMap.get(HEADER_XML) != null)
View Full Code Here

TOP

Related Classes of ch.entwine.weblounge.common.impl.content.movie.MovieResourceURIImpl

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.