public void exportCategory( QuestionReplyExport exporter, NodeDetail category, String categoryId, StringBuilder sb) throws QuestionReplyException, ParseException { // titre de la catégorie sb.append("<tr>\n"); sb.append("<td class=\"titreCateg\" width=\"91%\">") .append(category.getName()) .append("</td>\n"); sb.append("</tr>\n"); // contenu de la catégorie sb.append("<tr>\n"); sb.append("<td colspan=\"2\">\n"); Collection<Question> questions = getQuestionsByCategory(categoryId); for (Question question : questions) { exporter.exportQuestion(question, sb, this); } sb.append("</td>\n"); sb.append("</tr>\n"); }
public boolean isReplyVisible(Question question, Reply reply) { return QuestionReplyExport.isReplyVisible(question, reply, getUserRole(), getUserId()); }