Package com.google.tchotchke.model

Examples of com.google.tchotchke.model.VideoSubmission.save()


    PersistenceManager pm = PMF.get().getPersistenceManager();

    try {
      VideoSubmission newSubmission = new VideoSubmission(videoId, articleId,
          uploader, authSubToken);
      newSubmission.save(pm);
    } finally {
      pm.close();
    }

  }
View Full Code Here


   */
  public void moderateVideo(String videoId, ModerationStatus status) {
    VideoSubmission sub = getVideoSubmissionById(videoId);
    if(sub != null) {
      sub.setStatus(status);
      sub.save();
      clearMemcacheForArticle(sub.getArticleId());
    } else {
      log.severe("Trying to moderate imaginary submission: " + videoId);
    }
  }
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.