use of teammates.ui.template.FeedbackQuestionTableRow in project teammates by TEAMMATES.
the class InstructorFeedbackQuestionCopyPageData method buildCopyQuestionsModalRows.
private List<FeedbackQuestionTableRow> buildCopyQuestionsModalRows(List<FeedbackQuestionAttributes> copiableQuestions) {
List<FeedbackQuestionTableRow> copyQuestionRows = new ArrayList<>();
for (FeedbackQuestionAttributes question : copiableQuestions) {
String courseId = question.courseId;
String fsName = question.feedbackSessionName;
FeedbackQuestionDetails questionDetails = question.getQuestionDetails();
String qnType = questionDetails.getQuestionTypeDisplayName();
String qnText = questionDetails.getQuestionText();
String qnId = question.getId();
FeedbackQuestionTableRow row = new FeedbackQuestionTableRow(courseId, fsName, qnType, qnText, qnId);
copyQuestionRows.add(row);
}
return copyQuestionRows;
}
Aggregations