Package com.google.livingstories.server.rpcimpl

Examples of com.google.livingstories.server.rpcimpl.ContentRpcImpl


  private LivingStoryRpcService livingStoryService;
  private ContentRpcService contentService;

  public FeedServlet() {
    livingStoryService = new LivingStoryRpcImpl();
    contentService = new ContentRpcImpl();
  }
View Full Code Here


   
    BaseContentItem sourceContentItem = null;
    Long sourceContentEntityId = getSourceContentEntityId();
    if (sourceContentEntityId != null) {
      try {
        sourceContentItem = new ContentRpcImpl().getContentItem(sourceContentEntityId, false);
      } catch (JDOException ex) {
        // leave sourceContentEntity as null;
      }
    }
    ret.setSourceContentItem(sourceContentItem);
View Full Code Here

        Long livingStoryId = getLivingStoryId();
        if (livingStoryId == null) {
          AssetContentItem photoContentItem = null;
          if (getPhotoContentEntityId() != null) {
            try {
              photoContentItem = (AssetContentItem) new ContentRpcImpl().getContentItem(
                  getPhotoContentEntityId(), false);
            } catch (JDOException ex) {
              // leave photoContentItem as null;
            }
          }
          return new PlayerContentItem(getId(), getTimestamp(), getContributorIds(), getContent(),
              getImportance(), getName(), getAliases(), getPlayerType(), photoContentItem);
        } else {
          return new StoryPlayerContentItem(getId(), getTimestamp(), getContributorIds(),
              getContent(), getImportance(), livingStoryId,
              (PlayerContentItem) new ContentRpcImpl().getContentItem(
                  getParentPlayerContentEntityId(), false));
        }
      case QUOTE:
        return new QuoteContentItem(getId(), getTimestamp(), getContributorIds(),
            getContent(), getImportance(), getLivingStoryId());
View Full Code Here

TOP

Related Classes of com.google.livingstories.server.rpcimpl.ContentRpcImpl

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.