use of teammates.common.datatransfer.CourseRoster in project teammates by TEAMMATES.
the class FeedbackSessionsLogic method getFeedbackSessionResultsForInstructorFromQuestionInSection.
/**
* Gets results of a feedback session to show to an instructor from an indicated question
* and in a section.
* This will not retrieve the list of comments for this question.
*/
public FeedbackSessionResultsBundle getFeedbackSessionResultsForInstructorFromQuestionInSection(String feedbackSessionName, String courseId, String userEmail, String questionId, String selectedSection) throws EntityDoesNotExistException {
CourseRoster roster = new CourseRoster(studentsLogic.getStudentsForCourse(courseId), instructorsLogic.getInstructorsForCourse(courseId));
Map<String, String> params = new HashMap<>();
params.put(PARAM_IS_INCLUDE_RESPONSE_STATUS, "true");
params.put(PARAM_IN_SECTION, "true");
params.put(PARAM_FROM_SECTION, "false");
params.put(PARAM_TO_SECTION, "false");
params.put(PARAM_QUESTION_ID, questionId);
params.put(PARAM_SECTION, selectedSection);
return getFeedbackSessionResultsForUserWithParams(feedbackSessionName, courseId, userEmail, UserRole.INSTRUCTOR, roster, params);
}
use of teammates.common.datatransfer.CourseRoster in project teammates by TEAMMATES.
the class FeedbackSessionsLogic method getFeedbackSessionResponseStatus.
/**
* Gets the response rate status for a session.
*/
public FeedbackSessionResponseStatus getFeedbackSessionResponseStatus(String feedbackSessionName, String courseId) throws EntityDoesNotExistException {
FeedbackSessionAttributes session = fsDb.getFeedbackSession(courseId, feedbackSessionName);
if (session == null) {
throw new EntityDoesNotExistException(ERROR_NON_EXISTENT_FS_VIEW + courseId + "/" + feedbackSessionName);
}
List<FeedbackQuestionAttributes> allQuestions = fqLogic.getFeedbackQuestionsForSession(feedbackSessionName, courseId);
CourseRoster roster = new CourseRoster(studentsLogic.getStudentsForCourse(courseId), instructorsLogic.getInstructorsForCourse(courseId));
return getFeedbackSessionResponseStatus(session, roster, allQuestions);
}
Aggregations