Index

A C D E F G H I L M N O P R S T U V Z 
All Classes and Interfaces|All Packages|Serialized Form

A

address() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.UpdateUserDTO
Returns the value of the address record component.
address() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.UsersRequestDTO
Returns the value of the address record component.
address() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.UsersResponseDTO
Returns the value of the address record component.
Address - Class in com.fiap.tech_challenge.parte1.ms_users.entities
Represents a physical address associated with a user.
Address() - Constructor for class com.fiap.tech_challenge.parte1.ms_users.entities.Address
Default constructor for Address.
AddressesRepository - Interface in com.fiap.tech_challenge.parte1.ms_users.repositories
Repository interface responsible for CRUD operations on Address entities.
AddressesRepositoryImpl - Class in com.fiap.tech_challenge.parte1.ms_users.repositories
Implementation of the AddressesRepository interface using JdbcClient to perform database operations.
AddressesRepositoryImpl(JdbcClient) - Constructor for class com.fiap.tech_challenge.parte1.ms_users.repositories.AddressesRepositoryImpl
Constructs an AddressesRepositoryImpl with the given JdbcClient.
AddressesService - Class in com.fiap.tech_challenge.parte1.ms_users.services
Service responsible for managing user addresses, including retrieval, saving, updating, and grouping addresses by user.
AddressesService(AddressesRepository) - Constructor for class com.fiap.tech_challenge.parte1.ms_users.services.AddressesService
Constructs the AddressesService with the given repository.
AddressMapper - Class in com.fiap.tech_challenge.parte1.ms_users.mappers
Mapper component responsible for converting Address entities to AddressResponseDTO data transfer objects.
AddressMapper() - Constructor for class com.fiap.tech_challenge.parte1.ms_users.mappers.AddressMapper
 
AddressRequestDTO - Record Class in com.fiap.tech_challenge.parte1.ms_users.dtos
Data Transfer Object for address requests.
AddressRequestDTO(String, String, Integer, String, String, String, String) - Constructor for record class com.fiap.tech_challenge.parte1.ms_users.dtos.AddressRequestDTO
Creates an instance of a AddressRequestDTO record class.
AddressResponseDTO - Record Class in com.fiap.tech_challenge.parte1.ms_users.dtos
Data Transfer Object for address responses.
AddressResponseDTO(UUID, String, String, Integer, String, String, String, String, String) - Constructor for record class com.fiap.tech_challenge.parte1.ms_users.dtos.AddressResponseDTO
Creates an instance of a AddressResponseDTO record class.
AuthenticationDataDTO - Record Class in com.fiap.tech_challenge.parte1.ms_users.dtos
Data Transfer Object for authentication requests.
AuthenticationDataDTO(String, String) - Constructor for record class com.fiap.tech_challenge.parte1.ms_users.dtos.AuthenticationDataDTO
Creates an instance of a AuthenticationDataDTO record class.
authenticationManager(AuthenticationConfiguration) - Method in class com.fiap.tech_challenge.parte1.ms_users.infra.security.SecurityConfigurations
Provides the AuthenticationManager bean configured by Spring Security.
AuthenticationService - Class in com.fiap.tech_challenge.parte1.ms_users.services
Service that implements Spring Security's UserDetailsService to load user-specific data.
AuthenticationService(UserRepository) - Constructor for class com.fiap.tech_challenge.parte1.ms_users.services.AuthenticationService
Constructs an AuthenticationService with the given UserRepository.

C

changePassword(UUID, ChangePasswordRequestDTO) - Method in class com.fiap.tech_challenge.parte1.ms_users.controllers.UsersController
Changes the password of a user.
changePassword(UUID, ChangePasswordRequestDTO) - Method in class com.fiap.tech_challenge.parte1.ms_users.services.UsersService
Changes the password of a user after validating the old password.
changePassword(UUID, String) - Method in interface com.fiap.tech_challenge.parte1.ms_users.repositories.UserRepository
Changes the password for the specified user.
changePassword(UUID, String) - Method in class com.fiap.tech_challenge.parte1.ms_users.repositories.UserRepositoryImpl
Changes the password of the specified user and updates the last modified date.
ChangePasswordRequestDTO - Record Class in com.fiap.tech_challenge.parte1.ms_users.dtos
Data Transfer Object for password change requests.
ChangePasswordRequestDTO(String, String) - Constructor for record class com.fiap.tech_challenge.parte1.ms_users.dtos.ChangePasswordRequestDTO
Creates an instance of a ChangePasswordRequestDTO record class.
city() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.AddressRequestDTO
Returns the value of the city record component.
city() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.AddressResponseDTO
Returns the value of the city record component.
CLIENT - Enum constant in enum class com.fiap.tech_challenge.parte1.ms_users.entities.Role
Represents a client role with standard user permissions.
com.fiap.tech_challenge.parte1.ms_users - package com.fiap.tech_challenge.parte1.ms_users
 
com.fiap.tech_challenge.parte1.ms_users.controllers - package com.fiap.tech_challenge.parte1.ms_users.controllers
 
com.fiap.tech_challenge.parte1.ms_users.dtos - package com.fiap.tech_challenge.parte1.ms_users.dtos
 
com.fiap.tech_challenge.parte1.ms_users.entities - package com.fiap.tech_challenge.parte1.ms_users.entities
 
com.fiap.tech_challenge.parte1.ms_users.exceptions - package com.fiap.tech_challenge.parte1.ms_users.exceptions
 
com.fiap.tech_challenge.parte1.ms_users.infra.security - package com.fiap.tech_challenge.parte1.ms_users.infra.security
 
com.fiap.tech_challenge.parte1.ms_users.mappers - package com.fiap.tech_challenge.parte1.ms_users.mappers
 
com.fiap.tech_challenge.parte1.ms_users.repositories - package com.fiap.tech_challenge.parte1.ms_users.repositories
 
com.fiap.tech_challenge.parte1.ms_users.services - package com.fiap.tech_challenge.parte1.ms_users.services
 
com.fiap.tech_challenge.parte1.ms_users.services.validation - package com.fiap.tech_challenge.parte1.ms_users.services.validation
 
com.fiap.tech_challenge.parte1.ms_users.validators - package com.fiap.tech_challenge.parte1.ms_users.validators
 
complement() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.AddressRequestDTO
Returns the value of the complement record component.
complement() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.AddressResponseDTO
Returns the value of the complement record component.
create(UsersRequestDTO) - Method in class com.fiap.tech_challenge.parte1.ms_users.controllers.UsersController
Creates a new user.
createUser(UsersRequestDTO) - Method in class com.fiap.tech_challenge.parte1.ms_users.services.UsersService
Creates a new user and saves their associated addresses.
CreateUserDTO - Record Class in com.fiap.tech_challenge.parte1.ms_users.dtos
Data Transfer Object used as response after a user creation.
CreateUserDTO(UsersResponseDTO, String) - Constructor for record class com.fiap.tech_challenge.parte1.ms_users.dtos.CreateUserDTO
Creates an instance of a CreateUserDTO record class.

D

deactivate(UUID) - Method in interface com.fiap.tech_challenge.parte1.ms_users.repositories.UserRepository
Deactivates the user account identified by the given UUID.
deactivate(UUID) - Method in class com.fiap.tech_challenge.parte1.ms_users.repositories.UserRepositoryImpl
Deactivates a user account by setting the active flag to false and updating the last modified date.
deactivateUser(UUID) - Method in class com.fiap.tech_challenge.parte1.ms_users.services.UsersService
Deactivates a user by ID.
deleteByUserId(UUID) - Method in interface com.fiap.tech_challenge.parte1.ms_users.repositories.AddressesRepository
Deletes all addresses associated with a specific user ID.
deleteByUserId(UUID) - Method in class com.fiap.tech_challenge.parte1.ms_users.repositories.AddressesRepositoryImpl
Deletes all addresses associated with the specified user ID.
doFilterInternal(HttpServletRequest, HttpServletResponse, FilterChain) - Method in class com.fiap.tech_challenge.parte1.ms_users.infra.security.SecurityFilter
Filters incoming HTTP requests to authenticate users based on the JWT token provided in the Authorization header.
DuplicatedAddressException - Exception in com.fiap.tech_challenge.parte1.ms_users.exceptions
Exception thrown when an attempt is made to add or register an address that already exists (i.e., a duplicate address) in the system.
DuplicatedAddressException(String) - Constructor for exception com.fiap.tech_challenge.parte1.ms_users.exceptions.DuplicatedAddressException
Constructs a new DuplicatedAddressException with the specified detail message.
DuplicatedAddressValidator - Class in com.fiap.tech_challenge.parte1.ms_users.validators
Validator that checks for duplicate addresses in a user's request.
DuplicatedAddressValidator() - Constructor for class com.fiap.tech_challenge.parte1.ms_users.validators.DuplicatedAddressValidator
 

E

email() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.UpdateUserDTO
Returns the value of the email record component.
email() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.UsersRequestDTO
Returns the value of the email record component.
email() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.UsersResponseDTO
Returns the value of the email record component.
EmailAlreadyExistsException - Exception in com.fiap.tech_challenge.parte1.ms_users.exceptions
Exception thrown when an attempt is made to register or update a user with an email that is already in use by another user.
EmailAlreadyExistsException(String) - Constructor for exception com.fiap.tech_challenge.parte1.ms_users.exceptions.EmailAlreadyExistsException
Constructs a new EmailAlreadyExistsException with the specified detail message.
emailAlreadyExistsForDifferentUsers(String, UUID) - Method in interface com.fiap.tech_challenge.parte1.ms_users.repositories.UserRepository
Checks if an email is already associated with a different user than the one specified.
emailAlreadyExistsForDifferentUsers(String, UUID) - Method in class com.fiap.tech_challenge.parte1.ms_users.repositories.UserRepositoryImpl
Checks if an email already exists in the database for a different user than the one specified.
EmailValidator - Class in com.fiap.tech_challenge.parte1.ms_users.validators
Validator that checks if a given email address is already registered in the system.
EmailValidator(UserRepository) - Constructor for class com.fiap.tech_challenge.parte1.ms_users.validators.EmailValidator
Constructs an EmailValidator with the specified UserRepository.
equals(Object) - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.AddressRequestDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.AddressResponseDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.AuthenticationDataDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.ChangePasswordRequestDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.CreateUserDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.TokenJWTInfoDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.UpdateUserDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.UsersRequestDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.UsersResponseDTO
Indicates whether some other object is "equal to" this one.
executeLogin(AuthenticationDataDTO) - Method in class com.fiap.tech_challenge.parte1.ms_users.controllers.UsersController
Authenticates a user and returns a JWT token if successful.
existsByEmail(String) - Method in interface com.fiap.tech_challenge.parte1.ms_users.repositories.UserRepository
Checks if a user exists with the given email.
existsByEmail(String) - Method in class com.fiap.tech_challenge.parte1.ms_users.repositories.UserRepositoryImpl
Checks if any user exists with the specified email.
existsByLogin(String) - Method in interface com.fiap.tech_challenge.parte1.ms_users.repositories.UserRepository
Checks if a user exists with the given login.
existsByLogin(String) - Method in class com.fiap.tech_challenge.parte1.ms_users.repositories.UserRepositoryImpl
Checks if any user exists with the specified login.
extractUserLoginFromToken(String) - Method in class com.fiap.tech_challenge.parte1.ms_users.services.TokenService
Extracts the user login (subject) from a given JWT token.

F

findAll(int, int) - Method in interface com.fiap.tech_challenge.parte1.ms_users.repositories.UserRepository
Retrieves a paginated list of users.
findAll(int, int) - Method in class com.fiap.tech_challenge.parte1.ms_users.repositories.UserRepositoryImpl
Retrieves a paginated list of users from the database.
findAllByUserId(UUID) - Method in interface com.fiap.tech_challenge.parte1.ms_users.repositories.AddressesRepository
Retrieves all addresses associated with a specific user ID.
findAllByUserId(UUID) - Method in class com.fiap.tech_challenge.parte1.ms_users.repositories.AddressesRepositoryImpl
Retrieves all addresses associated with the specified user ID.
findAllByUserId(UUID) - Method in class com.fiap.tech_challenge.parte1.ms_users.services.AddressesService
Retrieves all addresses associated with a specific user by their UUID.
findAllByUserIds(Set<UUID>) - Method in interface com.fiap.tech_challenge.parte1.ms_users.repositories.AddressesRepository
Retrieves all addresses associated with a set of user IDs.
findAllByUserIds(Set<UUID>) - Method in class com.fiap.tech_challenge.parte1.ms_users.repositories.AddressesRepositoryImpl
Retrieves all addresses for a given set of user IDs.
findAllByUserIds(Set<UUID>) - Method in class com.fiap.tech_challenge.parte1.ms_users.services.AddressesService
Retrieves addresses for a set of user IDs and groups them by user ID (as String).
findAllUsers(int, int) - Method in class com.fiap.tech_challenge.parte1.ms_users.controllers.UsersController
Retrieves a paginated list of users.
findAllUsers(int, int) - Method in class com.fiap.tech_challenge.parte1.ms_users.services.UsersService
Retrieves a paginated list of all users and their addresses.
findById(UUID) - Method in interface com.fiap.tech_challenge.parte1.ms_users.repositories.UserRepository
Finds a user by their unique identifier.
findById(UUID) - Method in class com.fiap.tech_challenge.parte1.ms_users.repositories.UserRepositoryImpl
Finds a user by their unique identifier.
findById(UUID) - Method in class com.fiap.tech_challenge.parte1.ms_users.services.UsersService
Retrieves a user by ID, including their associated addresses.
findByLogin(String) - Method in interface com.fiap.tech_challenge.parte1.ms_users.repositories.UserRepository
Finds a user by their login (username or email).
findByLogin(String) - Method in class com.fiap.tech_challenge.parte1.ms_users.repositories.UserRepositoryImpl
Finds a user by their login.

G

generateAddressKey(AddressRequestDTO) - Method in class com.fiap.tech_challenge.parte1.ms_users.validators.DuplicatedAddressValidator
Generates a unique key for an address by concatenating its normalized fields.
generateToken(String) - Method in class com.fiap.tech_challenge.parte1.ms_users.services.TokenService
Generates a signed JWT token for the provided user login.
getActive() - Method in class com.fiap.tech_challenge.parte1.ms_users.entities.User
Returns whether the user is currently active.
getAddresses() - Method in class com.fiap.tech_challenge.parte1.ms_users.entities.User
Returns the list of addresses associated with the user.
getAuthorities() - Method in class com.fiap.tech_challenge.parte1.ms_users.entities.User
Returns the authorities granted to the user.
getById(UUID) - Method in class com.fiap.tech_challenge.parte1.ms_users.controllers.UsersController
Retrieves a user by their unique ID.
getCity() - Method in class com.fiap.tech_challenge.parte1.ms_users.entities.Address
Returns the city where this address is located.
getComplement() - Method in class com.fiap.tech_challenge.parte1.ms_users.entities.Address
Returns the complement information of this address (e.g., apartment, suite).
getDateLastChange() - Method in class com.fiap.tech_challenge.parte1.ms_users.entities.User
Returns the date when the user information was last changed.
getEmail() - Method in class com.fiap.tech_challenge.parte1.ms_users.entities.User
Returns the user's email address.
getId() - Method in class com.fiap.tech_challenge.parte1.ms_users.entities.Address
Returns the unique identifier of this address.
getId() - Method in class com.fiap.tech_challenge.parte1.ms_users.entities.User
Returns the unique identifier of the user.
getLogin() - Method in class com.fiap.tech_challenge.parte1.ms_users.entities.User
Returns the login username.
getMainAddress() - Method in class com.fiap.tech_challenge.parte1.ms_users.entities.User
Returns the user's primary address.
getName() - Method in class com.fiap.tech_challenge.parte1.ms_users.entities.User
Returns the full name of the user.
getNeighborhood() - Method in class com.fiap.tech_challenge.parte1.ms_users.entities.Address
Returns the neighborhood of this address.
getNumber() - Method in class com.fiap.tech_challenge.parte1.ms_users.entities.Address
Returns the street number of this address.
getPassword() - Method in class com.fiap.tech_challenge.parte1.ms_users.entities.User
Returns the password used to authenticate the user.
getRole() - Method in class com.fiap.tech_challenge.parte1.ms_users.entities.User
Returns the role assigned to the user.
getState() - Method in class com.fiap.tech_challenge.parte1.ms_users.entities.Address
Returns the state where this address is located.
getStreet() - Method in class com.fiap.tech_challenge.parte1.ms_users.entities.Address
Returns the street name of this address.
getUserId() - Method in class com.fiap.tech_challenge.parte1.ms_users.entities.Address
Returns the identifier of the user associated with this address.
getUsername() - Method in class com.fiap.tech_challenge.parte1.ms_users.entities.User
Returns the username used to authenticate the user.
getZipcode() - Method in class com.fiap.tech_challenge.parte1.ms_users.entities.Address
Returns the postal code (zipcode) of this address.
GlobalExceptionHandler - Class in com.fiap.tech_challenge.parte1.ms_users.exceptions
Global exception handler to centralize and customize exception handling across all controllers in the application.
GlobalExceptionHandler() - Constructor for class com.fiap.tech_challenge.parte1.ms_users.exceptions.GlobalExceptionHandler
 

H

handleDuplicatedAddress(DuplicatedAddressException, HttpServletRequest) - Method in class com.fiap.tech_challenge.parte1.ms_users.exceptions.GlobalExceptionHandler
Handles exceptions when a duplicate address is detected.
handleEmailAlreadyExists(EmailAlreadyExistsException, HttpServletRequest) - Method in class com.fiap.tech_challenge.parte1.ms_users.exceptions.GlobalExceptionHandler
Handles exceptions when an email already exists in the system.
handleInvalidPasswordException(InvalidPasswordException, HttpServletRequest) - Method in class com.fiap.tech_challenge.parte1.ms_users.exceptions.GlobalExceptionHandler
Handles exceptions when a password is invalid according to business rules.
handleLoginAlreadyExists(LoginAlreadyExistsException, HttpServletRequest) - Method in class com.fiap.tech_challenge.parte1.ms_users.exceptions.GlobalExceptionHandler
Handles exceptions when a login already exists in the system.
handleMissingParams(MissingServletRequestParameterException, HttpServletRequest) - Method in class com.fiap.tech_challenge.parte1.ms_users.exceptions.GlobalExceptionHandler
Handles exceptions triggered when a required request parameter is missing.
handleTypeMismatch(HttpServletRequest) - Method in class com.fiap.tech_challenge.parte1.ms_users.exceptions.GlobalExceptionHandler
Handles exceptions caused by invalid type for method arguments, for example when a path variable or request parameter cannot be converted to the expected type.
handleUserNotFoundException(UserNotFoundException, HttpServletRequest) - Method in class com.fiap.tech_challenge.parte1.ms_users.exceptions.GlobalExceptionHandler
Handles exceptions when a user resource is not found.
handleValidationExceptions(MethodArgumentNotValidException, HttpServletRequest) - Method in class com.fiap.tech_challenge.parte1.ms_users.exceptions.GlobalExceptionHandler
Handles exceptions triggered when method arguments fail validation, such as @Valid annotated DTOs with invalid fields.
hashCode() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.AddressRequestDTO
Returns a hash code value for this object.
hashCode() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.AddressResponseDTO
Returns a hash code value for this object.
hashCode() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.AuthenticationDataDTO
Returns a hash code value for this object.
hashCode() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.ChangePasswordRequestDTO
Returns a hash code value for this object.
hashCode() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.CreateUserDTO
Returns a hash code value for this object.
hashCode() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.TokenJWTInfoDTO
Returns a hash code value for this object.
hashCode() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.UpdateUserDTO
Returns a hash code value for this object.
hashCode() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.UsersRequestDTO
Returns a hash code value for this object.
hashCode() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.UsersResponseDTO
Returns a hash code value for this object.

I

id() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.AddressResponseDTO
Returns the value of the id record component.
id() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.UsersResponseDTO
Returns the value of the id record component.
InvalidPasswordException - Exception in com.fiap.tech_challenge.parte1.ms_users.exceptions
Exception thrown when a provided password does not meet the required validation criteria or is considered invalid.
InvalidPasswordException(String) - Constructor for exception com.fiap.tech_challenge.parte1.ms_users.exceptions.InvalidPasswordException
Constructs a new InvalidPasswordException with the specified detail message.
isAccountNonExpired() - Method in class com.fiap.tech_challenge.parte1.ms_users.entities.User
Indicates whether the user's account has expired.
isAccountNonLocked() - Method in class com.fiap.tech_challenge.parte1.ms_users.entities.User
Indicates whether the user is locked or unlocked.
isCredentialsNonExpired() - Method in class com.fiap.tech_challenge.parte1.ms_users.entities.User
Indicates whether the user's credentials (password) has expired.
isEnabled() - Method in class com.fiap.tech_challenge.parte1.ms_users.entities.User
Indicates whether the user is enabled or disabled.

L

loadUserByUsername(String) - Method in class com.fiap.tech_challenge.parte1.ms_users.services.AuthenticationService
Locates the user based on the provided username (login).
login() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.AuthenticationDataDTO
Returns the value of the login record component.
login() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.UpdateUserDTO
Returns the value of the login record component.
login() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.UsersRequestDTO
Returns the value of the login record component.
login() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.UsersResponseDTO
Returns the value of the login record component.
LoginAlreadyExistsException - Exception in com.fiap.tech_challenge.parte1.ms_users.exceptions
Exception thrown when an attempt is made to register or use a login that already exists in the system.
LoginAlreadyExistsException(String) - Constructor for exception com.fiap.tech_challenge.parte1.ms_users.exceptions.LoginAlreadyExistsException
Constructs a new LoginAlreadyExistsException with the specified detail message.
loginAlreadyExistsForDifferentUsers(String, UUID) - Method in interface com.fiap.tech_challenge.parte1.ms_users.repositories.UserRepository
Checks if a login is already associated with a different user than the one specified.
loginAlreadyExistsForDifferentUsers(String, UUID) - Method in class com.fiap.tech_challenge.parte1.ms_users.repositories.UserRepositoryImpl
Checks if a login already exists in the database for a different user than the one specified.
LoginValidator - Class in com.fiap.tech_challenge.parte1.ms_users.validators
Validator that checks if a given login is already registered in the system.
LoginValidator(UserRepository) - Constructor for class com.fiap.tech_challenge.parte1.ms_users.validators.LoginValidator
Constructs a LoginValidator with the given UserRepository.

M

main(String[]) - Static method in class com.fiap.tech_challenge.parte1.ms_users.MsUsersApplication
Application main method used to run the Spring Boot application.
MsUsersApplication - Class in com.fiap.tech_challenge.parte1.ms_users
Main entry point for the Users microservice application.
MsUsersApplication() - Constructor for class com.fiap.tech_challenge.parte1.ms_users.MsUsersApplication
 

N

name() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.UpdateUserDTO
Returns the value of the name record component.
name() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.UsersRequestDTO
Returns the value of the name record component.
name() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.UsersResponseDTO
Returns the value of the name record component.
neighborhood() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.AddressRequestDTO
Returns the value of the neighborhood record component.
neighborhood() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.AddressResponseDTO
Returns the value of the neighborhood record component.
newPassword() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.ChangePasswordRequestDTO
Returns the value of the newPassword record component.
number() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.AddressRequestDTO
Returns the value of the number record component.
number() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.AddressResponseDTO
Returns the value of the number record component.

O

oldPassword() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.ChangePasswordRequestDTO
Returns the value of the oldPassword record component.
OWNER - Enum constant in enum class com.fiap.tech_challenge.parte1.ms_users.entities.Role
Represents an owner role with elevated permissions.

P

password() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.AuthenticationDataDTO
Returns the value of the password record component.
password() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.UsersRequestDTO
Returns the value of the password record component.
passwordEncoder() - Method in class com.fiap.tech_challenge.parte1.ms_users.infra.security.SecurityConfigurations
Provides the password encoder bean using BCrypt hashing algorithm.
PasswordValidationService - Class in com.fiap.tech_challenge.parte1.ms_users.services.validation
Service responsible for validating password change requests.
PasswordValidationService() - Constructor for class com.fiap.tech_challenge.parte1.ms_users.services.validation.PasswordValidationService
 
PasswordValidator - Interface in com.fiap.tech_challenge.parte1.ms_users.validators
Interface for validating password update rules.

R

reactivate(UUID) - Method in interface com.fiap.tech_challenge.parte1.ms_users.repositories.UserRepository
Reactivates the user account identified by the given UUID.
reactivate(UUID) - Method in class com.fiap.tech_challenge.parte1.ms_users.repositories.UserRepositoryImpl
Reactivates a user account by setting the active flag to true and updating the last modified date.
reactivateUser(UUID) - Method in class com.fiap.tech_challenge.parte1.ms_users.services.UsersService
Reactivates a previously deactivated user.
role() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.UsersRequestDTO
Returns the value of the role record component.
role() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.UsersResponseDTO
Returns the value of the role record component.
Role - Enum Class in com.fiap.tech_challenge.parte1.ms_users.entities
Enumeration of user roles in the system.

S

save(List<AddressRequestDTO>, UUID) - Method in class com.fiap.tech_challenge.parte1.ms_users.services.AddressesService
Saves a list of address DTOs for a given user ID.
save(List<AddressRequestDTO>, UUID) - Method in interface com.fiap.tech_challenge.parte1.ms_users.repositories.AddressesRepository
Saves a list of addresses for a specified user ID.
save(List<AddressRequestDTO>, UUID) - Method in class com.fiap.tech_challenge.parte1.ms_users.repositories.AddressesRepositoryImpl
Saves a list of address DTOs for a given user ID.
save(User) - Method in interface com.fiap.tech_challenge.parte1.ms_users.repositories.UserRepository
Saves a new user record to the data store.
save(User) - Method in class com.fiap.tech_challenge.parte1.ms_users.repositories.UserRepositoryImpl
Saves a new user entity in the database.
SecurityConfigurations - Class in com.fiap.tech_challenge.parte1.ms_users.infra.security
Security configuration class for setting up Spring Security in the application.
SecurityConfigurations(SecurityFilter) - Constructor for class com.fiap.tech_challenge.parte1.ms_users.infra.security.SecurityConfigurations
Constructs a new SecurityConfigurations instance with the specified security filter.
SecurityFilter - Class in com.fiap.tech_challenge.parte1.ms_users.infra.security
Security filter that intercepts every HTTP request to authenticate users based on JWT tokens.
SecurityFilter(TokenService, UserRepository) - Constructor for class com.fiap.tech_challenge.parte1.ms_users.infra.security.SecurityFilter
Constructs a SecurityFilter with the required TokenService and UserRepository.
securityFilterChain(HttpSecurity) - Method in class com.fiap.tech_challenge.parte1.ms_users.infra.security.SecurityConfigurations
Configures the security filter chain with HTTP security rules.
setAddress(List<Address>) - Method in class com.fiap.tech_challenge.parte1.ms_users.entities.User
Sets the addresses of the user.
state() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.AddressRequestDTO
Returns the value of the state record component.
state() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.AddressResponseDTO
Returns the value of the state record component.
street() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.AddressRequestDTO
Returns the value of the street record component.
street() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.AddressResponseDTO
Returns the value of the street record component.

T

toAddressRequestDTO(Address) - Method in class com.fiap.tech_challenge.parte1.ms_users.mappers.AddressMapper
Converts a single Address entity to an AddressResponseDTO.
toAddressRequestDTO(List<Address>) - Method in class com.fiap.tech_challenge.parte1.ms_users.mappers.AddressMapper
Converts a list of Address entities to a list of AddressResponseDTOs.
toggleActivation(UUID, boolean) - Method in class com.fiap.tech_challenge.parte1.ms_users.controllers.UsersController
Toggles user activation status.
TokenGenerationException - Exception in com.fiap.tech_challenge.parte1.ms_users.exceptions
Exception thrown when JWT token generation fails.
TokenGenerationException(String, Throwable) - Constructor for exception com.fiap.tech_challenge.parte1.ms_users.exceptions.TokenGenerationException
Constructs a new TokenGenerationException with the specified detail message and cause.
tokenJWT() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.CreateUserDTO
Returns the value of the tokenJWT record component.
tokenJWT() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.TokenJWTInfoDTO
Returns the value of the tokenJWT record component.
TokenJWTInfoDTO - Record Class in com.fiap.tech_challenge.parte1.ms_users.dtos
Data Transfer Object for carrying JWT token information.
TokenJWTInfoDTO(String) - Constructor for record class com.fiap.tech_challenge.parte1.ms_users.dtos.TokenJWTInfoDTO
Creates an instance of a TokenJWTInfoDTO record class.
TokenService - Class in com.fiap.tech_challenge.parte1.ms_users.services
Service responsible for generating and validating JWT tokens.
TokenService() - Constructor for class com.fiap.tech_challenge.parte1.ms_users.services.TokenService
 
TokenValidationException - Exception in com.fiap.tech_challenge.parte1.ms_users.exceptions
Exception thrown when JWT token validation fails.
TokenValidationException(String) - Constructor for exception com.fiap.tech_challenge.parte1.ms_users.exceptions.TokenValidationException
Constructs a new TokenValidationException with the specified detail message.
toResponseDTO(User) - Method in class com.fiap.tech_challenge.parte1.ms_users.mappers.UserMapper
Converts a single User entity to a UsersResponseDTO.
toResponseDTO(List<User>) - Method in class com.fiap.tech_challenge.parte1.ms_users.mappers.UserMapper
Converts a list of User entities to a list of UsersResponseDTOs.
toString() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.AddressRequestDTO
Returns a string representation of this record class.
toString() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.AddressResponseDTO
Returns a string representation of this record class.
toString() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.AuthenticationDataDTO
Returns a string representation of this record class.
toString() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.ChangePasswordRequestDTO
Returns a string representation of this record class.
toString() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.CreateUserDTO
Returns a string representation of this record class.
toString() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.TokenJWTInfoDTO
Returns a string representation of this record class.
toString() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.UpdateUserDTO
Returns a string representation of this record class.
toString() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.UsersRequestDTO
Returns a string representation of this record class.
toString() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.UsersResponseDTO
Returns a string representation of this record class.

U

update(List<AddressRequestDTO>, UUID) - Method in class com.fiap.tech_challenge.parte1.ms_users.services.AddressesService
Updates the addresses of a user by deleting existing addresses and saving the new list.
update(UUID, String, String, String, String) - Method in interface com.fiap.tech_challenge.parte1.ms_users.repositories.UserRepository
Updates an existing user's basic information.
update(UUID, String, String, String, String) - Method in class com.fiap.tech_challenge.parte1.ms_users.repositories.UserRepositoryImpl
Updates the basic information of an existing user, including name, email, login, and password.
updateUser(UUID, UpdateUserDTO) - Method in class com.fiap.tech_challenge.parte1.ms_users.controllers.UsersController
Updates user details.
updateUser(UUID, UpdateUserDTO) - Method in class com.fiap.tech_challenge.parte1.ms_users.services.UsersService
Updates user information including name, email, login, and address.
UpdateUserDTO - Record Class in com.fiap.tech_challenge.parte1.ms_users.dtos
DTO to update user information including addresses.
UpdateUserDTO(String, String, String, List<AddressRequestDTO>) - Constructor for record class com.fiap.tech_challenge.parte1.ms_users.dtos.UpdateUserDTO
Creates an instance of a UpdateUserDTO record class.
user() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.CreateUserDTO
Returns the value of the user record component.
User - Class in com.fiap.tech_challenge.parte1.ms_users.entities
Represents a user entity with authentication and authorization details.
User() - Constructor for class com.fiap.tech_challenge.parte1.ms_users.entities.User
Default constructor for frameworks.
User(String, String, String, String, Role) - Constructor for class com.fiap.tech_challenge.parte1.ms_users.entities.User
Constructs a new User with specified details.
userId() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.AddressResponseDTO
Returns the value of the userId record component.
UserMapper - Class in com.fiap.tech_challenge.parte1.ms_users.mappers
Mapper component responsible for converting User entities to UsersResponseDTO data transfer objects.
UserMapper(AddressMapper) - Constructor for class com.fiap.tech_challenge.parte1.ms_users.mappers.UserMapper
Constructs a UserMapper with the specified AddressMapper.
UserNotFoundException - Exception in com.fiap.tech_challenge.parte1.ms_users.exceptions
Exception thrown when a requested user is not found in the system.
UserNotFoundException(String) - Constructor for exception com.fiap.tech_challenge.parte1.ms_users.exceptions.UserNotFoundException
Constructs a new UserNotFoundException with the specified detail message.
UserRepository - Interface in com.fiap.tech_challenge.parte1.ms_users.repositories
Repository interface for managing User entities.
UserRepositoryImpl - Class in com.fiap.tech_challenge.parte1.ms_users.repositories
Implementation of the UserRepository interface using Spring's JdbcClient for data access.
UserRepositoryImpl(JdbcClient) - Constructor for class com.fiap.tech_challenge.parte1.ms_users.repositories.UserRepositoryImpl
Constructs a new UserRepositoryImpl with the provided JdbcClient.
UsersController - Class in com.fiap.tech_challenge.parte1.ms_users.controllers
REST controller for managing users.
UsersController(UsersService, TokenService, AuthenticationManager) - Constructor for class com.fiap.tech_challenge.parte1.ms_users.controllers.UsersController
 
UsersRequestDTO - Record Class in com.fiap.tech_challenge.parte1.ms_users.dtos
Data Transfer Object for user creation and update requests.
UsersRequestDTO(String, String, String, String, String, List<AddressRequestDTO>) - Constructor for record class com.fiap.tech_challenge.parte1.ms_users.dtos.UsersRequestDTO
Creates an instance of a UsersRequestDTO record class.
UsersResponseDTO - Record Class in com.fiap.tech_challenge.parte1.ms_users.dtos
Data Transfer Object representing a user response.
UsersResponseDTO(UUID, String, String, String, String, List<AddressResponseDTO>) - Constructor for record class com.fiap.tech_challenge.parte1.ms_users.dtos.UsersResponseDTO
Creates an instance of a UsersResponseDTO record class.
UsersService - Class in com.fiap.tech_challenge.parte1.ms_users.services
Service class responsible for managing user operations such as creation, update, retrieval, password changes, and activation status.
UsersService(UserRepository, UserMapper, AddressesService, UsersValidationService, PasswordValidationService, PasswordEncoder) - Constructor for class com.fiap.tech_challenge.parte1.ms_users.services.UsersService
 
UsersValidationService - Class in com.fiap.tech_challenge.parte1.ms_users.services.validation
Service responsible for validating user data during creation or update.
UsersValidationService(List<UserValidator>) - Constructor for class com.fiap.tech_challenge.parte1.ms_users.services.validation.UsersValidationService
Constructs a UsersValidationService with a list of UserValidator instances.
UserValidator - Interface in com.fiap.tech_challenge.parte1.ms_users.validators
Interface for validating user data in a UsersRequestDTO.

V

validate(boolean, boolean) - Method in class com.fiap.tech_challenge.parte1.ms_users.services.validation.PasswordValidationService
Validates the password change criteria.
validate(boolean, boolean) - Method in interface com.fiap.tech_challenge.parte1.ms_users.validators.PasswordValidator
Validates password change conditions.
validate(UsersRequestDTO) - Method in class com.fiap.tech_challenge.parte1.ms_users.validators.DuplicatedAddressValidator
Validates the list of addresses in the given UsersRequestDTO to ensure no duplicates exist.
validate(UsersRequestDTO) - Method in class com.fiap.tech_challenge.parte1.ms_users.validators.EmailValidator
Validates whether the email in the given UsersRequestDTO already exists.
validate(UsersRequestDTO) - Method in class com.fiap.tech_challenge.parte1.ms_users.validators.LoginValidator
Validates whether the login in the given UsersRequestDTO already exists.
validate(UsersRequestDTO) - Method in interface com.fiap.tech_challenge.parte1.ms_users.validators.UserValidator
Validates the provided UsersRequestDTO.
validateAddress(List<AddressRequestDTO>) - Method in class com.fiap.tech_challenge.parte1.ms_users.validators.DuplicatedAddressValidator
Checks a list of addresses for duplicates.
validateAll(UsersRequestDTO) - Method in class com.fiap.tech_challenge.parte1.ms_users.services.validation.UsersValidationService
Runs all registered UserValidators to validate the provided UsersRequestDTO.
valueOf(String) - Static method in enum class com.fiap.tech_challenge.parte1.ms_users.entities.Role
Returns the enum constant of this class with the specified name.
values() - Static method in enum class com.fiap.tech_challenge.parte1.ms_users.entities.Role
Returns an array containing the constants of this enum class, in the order they are declared.

Z

zipcode() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.AddressRequestDTO
Returns the value of the zipcode record component.
zipcode() - Method in record class com.fiap.tech_challenge.parte1.ms_users.dtos.AddressResponseDTO
Returns the value of the zipcode record component.
A C D E F G H I L M N O P R S T U V Z 
All Classes and Interfaces|All Packages|Serialized Form