Examples of addComment()


Examples of de.anomic.data.BlogBoard.BlogEntry.addComment()

                final String StrSubject = post.get("subject", "");
                byte[] subject;
                subject = UTF8.getBytes(StrSubject);
                final String commentID = String.valueOf(System.currentTimeMillis());
                final BlogEntry blogEntry = sb.blogDB.readBlogEntry(pagename);
                blogEntry.addComment(commentID);
                sb.blogDB.writeBlogEntry(blogEntry);
                sb.blogCommentDB.write(sb.blogCommentDB.newEntry(commentID, subject, author, ip, date, content));
                prop.putHTML("LOCATION","BlogComments.html?page=" + pagename);

                MessageBoard.entry msgEntry = null;
View Full Code Here

Examples of edu.pitt.dbmi.nlp.noble.ontology.IClass.addComment()

   
      // copy superficial stuff
      for(String lbl: src.getLabels())
        dst.addLabel(lbl);
      for(String com: src.getComments())
        dst.addComment(com);
      if(src.getVersion() != null)
        dst.addVersion(src.getVersion());
   
      // copy properties
      for(IProperty sp : src.getProperties()){
View Full Code Here

Examples of edu.pitt.ontology.IClass.addComment()

    for(String s: labels){
      cls.addLabel(s);
    }
    // add definitions
    for(Definition d: c.getDefinitions()){
      cls.addComment(d.getDefinition());
    }
   
    // get concept code
    IProperty code = getProperty(ont,"code");
    cls.setPropertyValue(code,c.getCode());
View Full Code Here

Examples of edu.stanford.smi.protegex.owl.model.OWLIndividual.addComment()

          mTheoryIndividual = mTheoryClass.createOWLIndividual(getMebn().getName());
        }
        Debug.println("MTheory = " + getMebn().getName());
       
        if(getMebn().getDescription() != null){
          mTheoryIndividual.addComment(getMebn().getDescription());
        }
       
        /* hasMFrag */
       
        OWLObjectProperty hasMFragProperty = (OWLObjectProperty)getOwlModel().getOWLObjectProperty("hasMFrag");  
View Full Code Here

Examples of evolaris.framework.blog.business.BlogManager.addComment()

    Set<Long> permissions = getPermissions(article.getBlog(), webUser);
    if (!permissions.contains(PermissionManager.ADD_COMMENT_PERMISSION)) {
      throw new InputException(getLocalizedMessage("BloggingWeb", "blog.insufficientRights"));
    }   
    if (f.getContent() != null && f.getContent().trim().length() > 0) {
      Comment comment = blogMgr.addComment(article, f.getContent(), webUser);
      LOGGER.info("User "+UserManagerBase.toString(webUser)+" added comment #"+comment.getId()+" to article #"+article.getId()+" ("+article.getTitle()+") of blog #"+article.getBlog().getId()+" ("+article.getBlog().getName()+")");
    }
    ActionForward fwd = injectId(mapping.findForward("view"), f.getArticleId());
    return fwd;
  }
View Full Code Here

Examples of htsjdk.samtools.SAMFileHeader.addComment()

        final SAMFileHeader samFileHeader = new SAMFileReader(INPUT).getFileHeader();
        for (final String comment : COMMENT) {
            if (comment.contains("\n")) {
                throw new PicardException("Comments can not contain a new line");
            }
            samFileHeader.addComment(comment);
        }

        BamFileIoUtils.reheaderBamFile(samFileHeader, INPUT, OUTPUT, CREATE_MD5_FILE, CREATE_INDEX);

        return 0;
View Full Code Here

Examples of models.Article.addComment()

       
        // Non activity for the article
        assertEquals(0, Activity.count("article = ?", article));
       
        ArticleComment c = new ArticleComment(member, article, "Un commentaire");
        article.addComment(c);
        article.save();
       
        // One activity for the article
        assertEquals(1, Activity.count("article = ?", article));
        Activity a = Activity.find("article = ?", article).first();
View Full Code Here

Examples of models.Post.addComment()

            code, Cache.get(randomID)
        ).message("Invalid code. Please type it again");
        if(validation.hasErrors()) {
            render("Application/show.html", post, randomID);
        }
        post.addComment(author, content);
        flash.success("Thanks for posting %s", author);
        Cache.delete(randomID);
        show(postId);
    }
   
View Full Code Here

Examples of models.Session.addComment()

                Logger.info("Generating dummy session comments for member "+m);

                final int nbComments = Dummy.randomInt(2*averageCommentsPerMember);
                for (int i = 0; i < nbComments; i++) {
                    Session s = sessions.get(Dummy.randomInt(sessions.size()));
                    s.addComment(new SessionComment(m, s, Dummy.randomText(3000)));
                    s.save();
                }
            }
        }
    }
View Full Code Here

Examples of models.Talk.addComment()

       
        // Non activity for the session
        assertEquals(0, Activity.count("session = ?", t));
       
        SessionComment c = new SessionComment(member, t, "Un commentaire");
        t.addComment(c);
        t.save();
       
        // One activity for the session
        assertEquals(1, Activity.count("session = ?", t));
        Activity a = Activity.find("session = ?", t).first();
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.