private List<FeedbackResponseAttributes> getFeedbackResponsesForTeamMembersOfStudent( String feedbackQuestionId, StudentAttributes student) { List<StudentAttributes> studentsInTeam = studentsLogic.getStudentsForTeam(student.team, student.course); List<FeedbackResponseAttributes> teamResponses = new ArrayList<FeedbackResponseAttributes>(); for (StudentAttributes studentInTeam : studentsInTeam) { if (studentInTeam.email.equals(student.email)) { continue; } List<FeedbackResponseAttributes> responses = frDb.getFeedbackResponsesForReceiverForQuestion(feedbackQuestionId, studentInTeam.email); teamResponses.addAll(responses); } return teamResponses; }
public List<FeedbackResponseAttributes> getFeedbackResponsesForReceiverForQuestion( String feedbackQuestionId, String userEmail) { return frDb.getFeedbackResponsesForReceiverForQuestion(feedbackQuestionId, userEmail); }