Пример #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);
 }