Uses of Class
com.ericbouchut.learndev.course.entity.Course
Packages that use Course
Package
Description
-
Uses of Course in com.ericbouchut.learndev.course
Methods in com.ericbouchut.learndev.course that return CourseModifier and TypeMethodDescriptionInstructorCourseService.create(User instructor, CourseForm form) Create a new DRAFT course owned by the instructor.InstructorCourseService.ownedCourse(Long courseId, User instructor) The course as manageable by the given instructor: 404 when it does not exist, 403 when it belongs to another instructor.CourseService.visibleCourse(Long courseId, User student) The course as visible to the given student, or 404 when the course does not exist or the visibility rule (see class Javadoc) hides it.Methods in com.ericbouchut.learndev.course that return types with arguments of type CourseModifier and TypeMethodDescriptionCourseService.catalogue()The public catalogue: published courses only.The instructor's own courses, whatever their status.Methods in com.ericbouchut.learndev.course with parameters of type CourseModifier and TypeMethodDescriptionvoidArchive a DRAFT or PUBLISHED course (v1 has no destructive delete).InstructorCourseService.createLesson(Course course, LessonForm form) Create a DRAFT lesson at the end of the course (position max + 1).voidDrop the student from a course:ENROLLEDorIN_PROGRESSbecomesDROPPEDwith a drop timestamp.voidInstructorCourseService.dropStudent(Course course, User student, User actor, String ipAddress) Remove a student from the course on the instructor's behalf.voidEnroll the student in a published course.EnrollmentService.enrollmentFor(User student, Course course) The enrollment of a student in a course, if any (dropped included).The lessons of the course in reading order, all statuses included.voidInstructorCourseService.moveLessonDown(Course course, Lesson lesson) Swap the lesson with the one after it in reading order (no-op at the bottom).voidInstructorCourseService.moveLessonUp(Course course, Lesson lesson) Swap the lesson with the one before it in reading order (no-op at the top).InstructorCourseService.ownedLesson(Course course, Long lessonId) One lesson of the given course, whatever its status: 404 when the lesson does not exist or belongs to another course.voidPublish a DRAFT course; the first publish stampspublished_at.CourseService.publishedLesson(Course course, Long lessonId) One published lesson of the given course, or 404 when the lesson does not exist, is not published, or belongs to another course.CourseService.publishedLessons(Course course) The lessons of a course a student may read, in reading order.voidRestore an ARCHIVED course to DRAFT ("re-open" in the lifecycle).The roster of a course: every enrollment, dropped ones included.voidInstructorCourseService.update(Course course, CourseForm form) Update the title and description of the instructor's course. -
Uses of Course in com.ericbouchut.learndev.course.entity
Constructors in com.ericbouchut.learndev.course.entity with parameters of type Course -
Uses of Course in com.ericbouchut.learndev.course.repository
Methods in com.ericbouchut.learndev.course.repository that return types with arguments of type CourseModifier and TypeMethodDescriptionCourseRepository.findByInstructor(User instructor) CourseRepository.findByStatus(PublicationStatus status) The public catalogue listsPUBLISHEDcourses only.Methods in com.ericbouchut.learndev.course.repository with parameters of type CourseModifier and TypeMethodDescriptionEnrollmentRepository.findByCourse(Course course) The roster of a course.LessonRepository.findByCourseAndStatusOrderByPositionAsc(Course course, PublicationStatus status) The lessons of a course in one status, in reading order.LessonRepository.findByCourseOrderByPositionAsc(Course course) The lessons of a course in reading order (position ascending).EnrollmentRepository.findByUserAndCourse(User user, Course course) The single enrollment of a student in a course, if any.