Uses of Record Class
com.app.controller.dto.ResponseDto
Packages that use ResponseDto
-
Uses of ResponseDto in com.app.controller
Methods in com.app.controller that return ResponseDtoModifier and TypeMethodDescriptionUserController.activatedUser
(UserActivationTokenDto userActivationTokenDto) Activates a user account using an activation token.UserController.changeEmail
(NewEmailDto newEmailDto, String token) Changes the email address of the currently logged-in user.UserController.changePassword
(ChangePasswordDto changePasswordDto, String token) Changes the password of the currently logged-in user.HolidayController.changeStatus
(Long holidayId, Status status) Changes the status of a holiday.HolidayController.createHoliday
(CreateHolidayDto createHolidayDto, String token) Creates a new holiday request.UserController.createUser
(CreateUserDto createUserDto) Creates a new user.UserController.deleteUser
(Long userId, String token) Deletes a user by their ID (admin operation).UserController.deleteUser
(String token) Deletes the currently logged-in user.Logs out the user by invalidating authentication cookies.UserController.getActualLoginRole
(String token) Retrieves the role of the currently logged-in user.UserController.getActualLoginUser
(String token) Retrieves information about the currently logged-in user.HolidayController.getHolidays
(HolidaySpecificationDto holidaySpecificationDto) Retrieves holidays filtered by complex criteria.HolidayController.getHolidays
(String token, LocalDateTime startDate, LocalDateTime endDate) Retrieves holidays filtered by optional start and end dates.Retrieves a user by their ID.UserController.getUsers
(UserSpecificationDto userSpecificationDto) Retrieves users filtered by criteria.Checks if the user has access (token validation).UserController.lostPassword
(EmailDto emailDto) Initiates a lost password process by sending a reset email.UserController.newPassword
(NewPasswordDto newPasswordDto) Sets a new password for the user.UserController.refreshToken
(String token, jakarta.servlet.http.HttpServletResponse response) Refreshes authentication tokens using the refresh token from cookies.UserController.refreshVerificationEmailToken
(EmailDto emailDto) Requests a new verification email token to be sent.UserController.updateUser
(UpdateUserDto updateUserDto) Updates a user with new data. -
Uses of ResponseDto in com.app.controller.exceptionsHandler
Methods in com.app.controller.exceptionsHandler that return ResponseDtoModifier and TypeMethodDescriptionGlobalDatabaseExceptionHandler.dataBaseException
(Exception e) Handles generic database access exceptions not covered by more specific handlers.GlobalDatabaseExceptionHandler.entityNotFoundException
(jakarta.persistence.EntityNotFoundException e) Handles the case when a requested entity is not found in the database.Handles any other uncaught exceptions.GlobalSecurityExceptionHandler.handleAccessDenied
(org.springframework.security.access.AccessDeniedException e) Handles access denied exceptions when authenticated users try to access resources without sufficient permissions.GlobalSecurityExceptionHandler.handleAccountStatusExceptions
(org.springframework.security.core.AuthenticationException e) Handles exceptions related to user account status such as disabled, locked, expired accounts, or expired credentials.GlobalSecurityExceptionHandler.handleAuthenticationException
(org.springframework.security.core.AuthenticationException e) Handles general authentication failures such as bad credentials, missing credentials, or authentication service errors.GlobalDatabaseExceptionHandler.handleDataIntegrityViolation
(Exception e) Handles data integrity violations such as unique constraint breaches.GlobalMailSenderExceptionHandler.handleGenericMailException
(org.springframework.mail.MailException e) Handles all other generic MailExceptions not covered by specific handlers.GlobalDatabaseExceptionHandler.handleJpaSystemException
(org.springframework.orm.jpa.JpaSystemException e) Handles exceptions related to JPA system errors.GlobalDatabaseExceptionHandler.handleLockingExceptions
(Exception e) Handles exceptions related to optimistic and pessimistic locking failures, including deadlocks or inability to acquire locks.GlobalMailSenderExceptionHandler.handleMailAuthException
(Exception e) Handles SMTP authentication failures.GlobalMailSenderExceptionHandler.handleMailSendException
(org.springframework.mail.MailSendException e) Handles failures in sending email to one or more recipients.GlobalMailSenderExceptionHandler.handleMailValidationException
(org.springframework.mail.MailPreparationException e) Handles email message preparation or parsing errors, typically due to invalid message format.GlobalDatabaseExceptionHandler.handleResourceAlreadyExistException
(ResourceAlreadyExistException e) Handles the case when a resource that is attempted to be created already exists.GlobalDatabaseExceptionHandler.handleTransactionException
(org.springframework.transaction.TransactionSystemException e) Handles transaction-related exceptions that occur when a transaction fails.GlobalValidExceptionHandler.illegalArgumentException
(Exception e) Handles validation and illegal argument exceptions.GlobalSecurityExceptionHandler.unauthorizedException
(Exception e) Handles invalid or expired JWT token exceptions.