Package ru.org.linux.comment

Examples of ru.org.linux.comment.Comment


      Topic message = messageDao.getById(url.getMessageId());

      boolean deleted = message.isDeleted();

      if (!deleted && url.isCommentUrl()) {
        Comment comment = commentService.getById(url.getCommentId());

        deleted = comment.isDeleted();
      }

      String urlTitle = linkText!=null?simpleFormat(linkText):StringUtil.escapeHtml(message.getTitle());

      String newUrlHref = url.formatJump(messageDao, secure);
View Full Code Here


    HttpServletRequest request,
    @PathVariable("id") int msgid,
    @PathVariable("commentid") int commentId
  ) throws Exception {
    Topic message = messageDao.getById(msgid);
    Comment comment =  commentService.getById(commentId);

    List<PreparedEditHistory> editHistories = editHistoryService.prepareEditInfo(comment, request.isSecure());

    ModelAndView modelAndView = new ModelAndView("history");
View Full Code Here

      if (msgid==0) {
        logger.warn("Skipping MSGID=0!!!");
        continue;
      }

      Comment comment = commentService.getById(msgid);

      // комментарии могут быть из разного топика в функция массового удаления
      // возможно для скорости нужен какой-то кеш топиков, т.к. чаще бывает что все
      // комментарии из одного топика
      Topic topic = topicDao.getById(comment.getTopicId());

      if (!isTopicVisible(topic) || comment.isDeleted()) {
        logger.info("Deleting comment " + comment.getId());
        bulkRequest.add(client.prepareDelete(MESSAGES_INDEX, MESSAGES_TYPE, Integer.toString(comment.getId())));
      } else {
        String message = lorCodeService.extractPlainText(msgbaseDao.getMessageText(comment.getId()));
        bulkRequest.add(processComment(topic, comment, message));
      }
    }

    executeBulk(bulkRequest);
View Full Code Here

    Group group15 = mock(Group.class);
    Topic messageHistory = mock(Topic.class);
    Group groupHistory = mock(Group.class);
    CommentService commentService = mock(CommentService.class);

    Comment comment = mock(Comment.class);

    when(message1.getTitle()).thenReturn("привет1");
    when(message2.getTitle()).thenReturn("привет2");
    when(message3.getTitle()).thenReturn("привет3");
    when(message12.getTitle()).thenReturn("привет12");
View Full Code Here

TOP

Related Classes of ru.org.linux.comment.Comment

Copyright © 2018 www.massapicom. 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.