Uses of Class
com.ericbouchut.learndev.course.entity.Lesson
Packages that use Lesson
-
Uses of Lesson in com.ericbouchut.learndev.course
Methods in com.ericbouchut.learndev.course that return LessonModifier and TypeMethodDescriptionInstructorCourseService.createLesson(Course course, LessonForm form) Create a DRAFT lesson at the end of the course (position max + 1).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.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.Methods in com.ericbouchut.learndev.course that return types with arguments of type LessonModifier and TypeMethodDescriptionThe lessons of the course in reading order, all statuses included.CourseService.publishedLessons(Course course) The lessons of a course a student may read, in reading order.Methods in com.ericbouchut.learndev.course with parameters of type LessonModifier and TypeMethodDescriptionvoidInstructorCourseService.archiveLesson(Lesson lesson, User actor, String ipAddress) Archive a DRAFT or PUBLISHED lesson.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).voidInstructorCourseService.publishLesson(Lesson lesson, User actor, String ipAddress) Publish a DRAFT lesson.voidInstructorCourseService.restoreLesson(Lesson lesson, User actor, String ipAddress) Restore an ARCHIVED lesson to DRAFT.voidInstructorCourseService.updateLesson(Lesson lesson, LessonForm form) Update the title and Markdown content of a lesson. -
Uses of Lesson in com.ericbouchut.learndev.course.repository
Methods in com.ericbouchut.learndev.course.repository that return types with arguments of type LessonModifier and TypeMethodDescriptionLessonRepository.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).