Examples of Topic


Examples of ru.org.linux.topic.Topic

  @Override
  @RequestMapping("/poll.boxlet")
  protected ModelAndView getData(HttpServletRequest request) throws Exception {
    final Poll poll = pollDao.getCurrentPoll();

    Topic msg = messageDao.getById(poll.getTopicId());

    int count = pollDao.getVotersCount(poll.getId());

    int countUsers = pollDao.getCountUsers(poll);
View Full Code Here

Examples of se.caboo.beast.model.Topic

    for (Post post : forumPosts) {
      System.out.println("Application.Application:   " + post.createdAt());
    }

    System.out.println("Application.Application: Refetching single topic w/ PK");
    Topic singleTopic = Topic.fetchRequiredTopic(editingContext, Topic.FORUM.eq(singleForum).and(ERXQ.equals("id", 633)));
    System.out.println("Application.Application:   " + singleTopic.title());
   
    System.out.println("Application.Application: Fetching topic user");
    User user = singleTopic.user();
    System.out.println("Application.Application:   " + user.displayName());

    System.out.println("Application.Application: Fetching posts for topic (composite pk, which is kind of interesting)");
    NSArray<Post> topicPosts = singleTopic.posts();
    for (Post post : topicPosts) {
      System.out.println("Application.Application:   " + post.createdAt());
    }
   
    Post randomPost = topicPosts.lastObject();
View Full Code Here

Examples of wbbs.domain.Topic

            topic.authorId = loginUser.id;
            topic.postDate = new Timestamp(System.currentTimeMillis());
            topic.updateDate = topic.postDate;
            topicService.insertTopic(topic);
        } else {
            Topic t = topicService.findTopic(topic.id);
            notNull(t, "主题不存在");
            equal(t.authorId, loginUser.id, "权限错误");
            topicService.updateTopic(topic);
        }
        return ok();
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.