use of teammates.common.datatransfer.CourseDetailsBundle in project teammates by TEAMMATES.
the class StudentHomePageAction method addPlaceholderCourse.
private void addPlaceholderCourse(List<CourseDetailsBundle> courses, String courseId, Map<FeedbackSessionAttributes, Boolean> sessionSubmissionStatusMap) {
try {
CourseDetailsBundle course = logic.getCourseDetails(courseId);
courses.add(course);
addPlaceholderFeedbackSessions(course, sessionSubmissionStatusMap);
FeedbackSessionDetailsBundle.sortFeedbackSessionsByCreationTime(course.feedbackSessions);
} catch (EntityDoesNotExistException e) {
showEventualConsistencyMessage(courseId);
statusToAdmin = Const.ACTION_RESULT_FAILURE + " :" + e.getMessage();
}
}
Aggregations