class CampusCourseLearnServiceImpl extends LearnBaseService implements CampusCourseLearnService {

    @Override
    public List<SapCampusCourseTo> getCoursesWhichCouldBeCreated(Identity identity, SapOlatUser.SapUserType userType) {
        List<SapCampusCourseTo> courseList = new ArrayList<SapCampusCourseTo>();
        Set<Course> sapCampusCourses = campusCourseCoreService.getCampusCoursesWithoutResourceableId(identity, userType);
        for (Course sapCampusCourse : sapCampusCourses) {
            courseList.add(new SapCampusCourseTo(sapCampusCourse.getTitle(), sapCampusCourse.getId(), null));
        }
        Collections.sort(courseList);
        return courseList;
    }

}