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