Uses of Class
com.ericbouchut.learndev.user.entity.User
Packages that use User
Package
Description
-
Uses of User in com.ericbouchut.learndev.admin
Methods in com.ericbouchut.learndev.admin that return UserModifier and TypeMethodDescriptionOne account, or 404.AccountAdminService.createInstructor(RegisterForm form, User actor, String ipAddress) Create anINSTRUCTORaccount (same uniqueness and hashing rules as self-registration, different seeded role).Methods in com.ericbouchut.learndev.admin that return types with arguments of type UserModifier and TypeMethodDescriptionAccountAdminService.allUsers()Every account, for the admin user list.Methods in com.ericbouchut.learndev.admin with parameters of type UserModifier and TypeMethodDescriptionvoidArchive an account: the user can no longer log in.AccountAdminService.createInstructor(RegisterForm form, User actor, String ipAddress) Create anINSTRUCTORaccount (same uniqueness and hashing rules as self-registration, different seeded role).voidAccountAdminService.reactivate(User target, User actor, String ipAddress) Reactivate an archived account: the user can log in again.voidUnlock an account locked by failed logins and reset its counter. -
Uses of User in com.ericbouchut.learndev.audit
Methods in com.ericbouchut.learndev.audit with parameters of type User -
Uses of User in com.ericbouchut.learndev.auth
Methods in com.ericbouchut.learndev.auth that return UserModifier and TypeMethodDescriptionRegistrationService.register(RegisterForm form) Registers a new account with the defaultSTUDENTrole.RegistrationService.register(RegisterForm form, String roleName) Registers a new account with the given seeded role (self-registration usesSTUDENT; the admin area createsINSTRUCTORaccounts).Methods in com.ericbouchut.learndev.auth with parameters of type UserModifier and TypeMethodDescriptionvoidEmailVerificationService.sendVerification(User user, String ipAddress, String verifyUrlBase) Issue a fresh token for the user (invalidating any open one) and email the verification link.static voidClear the lock and the counter (admin unlock, password reset). -
Uses of User in com.ericbouchut.learndev.auth.repository
Methods in com.ericbouchut.learndev.auth.repository with parameters of type UserModifier and TypeMethodDescriptionlongPasswordResetTokenRepository.countByUserAndExpiresAtAfter(User user, OffsetDateTime expiresAfter) Requests made recently by this user.EmailTokenRepository.findByUserAndUsedAtIsNull(User user) The user's tokens that were never consumed (to invalidate on resend).PasswordResetTokenRepository.findByUserAndUsedAtIsNull(User user) Outstanding (not yet consumed) tokens of a user, for invalidation. -
Uses of User in com.ericbouchut.learndev.course
Methods in com.ericbouchut.learndev.course with parameters of type UserModifier and TypeMethodDescriptionvoidArchive a DRAFT or PUBLISHED course (v1 has no destructive delete).voidInstructorCourseService.archiveLesson(Lesson lesson, User actor, String ipAddress) Archive a DRAFT or PUBLISHED lesson.InstructorCourseService.create(User instructor, CourseForm form) Create a new DRAFT course owned by the instructor.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 instructor's own courses, whatever their status.EnrollmentService.myEnrollments(User student) All enrollments of a student, dropped included (the dashboard filters).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.voidPublish a DRAFT course; the first publish stampspublished_at.voidInstructorCourseService.publishLesson(Lesson lesson, User actor, String ipAddress) Publish a DRAFT lesson.voidRestore an ARCHIVED course to DRAFT ("re-open" in the lifecycle).voidInstructorCourseService.restoreLesson(Lesson lesson, User actor, String ipAddress) Restore an ARCHIVED lesson to DRAFT.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. -
Uses of User in com.ericbouchut.learndev.course.entity
Constructors in com.ericbouchut.learndev.course.entity with parameters of type User -
Uses of User in com.ericbouchut.learndev.course.repository
Methods in com.ericbouchut.learndev.course.repository with parameters of type UserModifier and TypeMethodDescriptionCourseRepository.findByInstructor(User instructor) EnrollmentRepository.findByUser(User user) A student's enrollments (their personal course list).EnrollmentRepository.findByUserAndCourse(User user, Course course) The single enrollment of a student in a course, if any. -
Uses of User in com.ericbouchut.learndev.user.repository
Methods in com.ericbouchut.learndev.user.repository that return types with arguments of type UserModifier and TypeMethodDescriptionUserRepository.findByEmail(String email) UserRepository.findByUsername(String username) Loads a user with their roles fetched in the same query.