use of teammates.ui.template.ResponseRow in project teammates by TEAMMATES.
the class InstructorSearchPageData method createResponseRows.
private List<ResponseRow> createResponseRows(FeedbackQuestionAttributes question, FeedbackResponseCommentSearchResultBundle frcSearchResultBundle) {
List<ResponseRow> rows = new ArrayList<>();
List<FeedbackResponseAttributes> responseList = frcSearchResultBundle.responses.get(question.getId());
for (FeedbackResponseAttributes responseEntry : responseList) {
String giverName = frcSearchResultBundle.responseGiverTable.get(responseEntry.getId());
String recipientName = frcSearchResultBundle.responseRecipientTable.get(responseEntry.getId());
String response = responseEntry.getResponseDetails().getAnswerHtmlInstructorView(question.getQuestionDetails());
rows.add(new ResponseRow(giverName, recipientName, response, createFeedbackResponseCommentRows(responseEntry, frcSearchResultBundle)));
}
return rows;
}
Aggregations