Search in sources :

Example 1 with ResponseRow

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;
}
Also used : ResponseRow(teammates.ui.template.ResponseRow) FeedbackResponseAttributes(teammates.common.datatransfer.attributes.FeedbackResponseAttributes) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 FeedbackResponseAttributes (teammates.common.datatransfer.attributes.FeedbackResponseAttributes)1 ResponseRow (teammates.ui.template.ResponseRow)1