Package net.baguajie.domains

Examples of net.baguajie.domains.Comment


    Activity activity = activityRepository.findOne(bean.getActId());
    if(activity==null){
      throw new RuntimeException("Invalid activity id:" + bean.getActId());
    }
    // save comment
    Comment cmt = Comment.from(bean, signInUser);
    cmt.setAct(activity);
    cmt = commentRepository.save(cmt);
   
    // incr commented count of orignal activity
    activityRepository.inc(activity.getId(), "commentedCount", 1);
   
View Full Code Here


      @PathVariable String type, Model model,
      HttpServletRequest request, HttpSession session){
    if(!ajaxUtil.isAjaxRequest(request)){
      throw new ResourceNotFoundException();
    }
    Comment cmt = commentRepository.findOne(id);
    model.addAttribute("cmt", cmt);
    return "ops/cmt."+ type;
  }
View Full Code Here

 
  @RemotingInclude
  public ROResult updateCommentStatus(String commentId, CommentStatus status) {
    ROResult result = new ROResult();
    try {
      Comment comment = commentRepository.findOne(commentId);
      if(comment==null)
      {
        throw new RuntimeException("Could not find the comment with id \""+comment + "\"");
      }
//      comment.setStatus(status);
View Full Code Here

TOP

Related Classes of net.baguajie.domains.Comment

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.