Search in sources :

Example 1 with AdminFeedbackSessionRow

use of teammates.ui.template.AdminFeedbackSessionRow in project teammates by TEAMMATES.

the class AdminSessionsPageData method getFeedbackSessionRows.

public List<AdminFeedbackSessionRow> getFeedbackSessionRows(List<FeedbackSessionAttributes> feedbackSessions, Map<String, String> sessionToInstructorIdMap) {
    List<AdminFeedbackSessionRow> feedbackSessionRows = new ArrayList<>();
    for (FeedbackSessionAttributes feedbackSession : feedbackSessions) {
        String googleId = sessionToInstructorIdMap.get(feedbackSession.getIdentificationString());
        feedbackSessionRows.add(new AdminFeedbackSessionRow(getSessionStatusForShow(feedbackSession), getFeedbackSessionStatsLink(feedbackSession.getCourseId(), feedbackSession.getFeedbackSessionName(), googleId), TimeHelper.formatTime12H(feedbackSession.getStartTimeLocal()), feedbackSession.getStartTimeInIso8601UtcFormat(), TimeHelper.formatTime12H(feedbackSession.getEndTimeLocal()), feedbackSession.getEndTimeInIso8601UtcFormat(), getInstructorHomePageViewLink(googleId), feedbackSession.getCreatorEmail(), feedbackSession.getCourseId(), feedbackSession.getFeedbackSessionName()));
    }
    return feedbackSessionRows;
}
Also used : FeedbackSessionAttributes(teammates.common.datatransfer.attributes.FeedbackSessionAttributes) AdminFeedbackSessionRow(teammates.ui.template.AdminFeedbackSessionRow) ArrayList(java.util.ArrayList)

Aggregations

ArrayList (java.util.ArrayList)1 FeedbackSessionAttributes (teammates.common.datatransfer.attributes.FeedbackSessionAttributes)1 AdminFeedbackSessionRow (teammates.ui.template.AdminFeedbackSessionRow)1