Index
All Classes and Interfaces|All Packages|Serialized Form
A
- ACCEPTED - Enum constant in enum class com.app.model.Status
-
The process or request has been accepted.
- accessToken() - Method in record class com.app.security.dto.TokensDto
-
Returns the value of the
accessToken
record component. - activatedUser(UserActivationTokenDto) - Method in class com.app.controller.UserController
-
Activates a user account using an activation token.
- activateUser(UserActivationTokenDto) - Method in class com.app.service.impl.UserServiceImpl
-
Activates a user based on the provided activation token.
- activateUser(UserActivationTokenDto) - Method in interface com.app.service.UserService
-
Activates a user account using the provided activation token.
- ActualLoginRole - Record Class in com.app.controller.dto.user
-
Data Transfer Object (DTO) representing the current role of the logged-in user in the application.
- ActualLoginRole(Role) - Constructor for record class com.app.controller.dto.user.ActualLoginRole
-
Creates an instance of a
ActualLoginRole
record class. - age() - Method in record class com.app.controller.dto.user.CreateAdminUserDto
-
Returns the value of the
age
record component. - age() - Method in record class com.app.controller.dto.user.CreateUserDto
-
Returns the value of the
age
record component. - age() - Method in record class com.app.controller.dto.user.UserDto
-
Returns the value of the
age
record component. - AppAuthenticationFilter - Class in com.app.security.filter
-
Custom filter to handle user authentication during login.
- AppAuthenticationFilter(TokenService, AuthenticationManager) - Constructor for class com.app.security.filter.AppAuthenticationFilter
- AppAuthorizationFilter - Class in com.app.security.filter
-
Custom filter to handle authorization by parsing the access token from the request.
- AppAuthorizationFilter(AuthenticationManager, TokenService) - Constructor for class com.app.security.filter.AppAuthorizationFilter
- AppConfig - Class in com.app.config
-
Configuration class for application-level beans.
- AppConfig() - Constructor for class com.app.config.AppConfig
- AppUserDetailsServiceImpl - Class in com.app.security.service.impl
-
Implementation of the
UserDetailsService
interface for loading user details. - AppUserDetailsServiceImpl() - Constructor for class com.app.security.service.impl.AppUserDetailsServiceImpl
- AppWebSecurityConfig - Class in com.app.security.config
-
Web security configuration for the application using Spring Security.
- AppWebSecurityConfig() - Constructor for class com.app.security.config.AppWebSecurityConfig
- attemptAuthentication(HttpServletRequest, HttpServletResponse) - Method in class com.app.security.filter.AppAuthenticationFilter
-
Attempts to authenticate the user based on the provided credentials.
- AuthenticationDto - Record Class in com.app.security.dto
-
Data Transfer Object (DTO) used for authentication purposes.
- AuthenticationDto(String, String) - Constructor for record class com.app.security.dto.AuthenticationDto
-
Creates an instance of a
AuthenticationDto
record class. - AuthenticationErrorDto - Record Class in com.app.security.dto
-
Data Transfer Object (DTO) used to represent an authentication error.
- AuthenticationErrorDto(String) - Constructor for record class com.app.security.dto.AuthenticationErrorDto
-
Creates an instance of a
AuthenticationErrorDto
record class.
B
- BaseEntity - Class in com.app.persistence.entity
-
Base entity class to be extended by all JPA entities.
- BaseEntity() - Constructor for class com.app.persistence.entity.BaseEntity
C
- changeEmail(NewEmailDto, String) - Method in class com.app.controller.UserController
-
Changes the email address of the currently logged-in user.
- changeEmail(NewEmailDto, String) - Method in class com.app.service.impl.UserServiceImpl
-
Changes the email address of the authenticated user.
- changeEmail(NewEmailDto, String) - Method in interface com.app.service.UserService
-
Changes the email address of the currently authenticated user.
- changePassword(ChangePasswordDto, String) - Method in class com.app.controller.UserController
-
Changes the password of the currently logged-in user.
- changePassword(ChangePasswordDto, String) - Method in class com.app.service.impl.UserServiceImpl
-
Changes the password for the currently authenticated user.
- changePassword(ChangePasswordDto, String) - Method in interface com.app.service.UserService
-
Changes the password of the currently authenticated user.
- ChangePasswordDto - Record Class in com.app.controller.dto.user
-
Data Transfer Object (DTO) used to request a password change.
- ChangePasswordDto(String, String, String) - Constructor for record class com.app.controller.dto.user.ChangePasswordDto
-
Creates an instance of a
ChangePasswordDto
record class. - ChangePasswordDtoValidator - Class in com.app.validate
- ChangePasswordDtoValidator(List<String>, int) - Constructor for class com.app.validate.ChangePasswordDtoValidator
-
Constructs a ChangePasswordDtoValidator with password validation rules.
- changeStatus(Long, Status) - Method in class com.app.controller.HolidayController
-
Changes the status of a holiday.
- changeStatus(Long, Status) - Method in interface com.app.service.HolidayService
-
Changes the status of an existing holiday request.
- changeStatus(Long, Status) - Method in class com.app.service.impl.HolidayServiceImpl
-
Changes the status of an existing holiday request.
- com.app - package com.app
- com.app.config - package com.app.config
- com.app.controller - package com.app.controller
- com.app.controller.dto - package com.app.controller.dto
- com.app.controller.dto.holiday - package com.app.controller.dto.holiday
- com.app.controller.dto.user - package com.app.controller.dto.user
- com.app.controller.exceptionsHandler - package com.app.controller.exceptionsHandler
- com.app.exception - package com.app.exception
- com.app.listener - package com.app.listener
- com.app.model - package com.app.model
- com.app.persistence.entity - package com.app.persistence.entity
- com.app.persistence.Repository - package com.app.persistence.Repository
- com.app.persistence.specification - package com.app.persistence.specification
- com.app.persistence.specification.impl - package com.app.persistence.specification.impl
- com.app.persistence.specification.model - package com.app.persistence.specification.model
- com.app.security.config - package com.app.security.config
- com.app.security.dto - package com.app.security.dto
- com.app.security.filter - package com.app.security.filter
- com.app.security.service - package com.app.security.service
- com.app.security.service.impl - package com.app.security.service.impl
- com.app.service - package com.app.service
- com.app.service.impl - package com.app.service.impl
- com.app.validate - package com.app.validate
- configure(HttpSecurity, SecretKey) - Method in class com.app.security.config.AppWebSecurityConfig
-
Configures the main security filter chain.
- confirmEmail() - Method in record class com.app.controller.dto.user.NewEmailDto
-
Returns the value of the
confirmEmail
record component. - confirmPassword() - Method in record class com.app.controller.dto.user.ChangePasswordDto
-
Returns the value of the
confirmPassword
record component. - confirmPassword() - Method in record class com.app.controller.dto.user.NewPasswordDto
-
Returns the value of the
confirmPassword
record component. - CreateAdminUserDto - Record Class in com.app.controller.dto.user
-
Data Transfer Object (DTO) for creating an admin user.
- CreateAdminUserDto(String, String, String, String, String, int) - Constructor for record class com.app.controller.dto.user.CreateAdminUserDto
-
Creates an instance of a
CreateAdminUserDto
record class. - createHoliday(CreateHolidayDto, String) - Method in class com.app.controller.HolidayController
-
Creates a new holiday request.
- createHoliday(CreateHolidayDto, String) - Method in interface com.app.service.HolidayService
-
Creates a new holiday request.
- createHoliday(CreateHolidayDto, String) - Method in class com.app.service.impl.HolidayServiceImpl
-
Creates a new holiday request for a user.
- CreateHolidayDto - Record Class in com.app.controller.dto.holiday
-
Data Transfer Object (DTO) used to create a new holiday request.
- CreateHolidayDto(LocalDateTime, LocalDateTime) - Constructor for record class com.app.controller.dto.holiday.CreateHolidayDto
-
Creates an instance of a
CreateHolidayDto
record class. - CreateHolidayDtoValidator - Class in com.app.validate
- CreateHolidayDtoValidator() - Constructor for class com.app.validate.CreateHolidayDtoValidator
- createUser(CreateUserDto) - Method in class com.app.controller.UserController
-
Creates a new user.
- createUser(CreateUserDto) - Method in class com.app.service.impl.UserServiceImpl
-
Creates a new user with given data.
- createUser(CreateUserDto) - Method in interface com.app.service.UserService
-
Creates a new user in the system.
- CreateUserDto - Record Class in com.app.controller.dto.user
-
Data Transfer Object (DTO) used to create a new regular user.
- CreateUserDto(String, String, String, String, String, String, int) - Constructor for record class com.app.controller.dto.user.CreateUserDto
-
Creates an instance of a
CreateUserDto
record class. - CreateUserValidator - Class in com.app.validate
- CreateUserValidator(String, String, String, List<String>, String, int, int) - Constructor for class com.app.validate.CreateUserValidator
-
Constructs a CreateUserValidator with regex patterns and validation constraints.
- currentPassword() - Method in record class com.app.controller.dto.user.ChangePasswordDto
-
Returns the value of the
currentPassword
record component. - currentPassword() - Method in record class com.app.controller.dto.user.NewEmailDto
-
Returns the value of the
currentPassword
record component.
D
- data() - Method in record class com.app.controller.dto.ResponseDto
-
Returns the value of the
data
record component. - dataBaseException(Exception) - Method in class com.app.controller.exceptionsHandler.GlobalDatabaseExceptionHandler
-
Handles generic database access exceptions not covered by more specific handlers.
- deleteUser(Long, String) - Method in class com.app.controller.UserController
-
Deletes a user by their ID (admin operation).
- deleteUser(Long, String) - Method in class com.app.service.impl.UserServiceImpl
-
Deletes a user by ID if the logged-in user is an admin.
- deleteUser(Long, String) - Method in interface com.app.service.UserService
-
Deletes a user by ID if the currently logged-in user has admin privileges.
- deleteUser(String) - Method in class com.app.controller.UserController
-
Deletes the currently logged-in user.
- deleteUser(String) - Method in class com.app.service.impl.UserServiceImpl
-
Deletes the currently authenticated user.
- deleteUser(String) - Method in interface com.app.service.UserService
-
Deletes the currently logged-in user (soft delete).
- disable(String, HttpServletResponse) - Method in class com.app.controller.UserController
-
Logs out the user by invalidating authentication cookies.
- doFilterInternal(HttpServletRequest, HttpServletResponse, FilterChain) - Method in class com.app.security.filter.AppAuthorizationFilter
-
Filters the incoming request to parse the Authorization header and extract the access token.
- dynamicFilter(HolidaySpecification) - Method in class com.app.persistence.specification.impl.HolidayFilterSpecificationImpl
-
Builds a dynamic JPA
Specification
forHolidayEntity
based on the non-null fields of the givenHolidaySpecification
. - dynamicFilter(UserSpecification) - Method in class com.app.persistence.specification.impl.UserFilterSpecificationImpl
-
Builds a dynamic JPA
Specification
forUserEntity
based on the non-null and non-empty fields of the givenUserSpecification
. - dynamicFilter(U) - Method in interface com.app.persistence.specification.FilterSpecification
-
Builds a dynamic
Specification
for the given specification criteria.
E
- email() - Method in record class com.app.controller.dto.user.CreateAdminUserDto
-
Returns the value of the
email
record component. - email() - Method in record class com.app.controller.dto.user.CreateUserDto
-
Returns the value of the
email
record component. - email() - Method in record class com.app.controller.dto.user.EmailDto
-
Returns the value of the
email
record component. - email() - Method in record class com.app.controller.dto.user.UserDto
-
Returns the value of the
email
record component. - email() - Method in record class com.app.controller.dto.user.UserSpecificationDto
-
Returns the value of the
email
record component. - email() - Method in record class com.app.persistence.specification.model.UserSpecification
-
Returns the value of the
email
record component. - EmailDto - Record Class in com.app.controller.dto.user
-
Data Transfer Object (DTO) used to transfer an email address, typically for operations like password reset, email verification, or user lookup by email.
- EmailDto(String) - Constructor for record class com.app.controller.dto.user.EmailDto
-
Creates an instance of a
EmailDto
record class. - EmailDtoValidator - Class in com.app.validate
-
Validator implementation for EmailDto objects.
- EmailDtoValidator(String) - Constructor for class com.app.validate.EmailDtoValidator
-
Constructs an EmailDtoValidator with the provided email regex pattern.
- EmailService - Interface in com.app.service
-
Interface for sending emails.
- EmailServiceImpl - Class in com.app.service.impl
-
Implementation of the
EmailService
interface that provides functionality for sending emails. - EmailServiceImpl() - Constructor for class com.app.service.impl.EmailServiceImpl
- enable() - Method in record class com.app.security.dto.UserDetailsDto
-
Returns the value of the
enable
record component. - endDate() - Method in record class com.app.controller.dto.holiday.CreateHolidayDto
-
Returns the value of the
endDate
record component. - endDate() - Method in record class com.app.controller.dto.holiday.HolidayDto
-
Returns the value of the
endDate
record component. - endDate() - Method in record class com.app.controller.dto.holiday.HolidaySpecificationDto
-
Returns the value of the
endDate
record component. - endDate() - Method in record class com.app.persistence.specification.model.HolidaySpecification
-
Returns the value of the
endDate
record component. - entityNotFoundException(EntityNotFoundException) - Method in class com.app.controller.exceptionsHandler.GlobalDatabaseExceptionHandler
-
Handles the case when a requested entity is not found in the database.
- equals(Object) - Method in record class com.app.controller.dto.holiday.CreateHolidayDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.app.controller.dto.holiday.HolidayDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.app.controller.dto.holiday.HolidaySpecificationDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.app.controller.dto.ResponseDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.app.controller.dto.user.ActualLoginRole
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.app.controller.dto.user.ChangePasswordDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.app.controller.dto.user.CreateAdminUserDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.app.controller.dto.user.CreateUserDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.app.controller.dto.user.EmailDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.app.controller.dto.user.LogoutDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.app.controller.dto.user.NewEmailDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.app.controller.dto.user.NewPasswordDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.app.controller.dto.user.UpdateUserDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.app.controller.dto.user.UserActivationDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.app.controller.dto.user.UserActivationTokenDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.app.controller.dto.user.UserDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.app.controller.dto.user.UserSpecificationDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class com.app.persistence.entity.BaseEntity
-
Determines equality of entities based on their identifier.
- equals(Object) - Method in record class com.app.persistence.specification.model.HolidaySpecification
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.app.persistence.specification.model.UserSpecification
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.app.security.dto.AuthenticationDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.app.security.dto.AuthenticationErrorDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.app.security.dto.RefreshTokenDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.app.security.dto.TokensDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.app.security.dto.UserDetailsDto
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.app.security.dto.UsernamePasswordAuthenticationTokenDto
-
Indicates whether some other object is "equal to" this one.
- error() - Method in record class com.app.controller.dto.ResponseDto
-
Returns the value of the
error
record component. - error() - Method in record class com.app.security.dto.AuthenticationErrorDto
-
Returns the value of the
error
record component. - exception(Exception) - Method in class com.app.controller.exceptionsHandler.GlobalValidExceptionHandler
-
Handles any other uncaught exceptions.
- expired() - Method in class com.app.persistence.entity.VerificationTokenEntity
F
- FilterSpecification<T,
U> - Interface in com.app.persistence.specification -
Generic interface for building dynamic
Specification
filters for JPA entities. - findByEmail(String) - Method in interface com.app.persistence.Repository.UserRepository
-
Finds a user by their email address.
- findByToken(String) - Method in interface com.app.persistence.Repository.VerificationTokenRepository
-
Retrieves a verification token by its token value.
- findByUserId(Long) - Method in interface com.app.persistence.Repository.VerificationTokenRepository
-
Retrieves a verification token by the user ID associated with it.
- findByUsername(String) - Method in interface com.app.persistence.Repository.UserRepository
-
Finds a user by their username.
- firstName() - Method in record class com.app.controller.dto.user.CreateUserDto
-
Returns the value of the
firstName
record component.
G
- generateToken(Authentication) - Method in class com.app.security.service.impl.TokenServiceImpl
-
Generates access and refresh tokens for the authenticated user.
- generateToken(Authentication) - Method in interface com.app.security.service.TokenService
-
Generates a new access and refresh token for the given authenticated user.
- getActualLoginRole(String) - Method in class com.app.controller.UserController
-
Retrieves the role of the currently logged-in user.
- getActualLoginRole(String) - Method in class com.app.service.impl.UserServiceImpl
-
Retrieves the role of the currently logged-in user based on the authentication token.
- getActualLoginRole(String) - Method in interface com.app.service.UserService
-
Retrieves the role of the currently logged-in user based on the token.
- getActualLoginUser(String) - Method in class com.app.controller.UserController
-
Retrieves information about the currently logged-in user.
- getActualLoginUser(String) - Method in class com.app.service.impl.UserServiceImpl
-
Retrieves the currently logged-in user based on the authentication token.
- getActualLoginUser(String) - Method in interface com.app.service.UserService
-
Retrieves the currently logged-in user's details based on the provided token.
- getHolidayDto(Long) - Method in interface com.app.service.HolidayService
-
Retrieves a holiday DTO by its ID.
- getHolidayDto(Long) - Method in class com.app.service.impl.HolidayServiceImpl
-
Retrieves a holiday DTO by its ID.
- getHolidays(HolidaySpecificationDto) - Method in class com.app.controller.HolidayController
-
Retrieves holidays filtered by complex criteria.
- getHolidays(HolidaySpecificationDto) - Method in interface com.app.service.HolidayService
-
Retrieves a list of holidays matching the provided specification.
- getHolidays(HolidaySpecificationDto) - Method in class com.app.service.impl.HolidayServiceImpl
-
Retrieves holidays matching given specification criteria.
- getHolidays(String, LocalDateTime, LocalDateTime) - Method in class com.app.controller.HolidayController
-
Retrieves holidays filtered by optional start and end dates.
- getHolidaysByDate(String, LocalDateTime, LocalDateTime) - Method in interface com.app.service.HolidayService
-
Retrieves a list of holidays for the authenticated user between specified dates.
- getHolidaysByDate(String, LocalDateTime, LocalDateTime) - Method in class com.app.service.impl.HolidayServiceImpl
-
Retrieves holidays for a user within a date range.
- getUser(Long) - Method in class com.app.controller.UserController
-
Retrieves a user by their ID.
- getUserById(Long) - Method in class com.app.service.impl.UserServiceImpl
-
Retrieves a user by their ID.
- getUserById(Long) - Method in interface com.app.service.UserService
-
Retrieves a user by their unique ID.
- getUsers(UserSpecificationDto) - Method in class com.app.controller.UserController
-
Retrieves users filtered by criteria.
- getUsers(UserSpecificationDto) - Method in class com.app.service.impl.UserServiceImpl
-
Retrieves a list of users filtered by the given specification.
- getUsers(UserSpecificationDto) - Method in interface com.app.service.UserService
-
Retrieves a list of users matching the specified criteria.
- GlobalDatabaseExceptionHandler - Class in com.app.controller.exceptionsHandler
-
Global exception handler for database-related exceptions across all controllers.
- GlobalDatabaseExceptionHandler() - Constructor for class com.app.controller.exceptionsHandler.GlobalDatabaseExceptionHandler
- GlobalMailSenderExceptionHandler - Class in com.app.controller.exceptionsHandler
-
Global exception handler for email sending related exceptions.
- GlobalMailSenderExceptionHandler() - Constructor for class com.app.controller.exceptionsHandler.GlobalMailSenderExceptionHandler
- GlobalSecurityExceptionHandler - Class in com.app.controller.exceptionsHandler
-
Global exception handler for security and authentication related exceptions.
- GlobalSecurityExceptionHandler() - Constructor for class com.app.controller.exceptionsHandler.GlobalSecurityExceptionHandler
- GlobalValidExceptionHandler - Class in com.app.controller.exceptionsHandler
-
Global exception handler for validation-related exceptions.
- GlobalValidExceptionHandler() - Constructor for class com.app.controller.exceptionsHandler.GlobalValidExceptionHandler
H
- handleAccessDenied(AccessDeniedException) - Method in class com.app.controller.exceptionsHandler.GlobalSecurityExceptionHandler
-
Handles access denied exceptions when authenticated users try to access resources without sufficient permissions.
- handleAccountStatusExceptions(AuthenticationException) - Method in class com.app.controller.exceptionsHandler.GlobalSecurityExceptionHandler
-
Handles exceptions related to user account status such as disabled, locked, expired accounts, or expired credentials.
- handleAuthenticationException(AuthenticationException) - Method in class com.app.controller.exceptionsHandler.GlobalSecurityExceptionHandler
-
Handles general authentication failures such as bad credentials, missing credentials, or authentication service errors.
- handleDataIntegrityViolation(Exception) - Method in class com.app.controller.exceptionsHandler.GlobalDatabaseExceptionHandler
-
Handles data integrity violations such as unique constraint breaches.
- handleGenericMailException(MailException) - Method in class com.app.controller.exceptionsHandler.GlobalMailSenderExceptionHandler
-
Handles all other generic MailExceptions not covered by specific handlers.
- handleJpaSystemException(JpaSystemException) - Method in class com.app.controller.exceptionsHandler.GlobalDatabaseExceptionHandler
-
Handles exceptions related to JPA system errors.
- handleLockingExceptions(Exception) - Method in class com.app.controller.exceptionsHandler.GlobalDatabaseExceptionHandler
-
Handles exceptions related to optimistic and pessimistic locking failures, including deadlocks or inability to acquire locks.
- handleMailAuthException(Exception) - Method in class com.app.controller.exceptionsHandler.GlobalMailSenderExceptionHandler
-
Handles SMTP authentication failures.
- handleMailSendException(MailSendException) - Method in class com.app.controller.exceptionsHandler.GlobalMailSenderExceptionHandler
-
Handles failures in sending email to one or more recipients.
- handleMailValidationException(MailPreparationException) - Method in class com.app.controller.exceptionsHandler.GlobalMailSenderExceptionHandler
-
Handles email message preparation or parsing errors, typically due to invalid message format.
- handleResourceAlreadyExistException(ResourceAlreadyExistException) - Method in class com.app.controller.exceptionsHandler.GlobalDatabaseExceptionHandler
-
Handles the case when a resource that is attempted to be created already exists.
- handleTransactionException(TransactionSystemException) - Method in class com.app.controller.exceptionsHandler.GlobalDatabaseExceptionHandler
-
Handles transaction-related exceptions that occur when a transaction fails.
- hasAccess(String) - Method in class com.app.controller.UserController
-
Checks if the user has access (token validation).
- hashCode() - Method in record class com.app.controller.dto.holiday.CreateHolidayDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.app.controller.dto.holiday.HolidayDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.app.controller.dto.holiday.HolidaySpecificationDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.app.controller.dto.ResponseDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.app.controller.dto.user.ActualLoginRole
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.app.controller.dto.user.ChangePasswordDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.app.controller.dto.user.CreateAdminUserDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.app.controller.dto.user.CreateUserDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.app.controller.dto.user.EmailDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.app.controller.dto.user.LogoutDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.app.controller.dto.user.NewEmailDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.app.controller.dto.user.NewPasswordDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.app.controller.dto.user.UpdateUserDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.app.controller.dto.user.UserActivationDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.app.controller.dto.user.UserActivationTokenDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.app.controller.dto.user.UserDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.app.controller.dto.user.UserSpecificationDto
-
Returns a hash code value for this object.
- hashCode() - Method in class com.app.persistence.entity.BaseEntity
-
Returns a hash code consistent with the equals method.
- hashCode() - Method in record class com.app.persistence.specification.model.HolidaySpecification
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.app.persistence.specification.model.UserSpecification
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.app.security.dto.AuthenticationDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.app.security.dto.AuthenticationErrorDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.app.security.dto.RefreshTokenDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.app.security.dto.TokensDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.app.security.dto.UserDetailsDto
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.app.security.dto.UsernamePasswordAuthenticationTokenDto
-
Returns a hash code value for this object.
- HolidayController - Class in com.app.controller
-
REST controller for handling holiday-related operations.
- HolidayController() - Constructor for class com.app.controller.HolidayController
- HolidayDto - Record Class in com.app.controller.dto.holiday
-
Data Transfer Object (DTO) representing a holiday request with full details.
- HolidayDto(Long, Long, LocalDateTime, LocalDateTime, Status) - Constructor for record class com.app.controller.dto.holiday.HolidayDto
-
Creates an instance of a
HolidayDto
record class. - HolidayEntity - Class in com.app.persistence.entity
-
Entity representing a holiday request or record.
- HolidayEntity() - Constructor for class com.app.persistence.entity.HolidayEntity
- HolidayFilterSpecificationImpl - Class in com.app.persistence.specification.impl
-
Implementation of
FilterSpecification
for filteringHolidayEntity
instances dynamically based on the providedHolidaySpecification
criteria. - HolidayFilterSpecificationImpl() - Constructor for class com.app.persistence.specification.impl.HolidayFilterSpecificationImpl
- holidayHours() - Method in record class com.app.controller.dto.user.UpdateUserDto
-
Returns the value of the
holidayHours
record component. - HolidayManagerApplication - Class in com.app
- HolidayManagerApplication() - Constructor for class com.app.HolidayManagerApplication
- HolidayRepository - Interface in com.app.persistence.Repository
-
Repository interface for managing
HolidayEntity
entities. - HolidayService - Interface in com.app.service
- HolidayServiceImpl - Class in com.app.service.impl
-
Service responsible for handling business logic related to holidays.
- HolidayServiceImpl() - Constructor for class com.app.service.impl.HolidayServiceImpl
- holidaysHours() - Method in record class com.app.controller.dto.user.UserDto
-
Returns the value of the
holidaysHours
record component. - HolidaySpecification - Record Class in com.app.persistence.specification.model
-
Specification model used to filter
HolidayEntity
entities in a dynamic and type-safe way. - HolidaySpecification(Long, Long, LocalDateTime, LocalDateTime, Status) - Constructor for record class com.app.persistence.specification.model.HolidaySpecification
-
Creates an instance of a
HolidaySpecification
record class. - HolidaySpecificationDto - Record Class in com.app.controller.dto.holiday
-
Data Transfer Object (DTO) used to encapsulate filtering criteria for querying holiday requests based on various parameters.
- HolidaySpecificationDto(Long, Long, LocalDateTime, LocalDateTime, Status) - Constructor for record class com.app.controller.dto.holiday.HolidaySpecificationDto
-
Creates an instance of a
HolidaySpecificationDto
record class.
I
- id - Variable in class com.app.persistence.entity.BaseEntity
-
The unique identifier of the entity.
- id() - Method in record class com.app.controller.dto.holiday.HolidayDto
-
Returns the value of the
id
record component. - id() - Method in record class com.app.controller.dto.holiday.HolidaySpecificationDto
-
Returns the value of the
id
record component. - id() - Method in record class com.app.controller.dto.user.UserActivationDto
-
Returns the value of the
id
record component. - id() - Method in record class com.app.controller.dto.user.UserDto
-
Returns the value of the
id
record component. - id() - Method in record class com.app.persistence.specification.model.HolidaySpecification
-
Returns the value of the
id
record component. - id(String) - Method in class com.app.security.service.impl.TokenServiceImpl
-
Extracts the user ID from the token.
- id(String) - Method in interface com.app.security.service.TokenService
-
Extracts the user ID from a JWT token.
- illegalArgumentException(Exception) - Method in class com.app.controller.exceptionsHandler.GlobalValidExceptionHandler
-
Handles validation and illegal argument exceptions.
- init() - Method in class com.app.service.impl.UserServiceImpl
-
Initializes the service by saving an admin user on startup.
- isAdmin() - Method in class com.app.persistence.entity.UserEntity
-
Checks if the user has the admin role.
- isHolidayAllow(Long, LocalDateTime, LocalDateTime) - Method in interface com.app.persistence.Repository.HolidayRepository
-
Checks if there is any existing holiday for a given user that overlaps with the specified start and end dates, excluding holidays with status REJECTED.
L
- loadUserByUsername(String) - Method in class com.app.security.service.impl.AppUserDetailsServiceImpl
-
Loads user details by the username.
- LogoutDto - Record Class in com.app.controller.dto.user
-
Data Transfer Object (DTO) representing a logout response message.
- LogoutDto(String) - Constructor for record class com.app.controller.dto.user.LogoutDto
-
Creates an instance of a
LogoutDto
record class. - lostPassword(EmailDto) - Method in class com.app.controller.UserController
-
Initiates a lost password process by sending a reset email.
- lostPassword(EmailDto) - Method in class com.app.service.impl.UserServiceImpl
-
Initiates password reset process by publishing activation event.
- lostPassword(EmailDto) - Method in interface com.app.service.UserService
-
Initiates a lost password process for a user by their email.
M
- main(String[]) - Static method in class com.app.HolidayManagerApplication
- maxAge() - Method in record class com.app.controller.dto.user.UserSpecificationDto
-
Returns the value of the
maxAge
record component. - maxAge() - Method in record class com.app.persistence.specification.model.UserSpecification
-
Returns the value of the
maxAge
record component. - maxHolidayHours() - Method in record class com.app.controller.dto.user.UserSpecificationDto
-
Returns the value of the
maxHolidayHours
record component. - maxHolidayHours() - Method in record class com.app.persistence.specification.model.UserSpecification
-
Returns the value of the
maxHolidayHours
record component. - message() - Method in record class com.app.controller.dto.user.LogoutDto
-
Returns the value of the
message
record component. - minAge() - Method in record class com.app.controller.dto.user.UserSpecificationDto
-
Returns the value of the
minAge
record component. - minAge() - Method in record class com.app.persistence.specification.model.UserSpecification
-
Returns the value of the
minAge
record component. - minHolidayHours() - Method in record class com.app.controller.dto.user.UserSpecificationDto
-
Returns the value of the
minHolidayHours
record component. - minHolidayHours() - Method in record class com.app.persistence.specification.model.UserSpecification
-
Returns the value of the
minHolidayHours
record component.
N
- name() - Method in record class com.app.controller.dto.user.CreateAdminUserDto
-
Returns the value of the
name
record component. - name() - Method in record class com.app.controller.dto.user.CreateUserDto
-
Returns the value of the
name
record component. - name() - Method in record class com.app.controller.dto.user.UserDto
-
Returns the value of the
name
record component. - name() - Method in record class com.app.controller.dto.user.UserSpecificationDto
-
Returns the value of the
name
record component. - name() - Method in record class com.app.persistence.specification.model.UserSpecification
-
Returns the value of the
name
record component. - newEmail() - Method in record class com.app.controller.dto.user.NewEmailDto
-
Returns the value of the
newEmail
record component. - NewEmailDto - Record Class in com.app.controller.dto.user
-
Data Transfer Object (DTO) used for requesting an email change.
- NewEmailDto(String, String, String) - Constructor for record class com.app.controller.dto.user.NewEmailDto
-
Creates an instance of a
NewEmailDto
record class. - NewEmailDtoValidator - Class in com.app.validate
-
Validator implementation for NewEmailDto objects.
- NewEmailDtoValidator(String, List<String>, int) - Constructor for class com.app.validate.NewEmailDtoValidator
-
Constructs a NewEmailDtoValidator with the provided validation parameters.
- newPassword() - Method in record class com.app.controller.dto.user.ChangePasswordDto
-
Returns the value of the
newPassword
record component. - newPassword() - Method in record class com.app.controller.dto.user.NewPasswordDto
-
Returns the value of the
newPassword
record component. - newPassword(NewPasswordDto) - Method in class com.app.controller.UserController
-
Sets a new password for the user.
- newPassword(NewPasswordDto) - Method in class com.app.service.impl.UserServiceImpl
-
Sets a new password for a user based on a valid token.
- newPassword(NewPasswordDto) - Method in interface com.app.service.UserService
-
Sets a new password for a user using a verification token.
- NewPasswordDto - Record Class in com.app.controller.dto.user
-
Data Transfer Object (DTO) used for resetting or changing a user's password.
- NewPasswordDto(String, String, String) - Constructor for record class com.app.controller.dto.user.NewPasswordDto
-
Creates an instance of a
NewPasswordDto
record class. - NewPasswordDtoValidator - Class in com.app.validate
-
Validator implementation for NewPasswordDto objects.
- NewPasswordDtoValidator(List<String>, int) - Constructor for class com.app.validate.NewPasswordDtoValidator
-
Constructs a NewPasswordDtoValidator with the given password validation parameters.
P
- parseAccessToken(String) - Method in class com.app.security.service.impl.TokenServiceImpl
-
Parses the access token from the authorization header and retrieves the associated authentication.
- parseAccessToken(String) - Method in interface com.app.security.service.TokenService
-
Parses the access token from a provided token string and retrieves the associated authentication.
- password() - Method in record class com.app.controller.dto.user.CreateAdminUserDto
-
Returns the value of the
password
record component. - password() - Method in record class com.app.controller.dto.user.CreateUserDto
-
Returns the value of the
password
record component. - password() - Method in record class com.app.security.dto.AuthenticationDto
-
Returns the value of the
password
record component. - password() - Method in record class com.app.security.dto.UserDetailsDto
-
Returns the value of the
password
record component. - PROCESSING - Enum constant in enum class com.app.model.Status
-
The process or request is currently being processed.
R
- refreshToken() - Method in record class com.app.security.dto.TokensDto
-
Returns the value of the
refreshToken
record component. - refreshToken(RefreshTokenDto) - Method in class com.app.security.service.impl.TokenServiceImpl
-
Refreshes the access token using the provided refresh token.
- refreshToken(RefreshTokenDto) - Method in interface com.app.security.service.TokenService
-
Refreshes the access token using the provided refresh token.
- refreshToken(String, HttpServletResponse) - Method in class com.app.controller.UserController
-
Refreshes authentication tokens using the refresh token from cookies.
- RefreshTokenDto - Record Class in com.app.security.dto
-
Data Transfer Object (DTO) used to represent a refresh token.
- RefreshTokenDto(String) - Constructor for record class com.app.security.dto.RefreshTokenDto
-
Creates an instance of a
RefreshTokenDto
record class. - refreshVerificationEmailToken(EmailDto) - Method in class com.app.controller.UserController
-
Requests a new verification email token to be sent.
- refreshVerificationEmailToken(EmailDto) - Method in class com.app.service.impl.UserServiceImpl
-
Refreshes the verification email token for a user.
- refreshVerificationEmailToken(EmailDto) - Method in interface com.app.service.UserService
-
Refreshes the email verification token for a user.
- REJECTED - Enum constant in enum class com.app.model.Status
-
The process or request has been rejected.
- ResourceAlreadyExistException - Exception Class in com.app.exception
-
Exception thrown when an attempt is made to create a resource that already exists.
- ResourceAlreadyExistException(String) - Constructor for exception class com.app.exception.ResourceAlreadyExistException
-
Constructs a new ResourceAlreadyExistException with the specified detail message.
- ResponseDto<T> - Record Class in com.app.controller.dto
-
Generic response wrapper DTO to encapsulate either the successful data or an error message.
- ResponseDto(String) - Constructor for record class com.app.controller.dto.ResponseDto
-
Constructs an error response containing an error message.
- ResponseDto(T) - Constructor for record class com.app.controller.dto.ResponseDto
-
Constructs a successful response containing data.
- ResponseDto(T, String) - Constructor for record class com.app.controller.dto.ResponseDto
-
Creates an instance of a
ResponseDto
record class. - role() - Method in record class com.app.controller.dto.user.ActualLoginRole
-
Returns the value of the
role
record component. - role() - Method in record class com.app.controller.dto.user.UpdateUserDto
-
Returns the value of the
role
record component. - role() - Method in record class com.app.controller.dto.user.UserDto
-
Returns the value of the
role
record component. - role() - Method in record class com.app.security.dto.UserDetailsDto
-
Returns the value of the
role
record component. - role() - Method in record class com.app.security.dto.UsernamePasswordAuthenticationTokenDto
-
Returns the value of the
role
record component. - Role - Enum Class in com.app.model
-
Enumeration representing user roles within the application.
- ROLE_ADMIN - Enum constant in enum class com.app.model.Role
-
Administrator role with elevated privileges.
- ROLE_WORKER - Enum constant in enum class com.app.model.Role
-
Standard user role with limited privileges.
S
- send(String, String, String) - Method in interface com.app.service.EmailService
-
Sends an email with the given subject and body to the specified recipient.
- send(String, String, String) - Method in class com.app.service.impl.EmailServiceImpl
-
Sends an email with the specified recipient, subject, and body.
- sendActivationEmail(UserActivationDto) - Method in class com.app.listener.UserActivationListener
-
Listens to the user activation event and sends an activation email with a unique token to the user.
- setCookie(TokensDto, HttpServletResponse) - Method in class com.app.security.service.impl.TokenServiceImpl
- setCookie(TokensDto, HttpServletResponse) - Method in interface com.app.security.service.TokenService
- startDate() - Method in record class com.app.controller.dto.holiday.CreateHolidayDto
-
Returns the value of the
startDate
record component. - startDate() - Method in record class com.app.controller.dto.holiday.HolidayDto
-
Returns the value of the
startDate
record component. - startDate() - Method in record class com.app.controller.dto.holiday.HolidaySpecificationDto
-
Returns the value of the
startDate
record component. - startDate() - Method in record class com.app.persistence.specification.model.HolidaySpecification
-
Returns the value of the
startDate
record component. - status() - Method in record class com.app.controller.dto.holiday.HolidayDto
-
Returns the value of the
status
record component. - status() - Method in record class com.app.controller.dto.holiday.HolidaySpecificationDto
-
Returns the value of the
status
record component. - status() - Method in record class com.app.persistence.specification.model.HolidaySpecification
-
Returns the value of the
status
record component. - Status - Enum Class in com.app.model
-
Enumeration representing the status of a process or request.
- successfulAuthentication(HttpServletRequest, HttpServletResponse, FilterChain, Authentication) - Method in class com.app.security.filter.AppAuthenticationFilter
-
Handles successful authentication by generating and setting authentication tokens.
- surname() - Method in record class com.app.controller.dto.user.CreateAdminUserDto
-
Returns the value of the
surname
record component. - surname() - Method in record class com.app.controller.dto.user.CreateUserDto
-
Returns the value of the
surname
record component. - surname() - Method in record class com.app.controller.dto.user.UserDto
-
Returns the value of the
surname
record component. - surname() - Method in record class com.app.controller.dto.user.UserSpecificationDto
-
Returns the value of the
surname
record component. - surname() - Method in record class com.app.persistence.specification.model.UserSpecification
-
Returns the value of the
surname
record component.
T
- toEntity() - Method in record class com.app.controller.dto.holiday.CreateHolidayDto
-
Converts this DTO into a
HolidayEntity
. - toEntity() - Method in record class com.app.controller.dto.user.CreateUserDto
-
Converts this DTO into a
UserEntity
with default settings. - toHolidayDto() - Method in class com.app.persistence.entity.HolidayEntity
-
Converts this entity to its corresponding DTO.
- toHolidaySpecification() - Method in record class com.app.controller.dto.holiday.HolidaySpecificationDto
-
Converts this DTO into a
HolidaySpecification
, which can be used for dynamic querying of holiday requests based on provided criteria. - token() - Method in record class com.app.controller.dto.user.NewPasswordDto
-
Returns the value of the
token
record component. - token() - Method in record class com.app.controller.dto.user.UserActivationTokenDto
-
Returns the value of the
token
record component. - token() - Method in record class com.app.security.dto.RefreshTokenDto
-
Returns the value of the
token
record component. - TokensDto - Record Class in com.app.security.dto
-
Data Transfer Object (DTO) used to represent both the access token and the refresh token.
- TokensDto(String, String) - Constructor for record class com.app.security.dto.TokensDto
-
Creates an instance of a
TokensDto
record class. - TokenService - Interface in com.app.security.service
-
Interface for handling JWT token generation, parsing, and refreshing operations.
- TokenServiceImpl - Class in com.app.security.service.impl
-
Service implementation for handling JWT token creation, parsing, and refreshing.
- TokenServiceImpl() - Constructor for class com.app.security.service.impl.TokenServiceImpl
- toString() - Method in record class com.app.controller.dto.holiday.CreateHolidayDto
-
Returns a string representation of this record class.
- toString() - Method in record class com.app.controller.dto.holiday.HolidayDto
-
Returns a string representation of this record class.
- toString() - Method in record class com.app.controller.dto.holiday.HolidaySpecificationDto
-
Returns a string representation of this record class.
- toString() - Method in record class com.app.controller.dto.ResponseDto
-
Returns a string representation of this record class.
- toString() - Method in record class com.app.controller.dto.user.ActualLoginRole
-
Returns a string representation of this record class.
- toString() - Method in record class com.app.controller.dto.user.ChangePasswordDto
-
Returns a string representation of this record class.
- toString() - Method in record class com.app.controller.dto.user.CreateAdminUserDto
-
Returns a string representation of this record class.
- toString() - Method in record class com.app.controller.dto.user.CreateUserDto
-
Returns a string representation of this record class.
- toString() - Method in record class com.app.controller.dto.user.EmailDto
-
Returns a string representation of this record class.
- toString() - Method in record class com.app.controller.dto.user.LogoutDto
-
Returns a string representation of this record class.
- toString() - Method in record class com.app.controller.dto.user.NewEmailDto
-
Returns a string representation of this record class.
- toString() - Method in record class com.app.controller.dto.user.NewPasswordDto
-
Returns a string representation of this record class.
- toString() - Method in record class com.app.controller.dto.user.UpdateUserDto
-
Returns a string representation of this record class.
- toString() - Method in record class com.app.controller.dto.user.UserActivationDto
-
Returns a string representation of this record class.
- toString() - Method in record class com.app.controller.dto.user.UserActivationTokenDto
-
Returns a string representation of this record class.
- toString() - Method in record class com.app.controller.dto.user.UserDto
-
Returns a string representation of this record class.
- toString() - Method in record class com.app.controller.dto.user.UserSpecificationDto
-
Returns a string representation of this record class.
- toString() - Method in record class com.app.persistence.specification.model.HolidaySpecification
-
Returns a string representation of this record class.
- toString() - Method in record class com.app.persistence.specification.model.UserSpecification
-
Returns a string representation of this record class.
- toString() - Method in record class com.app.security.dto.AuthenticationDto
-
Returns a string representation of this record class.
- toString() - Method in record class com.app.security.dto.AuthenticationErrorDto
-
Returns a string representation of this record class.
- toString() - Method in record class com.app.security.dto.RefreshTokenDto
-
Returns a string representation of this record class.
- toString() - Method in record class com.app.security.dto.TokensDto
-
Returns a string representation of this record class.
- toString() - Method in record class com.app.security.dto.UserDetailsDto
-
Returns a string representation of this record class.
- toString() - Method in record class com.app.security.dto.UsernamePasswordAuthenticationTokenDto
-
Returns a string representation of this record class.
- toUserDetailsDto() - Method in class com.app.persistence.entity.UserEntity
-
Converts this entity to UserDetailsDto used for security authentication.
- toUserDto() - Method in class com.app.persistence.entity.UserEntity
-
Converts this entity to a UserDto.
- toUserEntity() - Method in record class com.app.controller.dto.user.CreateAdminUserDto
-
Converts this DTO into a
UserEntity
with admin privileges. - toUsernamePasswordAuthenticationTokenDto() - Method in class com.app.persistence.entity.UserEntity
-
Converts this entity to UsernamePasswordAuthenticationTokenDto, which contains the username and role string.
- toUserSpecification() - Method in record class com.app.controller.dto.user.UserSpecificationDto
-
Converts this DTO to a
UserSpecification
used for querying the database.
U
- unauthorizedException(Exception) - Method in class com.app.controller.exceptionsHandler.GlobalSecurityExceptionHandler
-
Handles invalid or expired JWT token exceptions.
- updateUser(UpdateUserDto) - Method in class com.app.controller.UserController
-
Updates a user with new data.
- updateUser(UpdateUserDto) - Method in class com.app.service.impl.UserServiceImpl
-
Updates user role and holiday hours.
- updateUser(UpdateUserDto) - Method in interface com.app.service.UserService
-
Updates user details such as role and holiday hours.
- UpdateUserDto - Record Class in com.app.controller.dto.user
-
Data Transfer Object (DTO) for updating user details.
- UpdateUserDto(Long, Long, Role) - Constructor for record class com.app.controller.dto.user.UpdateUserDto
-
Creates an instance of a
UpdateUserDto
record class. - UserActivationDto - Record Class in com.app.controller.dto.user
-
A DTO representing the data required to activate a user account.
- UserActivationDto(Long) - Constructor for record class com.app.controller.dto.user.UserActivationDto
-
Creates an instance of a
UserActivationDto
record class. - UserActivationListener - Class in com.app.listener
-
Listener class responsible for handling user activation events.
- UserActivationListener() - Constructor for class com.app.listener.UserActivationListener
- UserActivationTokenDto - Record Class in com.app.controller.dto.user
-
Data Transfer Object (DTO) representing a user activation token.
- UserActivationTokenDto(String) - Constructor for record class com.app.controller.dto.user.UserActivationTokenDto
-
Creates an instance of a
UserActivationTokenDto
record class. - UserController - Class in com.app.controller
-
REST controller for user management operations.
- UserController() - Constructor for class com.app.controller.UserController
- UserDetailsDto - Record Class in com.app.security.dto
-
Data Transfer Object (DTO) used to represent the details of a user.
- UserDetailsDto(String, String, boolean, String) - Constructor for record class com.app.security.dto.UserDetailsDto
-
Creates an instance of a
UserDetailsDto
record class. - UserDto - Record Class in com.app.controller.dto.user
-
Data Transfer Object (DTO) representing user details.
- UserDto(Long, String, String, String, String, Integer, Long, Role) - Constructor for record class com.app.controller.dto.user.UserDto
-
Creates an instance of a
UserDto
record class. - UserEntity - Class in com.app.persistence.entity
-
Represents a user in the system.
- UserEntity() - Constructor for class com.app.persistence.entity.UserEntity
- UserEntityWithHolidays(long) - Method in class com.app.persistence.entity.UserEntity
-
Returns a new UserEntity instance with updated holiday hours (incremented).
- UserFilterSpecificationImpl - Class in com.app.persistence.specification.impl
-
Implementation of
FilterSpecification
for filteringUserEntity
instances dynamically based on the providedUserSpecification
criteria. - UserFilterSpecificationImpl() - Constructor for class com.app.persistence.specification.impl.UserFilterSpecificationImpl
- userId() - Method in record class com.app.controller.dto.holiday.HolidayDto
-
Returns the value of the
userId
record component. - userId() - Method in record class com.app.controller.dto.holiday.HolidaySpecificationDto
-
Returns the value of the
userId
record component. - userId() - Method in record class com.app.controller.dto.user.UpdateUserDto
-
Returns the value of the
userId
record component. - userId() - Method in record class com.app.persistence.specification.model.HolidaySpecification
-
Returns the value of the
userId
record component. - username() - Method in record class com.app.controller.dto.user.CreateAdminUserDto
-
Returns the value of the
username
record component. - username() - Method in record class com.app.controller.dto.user.CreateUserDto
-
Returns the value of the
username
record component. - username() - Method in record class com.app.controller.dto.user.UserDto
-
Returns the value of the
username
record component. - username() - Method in record class com.app.controller.dto.user.UserSpecificationDto
-
Returns the value of the
username
record component. - username() - Method in record class com.app.persistence.specification.model.UserSpecification
-
Returns the value of the
username
record component. - username() - Method in record class com.app.security.dto.AuthenticationDto
-
Returns the value of the
username
record component. - username() - Method in record class com.app.security.dto.UserDetailsDto
-
Returns the value of the
username
record component. - username() - Method in record class com.app.security.dto.UsernamePasswordAuthenticationTokenDto
-
Returns the value of the
username
record component. - UsernamePasswordAuthenticationTokenDto - Record Class in com.app.security.dto
-
Data Transfer Object (DTO) used to represent the username and role of a user during authentication.
- UsernamePasswordAuthenticationTokenDto(String, String) - Constructor for record class com.app.security.dto.UsernamePasswordAuthenticationTokenDto
-
Creates an instance of a
UsernamePasswordAuthenticationTokenDto
record class. - UserRepository - Interface in com.app.persistence.Repository
-
Repository interface for managing
UserEntity
entities. - UserService - Interface in com.app.service
- UserServiceImpl - Class in com.app.service.impl
-
Implementation of
UserService
providing user management functionality. - UserServiceImpl() - Constructor for class com.app.service.impl.UserServiceImpl
- UserSpecification - Record Class in com.app.persistence.specification.model
-
Specification model used to filter
UserEntity
entities based on dynamic criteria. - UserSpecification(String, String, String, String, Integer, Integer, Long, Long) - Constructor for record class com.app.persistence.specification.model.UserSpecification
-
Creates an instance of a
UserSpecification
record class. - UserSpecificationDto - Record Class in com.app.controller.dto.user
-
Data Transfer Object (DTO) for filtering and querying users based on various criteria.
- UserSpecificationDto(String, String, String, String, Integer, Integer, Long, Long) - Constructor for record class com.app.controller.dto.user.UserSpecificationDto
-
Creates an instance of a
UserSpecificationDto
record class.
V
- validate() - Method in class com.app.persistence.entity.VerificationTokenEntity
-
Validates the token by checking its expiration time.
- validate(CreateHolidayDto) - Method in class com.app.validate.CreateHolidayDtoValidator
-
Validates the CreateHolidayDto object by checking: - If the DTO is null
- validate(ChangePasswordDto) - Method in class com.app.validate.ChangePasswordDtoValidator
-
Validates the ChangePasswordDto object by checking: - If the DTO is null
- validate(CreateUserDto) - Method in class com.app.validate.CreateUserValidator
-
Validates the CreateUserDto object by checking: - Whether the DTO is null
- validate(EmailDto) - Method in class com.app.validate.EmailDtoValidator
-
Validates the given EmailDto object.
- validate(NewEmailDto) - Method in class com.app.validate.NewEmailDtoValidator
-
Validates the given NewEmailDto object.
- validate(NewPasswordDto) - Method in class com.app.validate.NewPasswordDtoValidator
-
Validates the given NewPasswordDto object.
- validate(T) - Method in interface com.app.validate.Validator
-
Validates the given object.
- validatePassword(String, String, List<String>, Map<String, String>, int) - Static method in interface com.app.validate.Validator
-
Validates a password string against multiple regex patterns and minimum length.
- validateStringField(String, String, String, String, Map<String, String>) - Static method in interface com.app.validate.Validator
-
Validates a string field against a given regex pattern.
- ValidationException - Exception Class in com.app.exception
-
Exception thrown when validation of an input or data fails.
- ValidationException(String) - Constructor for exception class com.app.exception.ValidationException
-
Constructs a new ValidationException with the specified detail message.
- Validator<T> - Interface in com.app.validate
-
Generic Validator interface for validating objects of type T.
- valueOf(String) - Static method in enum class com.app.model.Role
-
Returns the enum constant of this class with the specified name.
- valueOf(String) - Static method in enum class com.app.model.Status
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.app.model.Role
-
Returns an array containing the constants of this enum class, in the order they are declared.
- values() - Static method in enum class com.app.model.Status
-
Returns an array containing the constants of this enum class, in the order they are declared.
- VerificationTokenEntity - Class in com.app.persistence.entity
-
JPA Entity representing a verification token for user activation.
- VerificationTokenEntity() - Constructor for class com.app.persistence.entity.VerificationTokenEntity
- VerificationTokenRepository - Interface in com.app.persistence.Repository
-
Repository interface for managing
VerificationTokenEntity
entities in the persistence layer.
W
- withActivation() - Method in class com.app.persistence.entity.UserEntity
-
Returns a new UserEntity instance with account enabled.
- withDeactivation() - Method in class com.app.persistence.entity.UserEntity
-
Returns a new UserEntity instance with account disabled.
- withDelete() - Method in class com.app.persistence.entity.UserEntity
-
Returns a new UserEntity instance representing a deleted user.
- withNewEmail(String) - Method in class com.app.persistence.entity.UserEntity
-
Returns a new UserEntity instance with a new email and account enabled.
- withNewRoleAndNewHolidaysHours(Long, Role) - Method in class com.app.persistence.entity.UserEntity
-
Returns a new UserEntity with updated role and holiday hours, account enabled.
- withPassword(String) - Method in class com.app.persistence.entity.UserEntity
-
Returns a new UserEntity instance with the specified password.
- withStatus(Status) - Method in class com.app.persistence.entity.HolidayEntity
-
Creates a new HolidayEntity with the given status, copying existing fields including id.
- withUserEntity(UserEntity) - Method in class com.app.persistence.entity.HolidayEntity
-
Creates a new HolidayEntity with the given user entity, copying existing fields.
All Classes and Interfaces|All Packages|Serialized Form