if(log.isDebugEnabled()) { StringBuffer sb = new StringBuffer("Found the following course members for "); sb.append(courseId); sb.append(": "); for(Iterator iter = members.iterator(); iter.hasNext();) { CourseMember member = (CourseMember)iter.next(); sb.append(member.getUniqname()); if(iter.hasNext()) { sb.append(", "); } } log.debug(sb.toString()); }
	public List getCourseMembers(String courseId) {		Section section = cmService.getSection(courseId);		Map userRoles = cmGroupProvider.getUserRolesForGroup(courseId);		List members = new ArrayList();		for(Iterator iter = userRoles.keySet().iterator(); iter.hasNext();) {			String userEid = (String)iter.next();			String role = (String)userRoles.get(userEid);			CourseMember courseMember = new CourseMember();			courseMember.setCourse(courseId);			courseMember.setCredits(null); // TODO: Get the credits from the CM Enrollment 			String displayName = null;			try {				displayName = uds.getUserByEid(userEid).getDisplayName();			} catch (UserNotDefinedException unde) {				log.warn("UserDirService can't find user " + userEid + " even though this eid was provided by the CM Service.");			}			courseMember.setName(displayName);			courseMember.setRole(role);			courseMember.setProviderRole(role);			courseMember.setSection(section.getTitle());			courseMember.setUniqname(userEid);						// Add the course member to the list			members.add(courseMember);		}		return members;	}