@@ -0,0 +1,563 @@
+package at.ac.tuwien.inso.service.course_recommendation.filters;%0A%0Aimport org.springframework.stereotype.Component;%0A%0Aimport java.util.List;%0Aimport java.util.stream.Collectors;%0A%0Aimport at.ac.tuwien.inso.entity.Course;%0Aimport at.ac.tuwien.inso.entity.Student;%0A%0A@Component%0Apublic class DismissedCoursesFilter implements CourseRelevanceFilter %7B%0A%0A    @Override%0A    public List%3CCourse%3E filter(List%3CCourse%3E courses, Student student) %7B%0A        return courses.stream().filter(course -%3E !student.getDismissedCourses().contains(course)).collect(Collectors.toList());%0A    %7D%0A%7D%0A

Add filter to the recommendation algorithm to excludes dismissed courses