Examples of Post


Examples of org.cruxframework.crux.core.shared.rest.annotation.POST

    PUT put = method.getAnnotation(PUT.class);
    if (put != null)
    {
      return put.validatePreviousState();
    }
    POST post = method.getAnnotation(POST.class);
    if (post != null)
    {
      return post.validatePreviousState();
    }

      return null;
    }
View Full Code Here

Examples of org.dddlib.organisation.domain.Post

        application.changeParentOfOrganization(organization, parent, date);
    }

    @Override
    public void createPostUnderOrganization(PostDto postDto, Long organizationId, Date date) {
        Post post = new PostAssembler().toEntity(postDto);
        Organization organization = application.getEntity(Organization.class, organizationId);
        application.createPostUnderOrganization(post, organization, date);
    }
View Full Code Here

Examples of org.entities.Post

            PostsModel model = new PostsModel();


            if (request.getMethod().equals("POST")) {

                model.insertarPost(new Post(request.getParameter("texto")));


            }

            request.setAttribute("posts", model.obtenerPosts());
View Full Code Here

Examples of org.expressme.webwind.demo.Post

        try {
            ps = conn.prepareStatement(sql);
            bindParameters(ps, args);
            rs = ps.executeQuery();
            while (rs.next()) {
                Post post = new Post(rs.getLong("id"), rs.getString("title"), rs.getString("content"), rs.getDate("creation"));
                list.add(post);
            }
            return list;
        }
        finally {
View Full Code Here

Examples of org.javalite.activejdbc.test_models.Post

     */
    @Test
    public void shouldBeAbleToIncludePolymorphicParent() {
        deleteAndPopulateTables("comments", "articles", "posts");

        Post p = Post.findById(1);
        p.add(Comment.create("author", "eleonard", "content", "this is just a test comment text"));

        Article a = Article.findById(2);
        a.add(Comment.create("author", "eleonard", "content", "this is just a test comment text"));

        final LazyList<Comment> comments = Comment.findAll().orderBy("id").include(Article.class, Post.class);
View Full Code Here

Examples of org.jtalks.jcommune.model.entity.Post

        Topic topic = new Topic(user, "title");
        topic.setBranch(branch);
        topic.setId(TOPIC_ID);

        post = new Post(user, POST_CONTENT);
        post.setId(POST_ID);
        post.setTopic(topic);
        topic.getPosts().addAll(asList(post));

        when(postService.get(POST_ID)).thenReturn(post);
View Full Code Here

Examples of org.openblend.fejstbuk.domain.Post

        return like;
    }

    public void unlike(Like like) {
        em.remove(like);
        Post post = like.getPost();
        if (post != null) {
            Set<Like> likes = post.getLikes();
            if (likes != null) {
                likes.remove(like);
            }
        }
        User user = like.getUser();
View Full Code Here

Examples of org.opoo.press.Post

      if(i < posts.size() - 1){
        post.setPrevious(posts.get(i + 1));
      }
    }*/
    Iterator<Post> it = posts.iterator();
    Post prev = null;
    Post curr = null;
    while(it.hasNext()){
      curr = it.next();
      if(prev != null){
        prev.setPrevious(curr);
        curr.setNext(prev);
      }
      prev = curr;
    }
  }
View Full Code Here

Examples of org.osforce.connect.entity.blog.Post

    Map<Object, Object> model = CollectionUtil.newHashMap();
    if(StringUtils.equals(Profile.NAME, activity.getEntity())) {
      Profile profile = profileService.getProfile(activity.getLinkedId());
      model.put("profile", profile);
    } else if(StringUtils.equals(Post.NAME, activity.getEntity())) {
      Post blogPost = postService.getPost(activity.getLinkedId());
      model.put("post", blogPost);
    } else if(StringUtils.equals(Forum.NAME, activity.getEntity())){
      Forum forum = forumService.getForum(activity.getLinkedId());
      model.put("forum", forum);
    } else if(StringUtils.equals(Topic.NAME, activity.getEntity())) {
View Full Code Here

Examples of org.osforce.connect.entity.blog.Post

 
  @RequestMapping("/detail-view")
  @Permission({"post-view"})
  public String doDetailView(@RequestParam Long postId,
      @RequestAttr User user, Model model) {
    Post post = postService.viewPost(postId);
    model.addAttribute(AttributeKeys.BLOG_POST_KEY_READABLE, post);
    return "blog/post-detail";
  }
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.