Package evolaris.framework.blog.web

Examples of evolaris.framework.blog.web.DisplayableComment


    List<DisplayableComment> comments = new ArrayList<DisplayableComment>();
    for (Comment c : article.getComments()) {
      if(viewReleasedCommentsOnly && c.getReviewStatus() != 1){
       
      } else {
        DisplayableComment dc = new DisplayableComment(c);
        comments.add(dc);
      }
    }
    da.setCommentCount(comments.size());
    req.setAttribute("commentList", comments);
View Full Code Here


      item.addElement("guid").setText(blog.getId()+"-accessdenied");
    } else {
      int n = 0;
      BlogManager blogMgr = new BlogManager(locale, session);
      for (Comment c : blogMgr.getComments(blog)) {
        DisplayableComment co = new DisplayableComment(c);
        String authorName = co.getAuthorName() != null ? co.getAuthorName() : "("+getResources(req).getMessage("um.anonymousUser")+")";
        Element item = channel.addElement("item");
        String title = getLocalizedMessage("BloggingWeb", "blog.rssCommentEntry", c.getArticle().getTitle(), authorName);
        item.addElement("title").setText(title);
        item.addElement("author").setText(authorName);
        item.addElement("description").addCDATA(c.getContent());     
View Full Code Here

    if (article.getAuthor() != null) {
      session.load(User.class, article.getAuthor().getId());
    }
    List<DisplayableComment> comments = new ArrayList<DisplayableComment>();
    for (Comment c : article.getComments()) {
      DisplayableComment dc = new DisplayableComment(c);
      comments.add(dc);
    }
    req.setAttribute("commentList", comments);

    // list of game instances
View Full Code Here

TOP

Related Classes of evolaris.framework.blog.web.DisplayableComment

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.