l.add(new DefaulRating(subject, rater, student, grade));
}
public Map<Rateable, List<Rating>> getRatings(User requester, Student student) throws NotAllowedException {
if (!requester.equals(student) && requester != User.ADMIN) {
throw new NotAllowedException(requester + " is not allowed to retrieve the ratings for " + student);
}
Map<Rateable, List<Rating>> userRatings = ratings.get(student);
if (userRatings == null) {