예제 #1
0
 @Override
 public void deleteForumTopic(long topicId) {
   forumTopicDao.delete(topicId);
 }
예제 #2
0
 @Override
 public ForumTopic findForumTopic(long topicId) {
   return forumTopicDao.findOne(topicId);
 }
예제 #3
0
 @Override
 public Page<ForumTopic> getTopicsPage(long forumId, Pageable pageable) {
   return forumTopicDao.getTopicsPage(forumId, pageable);
 }
예제 #4
0
 @Override
 public void saveForumTopic(ForumTopic forumTopic) {
   forumTopicDao.save(forumTopic);
 }
예제 #5
0
 @Override
 public List<ForumTopic> getLatestTopics(int offset, int limit) {
   Pageable pageable = new PageRequest(offset / limit, limit);
   return forumTopicDao.getTopics(pageable);
 }