Uses of Class
com.needleandstitch.pavuk.model.User
Packages that use User
Package
Description
-
Uses of User in com.needleandstitch.pavuk.controller
Methods in com.needleandstitch.pavuk.controller that return types with arguments of type UserModifier and TypeMethodDescriptionUserController.getAllUsers()
Endpoint to retrieve all users.org.springframework.http.ResponseEntity
<User> UserController.getCurrentUser
(jakarta.servlet.http.HttpServletRequest request) Endpoint to retrieve the currently authenticated user based on the JWT token from cookies.org.springframework.http.ResponseEntity
<User> UserController.getUserById
(Long id) Endpoint to retrieve a clothing item by its ID.org.springframework.http.ResponseEntity
<User> Endpoint to authenticate a user and return their information.Methods in com.needleandstitch.pavuk.controller with parameters of type UserModifier and TypeMethodDescriptionorg.springframework.http.ResponseEntity
<Void> UserController.createUser
(User user, jakarta.servlet.http.HttpServletResponse response) Endpoint to register a new user.org.springframework.http.ResponseEntity
<User> Endpoint to authenticate a user and return their information.org.springframework.http.ResponseEntity
<Void> UserController.updateUser
(Long id, User userDetails) Endpoint to update an existing user by its ID. -
Uses of User in com.needleandstitch.pavuk.model
Methods in com.needleandstitch.pavuk.model that return UserModifier and TypeMethodDescriptionCustomer.getUser()
Gets the user associated with this customer.Tailor.getUser()
Gets the associated user for the tailor.Methods in com.needleandstitch.pavuk.model with parameters of type UserModifier and TypeMethodDescriptionvoid
Sets the user associated with this customer.void
Sets the associated user for the tailor.Constructors in com.needleandstitch.pavuk.model with parameters of type User -
Uses of User in com.needleandstitch.pavuk.repository
Subinterfaces with type arguments of type User in com.needleandstitch.pavuk.repositoryModifier and TypeInterfaceDescriptioninterface
Repository interface for managing User entities.Methods in com.needleandstitch.pavuk.repository that return types with arguments of type UserModifier and TypeMethodDescriptionUserRepository.findByEmail
(String email) Finds a user by its email. -
Uses of User in com.needleandstitch.pavuk.security
Methods in com.needleandstitch.pavuk.security with parameters of type UserModifier and TypeMethodDescriptionJwtUtil.generateToken
(User user) Generates a JWT token for a given user. -
Uses of User in com.needleandstitch.pavuk.service
Methods in com.needleandstitch.pavuk.service that return UserModifier and TypeMethodDescriptionUserService.createUser
(String firstName, String lastName, LocalDate dateOfBirth, String phone, String email, Boolean newsletterSubscription, String password, Role role) Creates a new user.UserService.findByEmail
(String email) Finds a user by their email address.Finds a user by their ID.UserService.signInUser
(String email, String password) Authenticates a user by email and password.Methods in com.needleandstitch.pavuk.service that return types with arguments of type User