Examples of addPost()


Examples of net.easymodo.asagi.model.Topic.addPost()

        mat = omImagesPattern.matcher(text);
        if(mat.find()) omImages = Integer.parseInt(mat.group(1));

        Post op = this.parsePost(text, 0);
        Topic thread = new Topic(op.getNum(), omPosts, omImages);
        thread.addPost(op);

        return thread;
    }

    @SuppressWarnings("RedundantStringConstructorCall")
View Full Code Here

Examples of net.easymodo.asagi.model.Topic.addPost()

            if(type.equals("opContainer")) {
                t = this.parseThread(text);
                p.addThread(t);
            } else {
                if(t != null) t.addPost(this.parsePost(text, t.getNum()));
            }
        }

        p.setLastMod(newLastMod);
        return p;
View Full Code Here

Examples of net.easymodo.asagi.model.Topic.addPost()

                } else {
                    throw new ContentParseException("Two OP posts in thread in " + threadNum);
                }
            } else {
                if(t != null) {
                    t.addPost(this.parsePost(text, t.getNum()));
                } else {
                    throw new ContentParseException("Thread without OP post in " + threadNum);
                }
            }
        }
View Full Code Here

Examples of net.easymodo.asagi.model.Topic.addPost()

                            }

                            // Looks like it's new
                            // Add the post's num to the full topic, we'll
                            // update it for real with newTopic.
                            fullTopic.addPost(newPost.getNum()); newPosts++;

                            // Comment too long. Click here to view the full text.
                            // This means we have to refresh the full thread
                            if(newPost.isOmitted()) mustRefresh = true;
                        }
View Full Code Here

Examples of net.easymodo.asagi.model.Topic.addPost()

            for(PostJson pj : tj.getPosts()) {
                if(pj.getResto() == 0) {
                    t = this.makeThreadFromJson(pj);
                    p.addThread(t);
                } else {
                    if(t != null) t.addPost(this.makePostFromJson(pj));
                }
            }
        }

        p.setLastMod(newLastMod);
View Full Code Here

Examples of net.easymodo.asagi.model.Topic.addPost()

                } else {
                    throw new ContentParseException("Two OP posts in thread in " + threadNum);
                }
            } else {
                if(t != null) {
                    t.addPost(this.makePostFromJson(pj));
                } else {
                    throw new ContentParseException("Thread without OP post in " + threadNum);
                }
            }
        }
View Full Code Here

Examples of net.easymodo.asagi.model.Topic.addPost()

            throw new ContentParseException("Could not parse thread (thread post num missing and could not be zero)");
        }

        Topic t = new Topic(pj.getNo(), pj.getOmittedPosts(), pj.getOmittedImages());

        t.addPost(this.makePostFromJson(pj));
        return t;
    }
}
View Full Code Here

Examples of org.corrib.s3b.sscf.manage.sioc.PostedResource.addPost()

    //  try {
        // add new post on current resource to the reposistory and get its uri
        if (parentPostUri != null && !"0".equals(parentPostUri)) {
          //System.out.println("if");
          postedResource.addPost(post, parentPostUri);
        } else {
          //System.out.println("else");
          postedResource.addPost(post, null);
        }
       
View Full Code Here

Examples of org.corrib.s3b.sscf.manage.sioc.PostedResource.addPost()

        if (parentPostUri != null && !"0".equals(parentPostUri)) {
          //System.out.println("if");
          postedResource.addPost(post, parentPostUri);
        } else {
          //System.out.println("else");
          postedResource.addPost(post, null);
        }
       
        List<SiocPostBean> posts = postedResource.getRootPosts();
        int postsNo = 0;
        for (SiocPostBean p : posts) {
View Full Code Here

Examples of org.jtalks.jcommune.model.entity.Topic.addPost()

        JCUser user2 = new JCUser("user2", "mymail2@email.mydomain", "qwerty");
        Topic topic = new Topic(user, "my topic");

        Post post = new Post(user, "Texty text!");
        Post post2 = new Post(user2, "Reply to texty text");
        topic.addPost(post);
        topic.addPost(post2);

        model.put("posts", Arrays.asList(post, post2));

        MockHttpServletRequest request = new MockHttpServletRequest();
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.