Index

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

A

addBuddy(BuddyConnectionDTO) - Method in class com.paymybuddy.paymybuddy.service.UserService
Adds a new buddy to the user's buddy list.
addBuddy(String, UserDetails, RedirectAttributes) - Method in class com.paymybuddy.paymybuddy.controller.UserController
Adds a buddy to the user's buddy list.
addResourceHandlers(ResourceHandlerRegistry) - Method in class com.paymybuddy.paymybuddy.config.WebConfig
 
addToBalance(BalanceOperationDTO) - Method in class com.paymybuddy.paymybuddy.service.TransactionService
Adds the specified amount to the user's balance.
amount() - Method in record class com.paymybuddy.paymybuddy.dto.BalanceOperationDTO
Returns the value of the amount record component.
amount() - Method in record class com.paymybuddy.paymybuddy.dto.TransactionInListDTO
Returns the value of the amount record component.
amount() - Method in record class com.paymybuddy.paymybuddy.dto.TransactionRequestDTO
Returns the value of the amount record component.
authenticateUser(HttpServletRequest, String, String) - Method in class com.paymybuddy.paymybuddy.service.UserService
Authenticates a user with the provided email and password.
authenticationFailureHandler() - Method in class com.paymybuddy.paymybuddy.config.SecurityConfig
 
authenticationManager(CustomUserDetailsService, PasswordEncoder) - Method in class com.paymybuddy.paymybuddy.config.SecurityConfig
 

B

BalanceOperationDTO - Record Class in com.paymybuddy.paymybuddy.dto
 
BalanceOperationDTO(String, BigDecimal) - Constructor for record class com.paymybuddy.paymybuddy.dto.BalanceOperationDTO
Creates an instance of a BalanceOperationDTO record class.
BalanceService - Class in com.paymybuddy.paymybuddy.service
The `BalanceService` class is responsible for handling balance operations for users.
BalanceService() - Constructor for class com.paymybuddy.paymybuddy.service.BalanceService
 
buddies() - Method in record class com.paymybuddy.paymybuddy.dto.BuddiesDTO
Returns the value of the buddies record component.
buddies() - Method in record class com.paymybuddy.paymybuddy.dto.UserDTO
Returns the value of the buddies record component.
BuddiesDTO - Record Class in com.paymybuddy.paymybuddy.dto
 
BuddiesDTO(Set<BuddyForTransferDTO>) - Constructor for record class com.paymybuddy.paymybuddy.dto.BuddiesDTO
Creates an instance of a BuddiesDTO record class.
BuddyAlreadyAddedException - Exception Class in com.paymybuddy.paymybuddy.exception
 
BuddyAlreadyAddedException(String, String) - Constructor for exception class com.paymybuddy.paymybuddy.exception.BuddyAlreadyAddedException
 
BuddyConnectionDTO - Record Class in com.paymybuddy.paymybuddy.dto
 
BuddyConnectionDTO(String, String) - Constructor for record class com.paymybuddy.paymybuddy.dto.BuddyConnectionDTO
Creates an instance of a BuddyConnectionDTO record class.
buddyEmail() - Method in record class com.paymybuddy.paymybuddy.dto.BuddyConnectionDTO
Returns the value of the buddyEmail record component.
BuddyForTransferDTO - Record Class in com.paymybuddy.paymybuddy.dto
 
BuddyForTransferDTO(int, String, String) - Constructor for record class com.paymybuddy.paymybuddy.dto.BuddyForTransferDTO
Creates an instance of a BuddyForTransferDTO record class.
BuddyNotFoundException - Exception Class in com.paymybuddy.paymybuddy.exception
 
BuddyNotFoundException(String, String) - Constructor for exception class com.paymybuddy.paymybuddy.exception.BuddyNotFoundException
 

C

com.paymybuddy.paymybuddy - package com.paymybuddy.paymybuddy
 
com.paymybuddy.paymybuddy.config - package com.paymybuddy.paymybuddy.config
 
com.paymybuddy.paymybuddy.controller - package com.paymybuddy.paymybuddy.controller
 
com.paymybuddy.paymybuddy.dto - package com.paymybuddy.paymybuddy.dto
 
com.paymybuddy.paymybuddy.exception - package com.paymybuddy.paymybuddy.exception
 
com.paymybuddy.paymybuddy.model - package com.paymybuddy.paymybuddy.model
 
com.paymybuddy.paymybuddy.repository - package com.paymybuddy.paymybuddy.repository
 
com.paymybuddy.paymybuddy.service - package com.paymybuddy.paymybuddy.service
 
createTransaction(TransactionRequestDTO) - Method in class com.paymybuddy.paymybuddy.service.TransactionService
Creates a new transaction based on the information provided in the TransactionRequestDTO.
createUser(RegisterUserDTO) - Method in class com.paymybuddy.paymybuddy.service.UserService
Creates a new user based on the provided registration data.
CustomUserDetailsService - Class in com.paymybuddy.paymybuddy.service
Loads the user details by email for authentication.
CustomUserDetailsService() - Constructor for class com.paymybuddy.paymybuddy.service.CustomUserDetailsService
 

D

dateCreated() - Method in record class com.paymybuddy.paymybuddy.dto.TransactionInListDTO
Returns the value of the dateCreated record component.
deposit(BalanceOperationDTO) - Method in class com.paymybuddy.paymybuddy.service.UserService
Processes a deposit operation by updating the user's balance.
deposit(BalanceOperationDTO, UserDetails, RedirectAttributes) - Method in class com.paymybuddy.paymybuddy.controller.UserController
Handles the deposit form submission.
description() - Method in record class com.paymybuddy.paymybuddy.dto.TransactionInListDTO
Returns the value of the description record component.
description() - Method in record class com.paymybuddy.paymybuddy.dto.TransactionRequestDTO
Returns the value of the description record component.

E

editProfile(Model, UserDetails) - Method in class com.paymybuddy.paymybuddy.controller.UserController
Displays the profile edit form where the user can update their information.
email() - Method in record class com.paymybuddy.paymybuddy.dto.BuddyForTransferDTO
Returns the value of the email record component.
email() - Method in record class com.paymybuddy.paymybuddy.dto.UserDTO
Returns the value of the email record component.
email() - Method in record class com.paymybuddy.paymybuddy.dto.UserResponseDTO
Returns the value of the email record component.
EmailAlreadyUsedException - Exception Class in com.paymybuddy.paymybuddy.exception
 
EmailAlreadyUsedException(String) - Constructor for exception class com.paymybuddy.paymybuddy.exception.EmailAlreadyUsedException
 
equals(Object) - Method in record class com.paymybuddy.paymybuddy.dto.BalanceOperationDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.paymybuddy.paymybuddy.dto.BuddiesDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.paymybuddy.paymybuddy.dto.BuddyConnectionDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.paymybuddy.paymybuddy.dto.BuddyForTransferDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.paymybuddy.paymybuddy.dto.TransactionInListDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.paymybuddy.paymybuddy.dto.TransactionListDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.paymybuddy.paymybuddy.dto.TransactionRequestDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.paymybuddy.paymybuddy.dto.UserDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.paymybuddy.paymybuddy.dto.UserResponseDTO
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in class com.paymybuddy.paymybuddy.model.User
 
ErrorMessage - Class in com.paymybuddy.paymybuddy.exception
 
ErrorMessage() - Constructor for class com.paymybuddy.paymybuddy.exception.ErrorMessage
 
existsByEmail(String) - Method in interface com.paymybuddy.paymybuddy.repository.UserRepository
 
existsByEmail(String) - Method in class com.paymybuddy.paymybuddy.service.UserService
Checks if an email already exists in the database.
existsByUsername(String) - Method in interface com.paymybuddy.paymybuddy.repository.UserRepository
 
existsByUsername(String) - Method in class com.paymybuddy.paymybuddy.service.UserService
Checks if a username already exists in the database.

F

findByEmail(String) - Method in interface com.paymybuddy.paymybuddy.repository.UserRepository
 
findBySenderIdOrReceiverIdOrderByDateCreatedDesc(int, int, Pageable) - Method in interface com.paymybuddy.paymybuddy.repository.TransactionRepository
 
findByUsername(String) - Method in interface com.paymybuddy.paymybuddy.repository.UserRepository
 
findTopByOrderByDateCreatedDesc() - Method in interface com.paymybuddy.paymybuddy.repository.TransactionRepository
 

G

getBuddies(int) - Method in class com.paymybuddy.paymybuddy.service.UserService
Retrieves the list of buddies for a user, based on the user's ID.
getById(int) - Method in interface com.paymybuddy.paymybuddy.repository.UserRepository
 
getProfile(Model, UserDetails) - Method in class com.paymybuddy.paymybuddy.controller.UserController
Displays the user's profile information.
getTransactionsPaginated(int, int, int) - Method in class com.paymybuddy.paymybuddy.service.UserService
Retrieves a paginated list of transactions for a user by their user ID.
getTransactionsPaginated(User, int, int) - Method in class com.paymybuddy.paymybuddy.service.UserService
Retrieves a paginated list of transactions for a user.
getUserByEmail(String) - Method in class com.paymybuddy.paymybuddy.service.UserService
Retrieves a user by their email.
getUserById(int) - Method in class com.paymybuddy.paymybuddy.service.UserService
Retrieves a user by their ID.
GlobalExceptionHandler - Class in com.paymybuddy.paymybuddy.exception
 
GlobalExceptionHandler() - Constructor for class com.paymybuddy.paymybuddy.exception.GlobalExceptionHandler
 

H

handleBuddyAlreadyAddedException(BuddyAlreadyAddedException, RedirectAttributes) - Method in class com.paymybuddy.paymybuddy.exception.GlobalExceptionHandler
 
handleBuddyNotFoundException(BuddyNotFoundException, RedirectAttributes) - Method in class com.paymybuddy.paymybuddy.exception.GlobalExceptionHandler
 
handleEmailAlreadyUsedException(EmailAlreadyUsedException, RedirectAttributes, HttpServletRequest) - Method in class com.paymybuddy.paymybuddy.exception.GlobalExceptionHandler
 
handleNotEnoughMoneyException(NotEnoughMoneyException, RedirectAttributes) - Method in class com.paymybuddy.paymybuddy.exception.GlobalExceptionHandler
 
handleSelfAddException(SelfAddException, RedirectAttributes) - Method in class com.paymybuddy.paymybuddy.exception.GlobalExceptionHandler
 
handleSelfSendException(NegativeTransactionException, RedirectAttributes) - Method in class com.paymybuddy.paymybuddy.exception.GlobalExceptionHandler
 
handleSelfSendException(SelfSendException, RedirectAttributes) - Method in class com.paymybuddy.paymybuddy.exception.GlobalExceptionHandler
 
handleTransfer(String, BigDecimal, String, Model, RedirectAttributes, UserDetails) - Method in class com.paymybuddy.paymybuddy.controller.UserController
Handles the transfer of funds between users.
handleUsernameAlreadyTakenException(UsernameAlreadyTakenException, RedirectAttributes, HttpServletRequest) - Method in class com.paymybuddy.paymybuddy.exception.GlobalExceptionHandler
 
hashCode() - Method in record class com.paymybuddy.paymybuddy.dto.BalanceOperationDTO
Returns a hash code value for this object.
hashCode() - Method in record class com.paymybuddy.paymybuddy.dto.BuddiesDTO
Returns a hash code value for this object.
hashCode() - Method in record class com.paymybuddy.paymybuddy.dto.BuddyConnectionDTO
Returns a hash code value for this object.
hashCode() - Method in record class com.paymybuddy.paymybuddy.dto.BuddyForTransferDTO
Returns a hash code value for this object.
hashCode() - Method in record class com.paymybuddy.paymybuddy.dto.TransactionInListDTO
Returns a hash code value for this object.
hashCode() - Method in record class com.paymybuddy.paymybuddy.dto.TransactionListDTO
Returns a hash code value for this object.
hashCode() - Method in record class com.paymybuddy.paymybuddy.dto.TransactionRequestDTO
Returns a hash code value for this object.
hashCode() - Method in record class com.paymybuddy.paymybuddy.dto.UserDTO
Returns a hash code value for this object.
hashCode() - Method in record class com.paymybuddy.paymybuddy.dto.UserResponseDTO
Returns a hash code value for this object.
hashCode() - Method in class com.paymybuddy.paymybuddy.model.User
 

I

id() - Method in record class com.paymybuddy.paymybuddy.dto.BuddyForTransferDTO
Returns the value of the id record component.
id() - Method in record class com.paymybuddy.paymybuddy.dto.UserResponseDTO
Returns the value of the id record component.

L

loadUserByUsername(String) - Method in class com.paymybuddy.paymybuddy.service.CustomUserDetailsService
 
logFilter() - Method in class com.paymybuddy.paymybuddy.config.RequestLoggingFilterConfig
 
LoginController - Class in com.paymybuddy.paymybuddy.controller
Controller for handling user login processes, including displaying the login form and processing the login authentication.
LoginController() - Constructor for class com.paymybuddy.paymybuddy.controller.LoginController
 

M

main(String[]) - Static method in class com.paymybuddy.paymybuddy.PaymybuddyApplication
 

N

NegativeTransactionException - Exception Class in com.paymybuddy.paymybuddy.exception
 
NegativeTransactionException(String) - Constructor for exception class com.paymybuddy.paymybuddy.exception.NegativeTransactionException
 
NotEnoughMoneyException - Exception Class in com.paymybuddy.paymybuddy.exception
 
NotEnoughMoneyException(String) - Constructor for exception class com.paymybuddy.paymybuddy.exception.NotEnoughMoneyException
 
NotFoundException - Exception Class in com.paymybuddy.paymybuddy.exception
 
NotFoundException(String) - Constructor for exception class com.paymybuddy.paymybuddy.exception.NotFoundException
 

P

passwordEncoder() - Method in class com.paymybuddy.paymybuddy.config.SecurityConfig
 
PaymybuddyApplication - Class in com.paymybuddy.paymybuddy
 
PaymybuddyApplication() - Constructor for class com.paymybuddy.paymybuddy.PaymybuddyApplication
 

R

receiverEmail() - Method in record class com.paymybuddy.paymybuddy.dto.TransactionRequestDTO
Returns the value of the receiverEmail record component.
receiverName() - Method in record class com.paymybuddy.paymybuddy.dto.TransactionInListDTO
Returns the value of the receiverName record component.
registerUser(RegisterUserDTO, BindingResult, Model, RedirectAttributes) - Method in class com.paymybuddy.paymybuddy.controller.RegistrationController
Processes the user registration form submission, validates the data, and creates a new user account.
RegisterUserDTO - Class in com.paymybuddy.paymybuddy.dto
 
RegisterUserDTO() - Constructor for class com.paymybuddy.paymybuddy.dto.RegisterUserDTO
 
RegistrationController - Class in com.paymybuddy.paymybuddy.controller
Controller for handling user registration processes, including displaying the registration form and processing the registration request.
RegistrationController() - Constructor for class com.paymybuddy.paymybuddy.controller.RegistrationController
 
removeBuddy(int, UserDetails) - Method in class com.paymybuddy.paymybuddy.controller.UserController
Removes a buddy from the user's buddy list.
removeBuddy(BuddyConnectionDTO) - Method in class com.paymybuddy.paymybuddy.service.UserService
Removes a buddy from the user's buddy list.
RequestLoggingFilterConfig - Class in com.paymybuddy.paymybuddy.config
 
RequestLoggingFilterConfig() - Constructor for class com.paymybuddy.paymybuddy.config.RequestLoggingFilterConfig
 

S

SecurityConfig - Class in com.paymybuddy.paymybuddy.config
 
SecurityConfig() - Constructor for class com.paymybuddy.paymybuddy.config.SecurityConfig
 
securityFilterChain(HttpSecurity) - Method in class com.paymybuddy.paymybuddy.config.SecurityConfig
 
SelfAddException - Exception Class in com.paymybuddy.paymybuddy.exception
 
SelfAddException(String) - Constructor for exception class com.paymybuddy.paymybuddy.exception.SelfAddException
 
SelfSendException - Exception Class in com.paymybuddy.paymybuddy.exception
 
SelfSendException(String) - Constructor for exception class com.paymybuddy.paymybuddy.exception.SelfSendException
 
senderEmail() - Method in record class com.paymybuddy.paymybuddy.dto.TransactionRequestDTO
Returns the value of the senderEmail record component.
senderName() - Method in record class com.paymybuddy.paymybuddy.dto.TransactionInListDTO
Returns the value of the senderName record component.
showDepositPage(Model) - Method in class com.paymybuddy.paymybuddy.controller.UserController
Displays the deposit page where users can add money to their account.
showLoginForm(Model, HttpServletRequest) - Method in class com.paymybuddy.paymybuddy.controller.LoginController
Displays the login form.
showRegistrationForm(Model) - Method in class com.paymybuddy.paymybuddy.controller.RegistrationController
Displays the registration form for a new user.
showRelationForm(Model, UserDetails) - Method in class com.paymybuddy.paymybuddy.controller.UserController
Displays the user's buddy list.
showTransferForm(Model, UserDetails, int, int) - Method in class com.paymybuddy.paymybuddy.controller.UserController
Displays the transfer form along with the user's balance and transaction history.
subtractFromBalance(BalanceOperationDTO) - Method in class com.paymybuddy.paymybuddy.service.TransactionService
Subtracts the specified amount from the user's balance.

T

toString() - Method in record class com.paymybuddy.paymybuddy.dto.BalanceOperationDTO
Returns a string representation of this record class.
toString() - Method in record class com.paymybuddy.paymybuddy.dto.BuddiesDTO
Returns a string representation of this record class.
toString() - Method in record class com.paymybuddy.paymybuddy.dto.BuddyConnectionDTO
Returns a string representation of this record class.
toString() - Method in record class com.paymybuddy.paymybuddy.dto.BuddyForTransferDTO
Returns a string representation of this record class.
toString() - Method in record class com.paymybuddy.paymybuddy.dto.TransactionInListDTO
Returns a string representation of this record class.
toString() - Method in record class com.paymybuddy.paymybuddy.dto.TransactionListDTO
Returns a string representation of this record class.
toString() - Method in record class com.paymybuddy.paymybuddy.dto.TransactionRequestDTO
Returns a string representation of this record class.
toString() - Method in record class com.paymybuddy.paymybuddy.dto.UserDTO
Returns a string representation of this record class.
toString() - Method in record class com.paymybuddy.paymybuddy.dto.UserResponseDTO
Returns a string representation of this record class.
toString() - Method in class com.paymybuddy.paymybuddy.model.Transaction
 
Transaction - Class in com.paymybuddy.paymybuddy.model
Represents a financial transaction between two users.
Transaction() - Constructor for class com.paymybuddy.paymybuddy.model.Transaction
 
TransactionInListDTO - Record Class in com.paymybuddy.paymybuddy.dto
 
TransactionInListDTO(LocalDateTime, String, String, BigDecimal, String) - Constructor for record class com.paymybuddy.paymybuddy.dto.TransactionInListDTO
Creates an instance of a TransactionInListDTO record class.
TransactionListDTO - Record Class in com.paymybuddy.paymybuddy.dto
 
TransactionListDTO(List<TransactionInListDTO>) - Constructor for record class com.paymybuddy.paymybuddy.dto.TransactionListDTO
Creates an instance of a TransactionListDTO record class.
TransactionRepository - Interface in com.paymybuddy.paymybuddy.repository
 
TransactionRequestDTO - Record Class in com.paymybuddy.paymybuddy.dto
 
TransactionRequestDTO(String, String, BigDecimal, String) - Constructor for record class com.paymybuddy.paymybuddy.dto.TransactionRequestDTO
Creates an instance of a TransactionRequestDTO record class.
transactions() - Method in record class com.paymybuddy.paymybuddy.dto.TransactionListDTO
Returns the value of the transactions record component.
TransactionService - Class in com.paymybuddy.paymybuddy.service
The `TransactionService` class provides services for creating and managing transactions between users, including validating transaction details, checking balances, and updating user accounts.
TransactionService() - Constructor for class com.paymybuddy.paymybuddy.service.TransactionService
 

U

updateBalance(BalanceOperationDTO, boolean) - Method in class com.paymybuddy.paymybuddy.service.BalanceService
The function `updateBalance` takes a `BalanceOperationDTO` object and a boolean flag to either add or subtract the amount from the user's balance, updating and saving the user's balance accordingly.
updateProfile(UpdateUserDTO, BindingResult, UserDetails, RedirectAttributes) - Method in class com.paymybuddy.paymybuddy.controller.UserController
Handles the profile update submission (e.g., username, email, password).
updateUser(UpdateUserDTO) - Method in class com.paymybuddy.paymybuddy.service.UserService
Updates an existing user's information based on the provided update data.
UpdateUserDTO - Class in com.paymybuddy.paymybuddy.dto
 
UpdateUserDTO() - Constructor for class com.paymybuddy.paymybuddy.dto.UpdateUserDTO
 
User - Class in com.paymybuddy.paymybuddy.model
Represents a user in the system.
User() - Constructor for class com.paymybuddy.paymybuddy.model.User
 
UserController - Class in com.paymybuddy.paymybuddy.controller
Controller for managing user-related actions such as deposits, profile updates, transferring money, and managing buddy relationships.
UserController() - Constructor for class com.paymybuddy.paymybuddy.controller.UserController
 
UserDTO - Record Class in com.paymybuddy.paymybuddy.dto
 
UserDTO(String, String, Set<User>) - Constructor for record class com.paymybuddy.paymybuddy.dto.UserDTO
Creates an instance of a UserDTO record class.
userEmail() - Method in record class com.paymybuddy.paymybuddy.dto.BalanceOperationDTO
Returns the value of the userEmail record component.
userEmail() - Method in record class com.paymybuddy.paymybuddy.dto.BuddyConnectionDTO
Returns the value of the userEmail record component.
username() - Method in record class com.paymybuddy.paymybuddy.dto.BuddyForTransferDTO
Returns the value of the username record component.
userName() - Method in record class com.paymybuddy.paymybuddy.dto.UserDTO
Returns the value of the userName record component.
userName() - Method in record class com.paymybuddy.paymybuddy.dto.UserResponseDTO
Returns the value of the userName record component.
UsernameAlreadyTakenException - Exception Class in com.paymybuddy.paymybuddy.exception
 
UsernameAlreadyTakenException(String) - Constructor for exception class com.paymybuddy.paymybuddy.exception.UsernameAlreadyTakenException
 
UserRepository - Interface in com.paymybuddy.paymybuddy.repository
 
UserResponseDTO - Record Class in com.paymybuddy.paymybuddy.dto
 
UserResponseDTO(int, String, String) - Constructor for record class com.paymybuddy.paymybuddy.dto.UserResponseDTO
Creates an instance of a UserResponseDTO record class.
UserService - Class in com.paymybuddy.paymybuddy.service
Service class responsible for managing user-related operations such as user creation, update, authentication, buddy management, and transaction handling.
UserService() - Constructor for class com.paymybuddy.paymybuddy.service.UserService
 

V

validateEnoughMoney(BalanceOperationDTO) - Method in class com.paymybuddy.paymybuddy.service.TransactionService
Validates whether the user has enough money for a transaction.
validateNotSelfSend(TransactionRequestDTO) - Method in class com.paymybuddy.paymybuddy.service.TransactionService
Validates that the sender is not trying to send money to himself.
validatePositiveTransaction(TransactionRequestDTO) - Method in class com.paymybuddy.paymybuddy.service.TransactionService
Validates that the transaction amount is positive (greater than zero).

W

WebConfig - Class in com.paymybuddy.paymybuddy.config
 
WebConfig() - Constructor for class com.paymybuddy.paymybuddy.config.WebConfig
 
A B C D E F G H I L M N P R S T U V W 
All Classes and Interfaces|All Packages|Serialized Form