Index
All Classes and Interfaces|All Packages|Serialized Form
A
- ADMIN - Enum constant in enum class dev.fernando.user_authentication_api.enums.UserRole
- AuthUserDto - Record Class in dev.fernando.user_authentication_api.dto
-
Data Transfer Object for sending user authentication credentials.
- AuthUserDto(String, String, UserRole) - Constructor for record class dev.fernando.user_authentication_api.dto.AuthUserDto
-
Creates an instance of a
AuthUserDto
record class.
B
- bCryptPasswordEncoder() - Method in class dev.fernando.user_authentication_api.config.SecurityConfig
-
Bean definition for BCryptPasswordEncoder.
- birthdayDate() - Method in record class dev.fernando.user_authentication_api.dto.CreateUserDto
-
Returns the value of the
birthdayDate
record component. - birthdayDate() - Method in record class dev.fernando.user_authentication_api.dto.ViewUserDto
-
Returns the value of the
birthdayDate
record component.
C
- ChangePasswordIncorrectException - Exception Class in dev.fernando.user_authentication_api.exception
-
Exception thrown when the current password provided for changing a user's password is incorrect.
- ChangePasswordIncorrectException() - Constructor for exception class dev.fernando.user_authentication_api.exception.ChangePasswordIncorrectException
- convertToUserEventDto() - Method in class dev.fernando.user_authentication_api.model.User
-
Converts the User entity to a UserEventDto.
- cpf() - Method in record class dev.fernando.user_authentication_api.dto.CreateUserDto
-
Returns the value of the
cpf
record component. - cpf() - Method in record class dev.fernando.user_authentication_api.dto.ViewUserDto
-
Returns the value of the
cpf
record component. - createAccount - Variable in class dev.fernando.user_authentication_api.config.RabbitmqConfig
-
Queue name for account creation.
- CREATEACCOUNT - Enum constant in enum class dev.fernando.user_authentication_api.enums.CreationType
- createCredentials - Variable in class dev.fernando.user_authentication_api.config.RabbitmqConfig
-
Queue name for user credentials creation.
- createUser(CreateUserDto) - Method in class dev.fernando.user_authentication_api.controller.UserController
-
This endpoint allows the creation of a user with a default role, typically used for client accounts.
- CreateUserDto - Record Class in dev.fernando.user_authentication_api.dto
-
Data Transfer Object for creating a new user.
- CreateUserDto(String, String, String, String, String, Date) - Constructor for record class dev.fernando.user_authentication_api.dto.CreateUserDto
-
Creates an instance of a
CreateUserDto
record class. - createUserWithDefaultRole(CreateUserDto) - Method in class dev.fernando.user_authentication_api.service.impl.UserServiceImpl
- createUserWithDefaultRole(CreateUserDto) - Method in interface dev.fernando.user_authentication_api.service.UserService
-
Creates a new user with default USER role about
UserRole
, in other words, a client of user service. - CreationType - Enum Class in dev.fernando.user_authentication_api.enums
-
Enum representing the type of user creation.
- credentialsQueue() - Method in class dev.fernando.user_authentication_api.config.RabbitmqConfig
-
Bean definition for the account creation queue.
D
- dateToEpoch(Date) - Method in record class dev.fernando.user_authentication_api.dto.CreateUserDto
-
Converts a Date object to its epoch time representation in milliseconds for storage in the database.
- deleteUserByEmail(String) - Method in class dev.fernando.user_authentication_api.controller.UserController
-
This endpoint deletes a user by email.
- deleteUserByEmail(String) - Method in class dev.fernando.user_authentication_api.service.impl.UserServiceImpl
- deleteUserByEmail(String) - Method in interface dev.fernando.user_authentication_api.service.UserService
-
Deletes a user by their email.
- deleteUserById(Long) - Method in class dev.fernando.user_authentication_api.controller.UserController
-
This endpoint deletes a user by ID.
- deleteUserById(Long) - Method in class dev.fernando.user_authentication_api.service.impl.UserServiceImpl
- deleteUserById(Long) - Method in interface dev.fernando.user_authentication_api.service.UserService
-
Deletes a user by their ID.
- dev.fernando.user_authentication_api - package dev.fernando.user_authentication_api
- dev.fernando.user_authentication_api.config - package dev.fernando.user_authentication_api.config
- dev.fernando.user_authentication_api.controller - package dev.fernando.user_authentication_api.controller
- dev.fernando.user_authentication_api.dto - package dev.fernando.user_authentication_api.dto
- dev.fernando.user_authentication_api.enums - package dev.fernando.user_authentication_api.enums
- dev.fernando.user_authentication_api.exception - package dev.fernando.user_authentication_api.exception
- dev.fernando.user_authentication_api.model - package dev.fernando.user_authentication_api.model
- dev.fernando.user_authentication_api.publisher - package dev.fernando.user_authentication_api.publisher
- dev.fernando.user_authentication_api.repository - package dev.fernando.user_authentication_api.repository
- dev.fernando.user_authentication_api.service - package dev.fernando.user_authentication_api.service
- dev.fernando.user_authentication_api.service.impl - package dev.fernando.user_authentication_api.service.impl
E
- email() - Method in record class dev.fernando.user_authentication_api.dto.AuthUserDto
-
Returns the value of the
email
record component. - email() - Method in record class dev.fernando.user_authentication_api.dto.CreateUserDto
-
Returns the value of the
email
record component. - email() - Method in record class dev.fernando.user_authentication_api.dto.ViewUserDto
-
Returns the value of the
email
record component. - EMAIL - Enum constant in enum class dev.fernando.user_authentication_api.enums.CreationType
- emailQueue - Variable in class dev.fernando.user_authentication_api.config.RabbitmqConfig
-
Queue name for email sending.
- equals(Object) - Method in record class dev.fernando.user_authentication_api.dto.AuthUserDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.fernando.user_authentication_api.dto.CreateUserDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.fernando.user_authentication_api.dto.UpdateUserDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class dev.fernando.user_authentication_api.dto.ViewUserDto
-
Indicates whether some other object is "equal to" this one.
- exchangeUserEvent - Variable in class dev.fernando.user_authentication_api.config.RabbitmqConfig
-
Exchange name for user events.
F
- fanoutExchangeUser() - Method in class dev.fernando.user_authentication_api.config.RabbitmqConfig
-
Bean definition for the fanout exchange for user events.
- findByEmail(String) - Method in interface dev.fernando.user_authentication_api.repository.UserRepository
- findById(Long) - Method in interface dev.fernando.user_authentication_api.repository.UserRepository
- findUserByEmail(String) - Method in class dev.fernando.user_authentication_api.service.impl.UserServiceImpl
- findUserByEmail(String) - Method in interface dev.fernando.user_authentication_api.service.UserService
-
Finds a user by their email.
- findUserById(Long) - Method in class dev.fernando.user_authentication_api.service.impl.UserServiceImpl
- findUserById(Long) - Method in interface dev.fernando.user_authentication_api.service.UserService
-
Finds a user by their ID.
G
- getAuthorities() - Method in class dev.fernando.user_authentication_api.model.User
- getUserByEmail(String) - Method in class dev.fernando.user_authentication_api.controller.UserController
-
This endpoint allows retrieval of user details using their email address.
- getUserById(Long) - Method in class dev.fernando.user_authentication_api.controller.UserController
-
This endpoint allows retrieval of user details using their ID.
H
- handleChangePasswordIncorrect(ChangePasswordIncorrectException) - Method in class dev.fernando.user_authentication_api.exception.RestExceptionHandler
-
Handles ChangePasswordIncorrectException and returns a 422 UNPROCESSABLE ENTITY response.
- handleInvalidUserCredentials(InvalidUserCredentialsException) - Method in class dev.fernando.user_authentication_api.exception.RestExceptionHandler
-
Handles InvalidUserCredentialsException and returns a 401 UNAUTHORIZED response.
- handleUserAlreadyExist(UserAlreadyExistException) - Method in class dev.fernando.user_authentication_api.exception.RestExceptionHandler
-
Handles UserAlreadyExistException and returns a 422 UNPROCESSABLE ENTITY response.
- handleUserNotFound(UserNotFoundException) - Method in class dev.fernando.user_authentication_api.exception.RestExceptionHandler
-
Handles UserNotFoundException and returns a 404 NOT FOUND response.
- hashCode() - Method in record class dev.fernando.user_authentication_api.dto.AuthUserDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.fernando.user_authentication_api.dto.CreateUserDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.fernando.user_authentication_api.dto.UpdateUserDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class dev.fernando.user_authentication_api.dto.ViewUserDto
-
Returns a hash code value for this object.
I
- id() - Method in record class dev.fernando.user_authentication_api.dto.ViewUserDto
-
Returns the value of the
id
record component. - InvalidUserCredentialsException - Exception Class in dev.fernando.user_authentication_api.exception
-
Exception thrown when the user credentials (email or password) are invalid.
- InvalidUserCredentialsException() - Constructor for exception class dev.fernando.user_authentication_api.exception.InvalidUserCredentialsException
M
- main(String[]) - Static method in class dev.fernando.user_authentication_api.UserAuthenticationApiApplication
- MessageHandler - Class in dev.fernando.user_authentication_api.exception
-
Class representing a message handler for exceptions.
- MessageHandler() - Constructor for class dev.fernando.user_authentication_api.exception.MessageHandler
N
- newPassword() - Method in record class dev.fernando.user_authentication_api.dto.UpdateUserDto
-
Returns the value of the
newPassword
record component.
O
- objectMapper() - Method in class dev.fernando.user_authentication_api.config.RabbitmqConfig
-
Bean definition for the user credentials creation queue.
- oldPassword() - Method in record class dev.fernando.user_authentication_api.dto.UpdateUserDto
-
Returns the value of the
oldPassword
record component. - OpenApiConfig - Class in dev.fernando.user_authentication_api.config
- OpenApiConfig() - Constructor for class dev.fernando.user_authentication_api.config.OpenApiConfig
P
- password() - Method in record class dev.fernando.user_authentication_api.dto.AuthUserDto
-
Returns the value of the
password
record component. - password() - Method in record class dev.fernando.user_authentication_api.dto.CreateUserDto
-
Returns the value of the
password
record component. - phone() - Method in record class dev.fernando.user_authentication_api.dto.CreateUserDto
-
Returns the value of the
phone
record component. - phone() - Method in record class dev.fernando.user_authentication_api.dto.UpdateUserDto
-
Returns the value of the
phone
record component. - phone() - Method in record class dev.fernando.user_authentication_api.dto.ViewUserDto
-
Returns the value of the
phone
record component. - publishAccountCreation(Long) - Method in class dev.fernando.user_authentication_api.publisher.UserPublisher
-
Publishes a message to the account creation in email-sender-microservice with the user ID.
- publishMessageEmail(User) - Method in class dev.fernando.user_authentication_api.publisher.UserPublisher
-
Publishes an email message to the email queue for a newly created user.
- publishUserCredentials(AuthUserDto) - Method in class dev.fernando.user_authentication_api.publisher.UserPublisher
-
Publishes user credentials to the authentication microservice with email and password.
- publishUserEvent(UserEventDto, CreationType) - Method in class dev.fernando.user_authentication_api.publisher.UserPublisher
-
Publishes a message to the account creation in account-microservice.
Q
- queue() - Method in class dev.fernando.user_authentication_api.config.RabbitmqConfig
-
Bean definition for the email queue.
R
- RabbitmqConfig - Class in dev.fernando.user_authentication_api.config
-
Configuration class for RabbitMQ settings.
- RabbitmqConfig() - Constructor for class dev.fernando.user_authentication_api.config.RabbitmqConfig
- RestExceptionHandler - Class in dev.fernando.user_authentication_api.exception
-
Global exception handler for the user request the API.
- RestExceptionHandler() - Constructor for class dev.fernando.user_authentication_api.exception.RestExceptionHandler
S
- SecurityConfig - Class in dev.fernando.user_authentication_api.config
-
Security configuration class for the User Authentication API.
- SecurityConfig() - Constructor for class dev.fernando.user_authentication_api.config.SecurityConfig
- SendEmailDto - Class in dev.fernando.user_authentication_api.dto
-
Data Transfer Object for sending email notifications.
- SendEmailDto() - Constructor for class dev.fernando.user_authentication_api.dto.SendEmailDto
T
- toString() - Method in record class dev.fernando.user_authentication_api.dto.AuthUserDto
-
Returns a string representation of this record class.
- toString() - Method in record class dev.fernando.user_authentication_api.dto.CreateUserDto
-
Returns a string representation of this record class.
- toString() - Method in record class dev.fernando.user_authentication_api.dto.UpdateUserDto
-
Returns a string representation of this record class.
- toString() - Method in record class dev.fernando.user_authentication_api.dto.ViewUserDto
-
Returns a string representation of this record class.
- toUser() - Method in record class dev.fernando.user_authentication_api.dto.CreateUserDto
-
Converts this CreateUserDto to a User model object.
- toViewUserDto() - Method in class dev.fernando.user_authentication_api.model.User
-
Converts the User entity to a ViewUserDto.
U
- updateUser(Long, UpdateUserDto) - Method in class dev.fernando.user_authentication_api.controller.UserController
-
This endpoint allows updating user details by ID.
- updateUser(Long, UpdateUserDto) - Method in class dev.fernando.user_authentication_api.service.impl.UserServiceImpl
- updateUser(Long, UpdateUserDto) - Method in interface dev.fernando.user_authentication_api.service.UserService
-
updates an existing user as long as the current password is confirmed during the update.
- UpdateUserDto - Record Class in dev.fernando.user_authentication_api.dto
-
Data Transfer Object for updating user information.
- UpdateUserDto(String, String, String, String) - Constructor for record class dev.fernando.user_authentication_api.dto.UpdateUserDto
-
Creates an instance of a
UpdateUserDto
record class. - User - Class in dev.fernando.user_authentication_api.model
-
Represents a user in the system.
- User(Long, String, String, String, String, String, Long) - Constructor for class dev.fernando.user_authentication_api.model.User
- User(String, String, String, String) - Constructor for class dev.fernando.user_authentication_api.model.User
- User(String, String, String, String, UserRole) - Constructor for class dev.fernando.user_authentication_api.model.User
- User(String, String, String, String, String, Long) - Constructor for class dev.fernando.user_authentication_api.model.User
- User(String, String, String, String, String, Long, UserRole) - Constructor for class dev.fernando.user_authentication_api.model.User
- USER - Enum constant in enum class dev.fernando.user_authentication_api.enums.UserRole
- UserAlreadyExistException - Exception Class in dev.fernando.user_authentication_api.exception
-
Exception thrown when a user with the specified email already exists.
- UserAlreadyExistException(User) - Constructor for exception class dev.fernando.user_authentication_api.exception.UserAlreadyExistException
- UserAuthenticationApiApplication - Class in dev.fernando.user_authentication_api
- UserAuthenticationApiApplication() - Constructor for class dev.fernando.user_authentication_api.UserAuthenticationApiApplication
- UserController - Class in dev.fernando.user_authentication_api.controller
-
REST controller for managing users.
- UserController(UserService) - Constructor for class dev.fernando.user_authentication_api.controller.UserController
-
Constructs a UserController with the given UserService.
- UserEventDto - Class in dev.fernando.user_authentication_api.dto
-
Data Transfer Object for user event messages.
- UserEventDto() - Constructor for class dev.fernando.user_authentication_api.dto.UserEventDto
- username() - Method in record class dev.fernando.user_authentication_api.dto.CreateUserDto
-
Returns the value of the
username
record component. - username() - Method in record class dev.fernando.user_authentication_api.dto.UpdateUserDto
-
Returns the value of the
username
record component. - username() - Method in record class dev.fernando.user_authentication_api.dto.ViewUserDto
-
Returns the value of the
username
record component. - UserNotFoundException - Exception Class in dev.fernando.user_authentication_api.exception
-
Exception thrown when a user is not found in the system.
- UserNotFoundException() - Constructor for exception class dev.fernando.user_authentication_api.exception.UserNotFoundException
- UserNotFoundException(String) - Constructor for exception class dev.fernando.user_authentication_api.exception.UserNotFoundException
- UserPublisher - Class in dev.fernando.user_authentication_api.publisher
-
Publisher class for sending user-related events to RabbitMQ.
- UserPublisher(RabbitTemplate) - Constructor for class dev.fernando.user_authentication_api.publisher.UserPublisher
- UserRepository - Interface in dev.fernando.user_authentication_api.repository
-
Repository interface for managing User entities.
- userRole() - Method in record class dev.fernando.user_authentication_api.dto.AuthUserDto
-
Returns the value of the
userRole
record component. - userRole() - Method in record class dev.fernando.user_authentication_api.dto.ViewUserDto
-
Returns the value of the
userRole
record component. - UserRole - Enum Class in dev.fernando.user_authentication_api.enums
-
Enum representing the role of a user in the system.
- UserService - Interface in dev.fernando.user_authentication_api.service
-
Service interface for managing user operations.
- UserServiceImpl - Class in dev.fernando.user_authentication_api.service.impl
- UserServiceImpl(UserRepository, PasswordEncoder, UserPublisher) - Constructor for class dev.fernando.user_authentication_api.service.impl.UserServiceImpl
V
- valueOf(String) - Static method in enum class dev.fernando.user_authentication_api.enums.CreationType
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class dev.fernando.user_authentication_api.enums.UserRole
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class dev.fernando.user_authentication_api.enums.CreationType
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class dev.fernando.user_authentication_api.enums.UserRole
-
Returns an array containing the constants of this enum class, in the order they are declared.
- ViewUserDto - Record Class in dev.fernando.user_authentication_api.dto
-
Data Transfer Object for viewing user details.
- ViewUserDto(Long, String, String, String, Date, String, UserRole) - Constructor for record class dev.fernando.user_authentication_api.dto.ViewUserDto
-
Creates an instance of a
ViewUserDto
record class.
All Classes and Interfaces|All Packages|Serialized Form