Index
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form
A
- accessToken() - Method in record class com.example.blogs.app.api.auth.dto.AccessTokenResponse
-
Returns the value of the
accessTokenrecord component. - accessToken() - Method in record class com.example.blogs.app.api.auth.dto.TokenPair
-
Returns the value of the
accessTokenrecord component. - AccessTokenResponse - Record Class in com.example.blogs.app.api.auth.dto
-
Response payload containing a new access token after refresh token validation.
- AccessTokenResponse(String) - Constructor for record class com.example.blogs.app.api.auth.dto.AccessTokenResponse
-
Creates an instance of a
AccessTokenResponserecord class. - append(LogEvent) - Method in class com.example.blogs.app.logging.CloudWatchAppender
-
Appends a log event to the CloudWatch queue for asynchronous processing.
- Application - Class in com.example.blogs.app
-
Main entry point for the Blog API Spring Boot application.
- Application() - Constructor for class com.example.blogs.app.Application
- apply(PostEntity, PostUpdateRequestDTO) - Method in class com.example.blogs.app.api.post.service.PostSlugUpdater
-
Applies slug update to a post entity if the title is being changed.
- AtLeastOneField - Annotation Interface in com.example.blogs.app.validation
-
Validates that at least one of the specified fields has a non-blank value.
- AtLeastOneFieldValidator - Class in com.example.blogs.app.validation
-
Validator that checks if at least one specified field contains a non-blank value.
- AtLeastOneFieldValidator() - Constructor for class com.example.blogs.app.validation.AtLeastOneFieldValidator
- AuthController - Class in com.example.blogs.app.api.auth.controller
-
REST controller for user authentication, registration, and token management.
- AuthController() - Constructor for class com.example.blogs.app.api.auth.controller.AuthController
- AuthControllerDocs - Class in com.example.blogs.app.api.auth.docs
-
OpenAPI documentation annotations for authentication controller endpoints.
- AuthControllerDocs() - Constructor for class com.example.blogs.app.api.auth.docs.AuthControllerDocs
- AuthControllerDocs.Login - Annotation Interface in com.example.blogs.app.api.auth.docs
-
Meta-annotation combining all OpenAPI documentation for the user login endpoint.
- AuthControllerDocs.Logout - Annotation Interface in com.example.blogs.app.api.auth.docs
-
Meta-annotation combining all OpenAPI documentation for the logout endpoint.
- AuthControllerDocs.Me - Annotation Interface in com.example.blogs.app.api.auth.docs
-
Meta-annotation combining all OpenAPI documentation for the get current user endpoint.
- AuthControllerDocs.Refresh - Annotation Interface in com.example.blogs.app.api.auth.docs
-
Meta-annotation combining all OpenAPI documentation for the refresh token endpoint.
- AuthControllerDocs.Register - Annotation Interface in com.example.blogs.app.api.auth.docs
-
Meta-annotation combining all OpenAPI documentation for the user registration endpoint.
- author() - Method in record class com.example.blogs.app.api.post.dto.PostCommentSummaryDTO
-
Returns the value of the
authorrecord component. - author() - Method in record class com.example.blogs.app.api.post.dto.PostDTO
-
Returns the value of the
authorrecord component. - authorId() - Method in record class com.example.blogs.app.api.comment.dto.CommentDTO
-
Returns the value of the
authorIdrecord component. - AuthService - Interface in com.example.blogs.app.api.auth.service
-
Handles authentication operations including user registration, login, token management, and logout functionality.
- AuthServiceImpl - Class in com.example.blogs.app.api.auth.service
-
Orchestrates user authentication operations by coordinating password hashing, user validation, and token generation.
- AuthServiceImpl() - Constructor for class com.example.blogs.app.api.auth.service.AuthServiceImpl
B
- bio() - Method in record class com.example.blogs.app.api.user.dto.UpdateUserRequestDTO
-
Returns the value of the
biorecord component. - bio() - Method in record class com.example.blogs.app.api.user.dto.UpdateUserResponseDTO
-
Returns the value of the
biorecord component. - bio() - Method in record class com.example.blogs.app.api.user.dto.UserDTO
-
Returns the value of the
biorecord component. - build(FileEntity) - Method in class com.example.blogs.app.api.file.service.FileUrlBuilder
-
Builds a public URL for accessing the file.
- buildLink(String, String, String) - Method in interface com.example.blogs.app.storage.FileLinkBuilder
-
Builds a complete URL for accessing a file.
- buildLink(String, String, String) - Method in class com.example.blogs.app.storage.S3BucketLinkBuilderLocal
-
Builds a complete S3 URL for accessing a file.
- buildLink(String, String, String) - Method in class com.example.blogs.app.storage.S3BucketLinkBuilderProd
-
Builds a complete S3 URL for accessing a file.
C
- cleanUpExpiredTokens() - Method in interface com.example.blogs.app.api.auth.service.RevokedTokenCleaner
-
Deletes all revoked tokens with expiration timestamps before the current time.
- cleanUpExpiredTokens() - Method in class com.example.blogs.app.api.auth.service.RevokedTokenCleanerImpl
-
Executes the cleanup operation by deleting all expired revoked tokens.
- CloudWatchAppender - Class in com.example.blogs.app.logging
-
Production-grade CloudWatch Logs appender for Log4j2.
- CloudWatchAppender(String, Filter, Layout<? extends Serializable>, boolean, Property[], CloudWatchLogsClient, String, String, boolean, boolean) - Constructor for class com.example.blogs.app.logging.CloudWatchAppender
-
Constructs a CloudWatch appender with the specified configuration and resources.
- com.example.blogs.app - package com.example.blogs.app
- com.example.blogs.app.api.auth.controller - package com.example.blogs.app.api.auth.controller
- com.example.blogs.app.api.auth.docs - package com.example.blogs.app.api.auth.docs
- com.example.blogs.app.api.auth.dto - package com.example.blogs.app.api.auth.dto
- com.example.blogs.app.api.auth.entity - package com.example.blogs.app.api.auth.entity
- com.example.blogs.app.api.auth.exception - package com.example.blogs.app.api.auth.exception
- com.example.blogs.app.api.auth.repository - package com.example.blogs.app.api.auth.repository
- com.example.blogs.app.api.auth.repository.adapter - package com.example.blogs.app.api.auth.repository.adapter
- com.example.blogs.app.api.auth.service - package com.example.blogs.app.api.auth.service
- com.example.blogs.app.api.comment.controller - package com.example.blogs.app.api.comment.controller
- com.example.blogs.app.api.comment.docs - package com.example.blogs.app.api.comment.docs
- com.example.blogs.app.api.comment.dto - package com.example.blogs.app.api.comment.dto
- com.example.blogs.app.api.comment.entity - package com.example.blogs.app.api.comment.entity
- com.example.blogs.app.api.comment.exception - package com.example.blogs.app.api.comment.exception
- com.example.blogs.app.api.comment.mapper - package com.example.blogs.app.api.comment.mapper
- com.example.blogs.app.api.comment.repository - package com.example.blogs.app.api.comment.repository
- com.example.blogs.app.api.comment.repository.adapter - package com.example.blogs.app.api.comment.repository.adapter
- com.example.blogs.app.api.comment.security - package com.example.blogs.app.api.comment.security
- com.example.blogs.app.api.comment.service - package com.example.blogs.app.api.comment.service
- com.example.blogs.app.api.file.entity - package com.example.blogs.app.api.file.entity
- com.example.blogs.app.api.file.exception - package com.example.blogs.app.api.file.exception
- com.example.blogs.app.api.file.repository - package com.example.blogs.app.api.file.repository
- com.example.blogs.app.api.file.repository.adapter - package com.example.blogs.app.api.file.repository.adapter
- com.example.blogs.app.api.file.service - package com.example.blogs.app.api.file.service
- com.example.blogs.app.api.post.controller - package com.example.blogs.app.api.post.controller
- com.example.blogs.app.api.post.docs - package com.example.blogs.app.api.post.docs
- com.example.blogs.app.api.post.dto - package com.example.blogs.app.api.post.dto
- com.example.blogs.app.api.post.entity - package com.example.blogs.app.api.post.entity
- com.example.blogs.app.api.post.exception - package com.example.blogs.app.api.post.exception
- com.example.blogs.app.api.post.mapper - package com.example.blogs.app.api.post.mapper
- com.example.blogs.app.api.post.repository - package com.example.blogs.app.api.post.repository
- com.example.blogs.app.api.post.repository.adapter - package com.example.blogs.app.api.post.repository.adapter
- com.example.blogs.app.api.post.security - package com.example.blogs.app.api.post.security
- com.example.blogs.app.api.post.service - package com.example.blogs.app.api.post.service
- com.example.blogs.app.api.reaction.controller - package com.example.blogs.app.api.reaction.controller
- com.example.blogs.app.api.reaction.docs - package com.example.blogs.app.api.reaction.docs
- com.example.blogs.app.api.reaction.dto - package com.example.blogs.app.api.reaction.dto
- com.example.blogs.app.api.reaction.entity - package com.example.blogs.app.api.reaction.entity
- com.example.blogs.app.api.reaction.exception - package com.example.blogs.app.api.reaction.exception
- com.example.blogs.app.api.reaction.mapper - package com.example.blogs.app.api.reaction.mapper
- com.example.blogs.app.api.reaction.repository - package com.example.blogs.app.api.reaction.repository
- com.example.blogs.app.api.reaction.repository.adapter - package com.example.blogs.app.api.reaction.repository.adapter
- com.example.blogs.app.api.reaction.service - package com.example.blogs.app.api.reaction.service
- com.example.blogs.app.api.user.controller - package com.example.blogs.app.api.user.controller
- com.example.blogs.app.api.user.docs - package com.example.blogs.app.api.user.docs
- com.example.blogs.app.api.user.dto - package com.example.blogs.app.api.user.dto
- com.example.blogs.app.api.user.entity - package com.example.blogs.app.api.user.entity
- com.example.blogs.app.api.user.exception - package com.example.blogs.app.api.user.exception
- com.example.blogs.app.api.user.mapper - package com.example.blogs.app.api.user.mapper
- com.example.blogs.app.api.user.repository - package com.example.blogs.app.api.user.repository
- com.example.blogs.app.api.user.repository.adapter - package com.example.blogs.app.api.user.repository.adapter
- com.example.blogs.app.api.user.service - package com.example.blogs.app.api.user.service
- com.example.blogs.app.config - package com.example.blogs.app.config
- com.example.blogs.app.exception - package com.example.blogs.app.exception
- com.example.blogs.app.logging - package com.example.blogs.app.logging
- com.example.blogs.app.security - package com.example.blogs.app.security
- com.example.blogs.app.storage - package com.example.blogs.app.storage
- com.example.blogs.app.storage.exception - package com.example.blogs.app.storage.exception
- com.example.blogs.app.util - package com.example.blogs.app.util
- com.example.blogs.app.validation - package com.example.blogs.app.validation
- commence(HttpServletRequest, HttpServletResponse, AuthenticationException) - Method in class com.example.blogs.app.exception.JwtAuthenticationEntryPoint
-
Handles authentication exceptions by determining the error type and writing an appropriate response.
- CommentController - Class in com.example.blogs.app.api.comment.controller
-
Handles HTTP requests for comment-related operations.
- CommentController() - Constructor for class com.example.blogs.app.api.comment.controller.CommentController
- CommentControllerDocs - Class in com.example.blogs.app.api.comment.docs
-
OpenAPI documentation annotations for comment controller endpoints.
- CommentControllerDocs() - Constructor for class com.example.blogs.app.api.comment.docs.CommentControllerDocs
- CommentControllerDocs.CreateComment - Annotation Interface in com.example.blogs.app.api.comment.docs
-
Meta-annotation combining all OpenAPI documentation for the create comment endpoint.
- CommentControllerDocs.DeleteCommentById - Annotation Interface in com.example.blogs.app.api.comment.docs
-
Meta-annotation combining all OpenAPI documentation for the delete comment endpoint.
- CommentControllerDocs.UpdateCommentById - Annotation Interface in com.example.blogs.app.api.comment.docs
-
Meta-annotation combining all OpenAPI documentation for the update comment endpoint.
- CommentDTO - Record Class in com.example.blogs.app.api.comment.dto
-
Data transfer object representing a comment.
- CommentDTO(Long, String, Long, Long, LocalDateTime, LocalDateTime, boolean) - Constructor for record class com.example.blogs.app.api.comment.dto.CommentDTO
-
Creates an instance of a
CommentDTOrecord class. - CommentEntity - Class in com.example.blogs.app.api.comment.entity
-
Entity representing a comment on a blog post.
- CommentEntity() - Constructor for class com.example.blogs.app.api.comment.entity.CommentEntity
- CommentMapper - Interface in com.example.blogs.app.api.comment.mapper
-
Maps between comment entities and DTOs using MapStruct.
- CommentNotFoundException - Exception Class in com.example.blogs.app.api.comment.exception
-
Exception thrown when a requested comment is not found.
- CommentNotFoundException(Exception) - Constructor for exception class com.example.blogs.app.api.comment.exception.CommentNotFoundException
-
Constructs a new exception with a default message and cause.
- CommentRepository - Interface in com.example.blogs.app.api.comment.repository
-
JPA repository for managing comment persistence operations.
- CommentRepositoryAdapter - Interface in com.example.blogs.app.api.comment.repository.adapter
-
Adapter for comment repository operations with exception handling.
- CommentRepositoryAdapterImpl - Class in com.example.blogs.app.api.comment.repository.adapter
-
Wraps comment repository operations with exception translation for consistent error handling.
- CommentRepositoryAdapterImpl() - Constructor for class com.example.blogs.app.api.comment.repository.adapter.CommentRepositoryAdapterImpl
- comments() - Method in record class com.example.blogs.app.api.post.dto.PostDTO
-
Returns the value of the
commentsrecord component. - CommentSecurity - Class in com.example.blogs.app.api.comment.security
-
Verifies comment ownership by coordinating with the comment repository and security context.
- CommentSecurity() - Constructor for class com.example.blogs.app.api.comment.security.CommentSecurity
- CommentService - Interface in com.example.blogs.app.api.comment.service
-
Service for comment-related business operations.
- CommentServiceImpl - Class in com.example.blogs.app.api.comment.service
-
Orchestrates comment retrieval operations by coordinating with the comment repository adapter.
- CommentServiceImpl() - Constructor for class com.example.blogs.app.api.comment.service.CommentServiceImpl
- CommentWriteRequestDTO - Record Class in com.example.blogs.app.api.comment.dto
-
Data transfer object for creating or updating a comment.
- CommentWriteRequestDTO(String) - Constructor for record class com.example.blogs.app.api.comment.dto.CommentWriteRequestDTO
-
Creates an instance of a
CommentWriteRequestDTOrecord class. - configureTasks(ScheduledTaskRegistrar) - Method in class com.example.blogs.app.api.auth.service.RevokedTokenCleanerImpl
-
Configures the scheduled task with a dynamic cron trigger.
- containsUniqueViolation(Throwable, String) - Method in class com.example.blogs.app.util.SqlExceptionUtils
-
Checks if an exception chain contains a PostgreSQL unique constraint violation for a specific column.
- content() - Method in record class com.example.blogs.app.api.comment.dto.CommentDTO
-
Returns the value of the
contentrecord component. - content() - Method in record class com.example.blogs.app.api.comment.dto.CommentWriteRequestDTO
-
Returns the value of the
contentrecord component. - content() - Method in record class com.example.blogs.app.api.post.dto.PostCommentSummaryDTO
-
Returns the value of the
contentrecord component. - content() - Method in record class com.example.blogs.app.api.post.dto.PostCreateRequestDTO
-
Returns the value of the
contentrecord component. - content() - Method in record class com.example.blogs.app.api.post.dto.PostCreateResponseDTO
-
Returns the value of the
contentrecord component. - content() - Method in record class com.example.blogs.app.api.post.dto.PostDTO
-
Returns the value of the
contentrecord component. - content() - Method in record class com.example.blogs.app.api.post.dto.PostUpdateRequestDTO
-
Returns the value of the
contentrecord component. - content() - Method in record class com.example.blogs.app.api.post.dto.PostUpdateResponseDTO
-
Returns the value of the
contentrecord component. - convert(Jwt) - Method in class com.example.blogs.app.security.JWTToUserPrincipalConverter
-
Converts a JWT to a UserPrincipal authentication token.
- createAppender(String, String, String, String, String, String, String, boolean, boolean, Layout<? extends Serializable>, Filter) - Static method in class com.example.blogs.app.logging.CloudWatchAppender
-
Factory method for creating CloudWatchAppender instances from Log4j2 configuration.
- createClaims(UserEntity, String) - Method in interface com.example.blogs.app.api.auth.service.TokenPairGenerator
-
Creates JWT claims map from user entity data with token type.
- createClaims(UserEntity, String) - Method in class com.example.blogs.app.api.auth.service.TokenPairGeneratorImpl
-
Creates JWT claims map from user entity data with token type.
- createComment(UserPrincipal, Long, CommentWriteRequestDTO) - Method in class com.example.blogs.app.api.comment.controller.CommentController
-
Creates a new comment on a specific post.
- createComment(Long, Long, CommentWriteRequestDTO) - Method in interface com.example.blogs.app.api.comment.service.CommentService
-
Creates a new comment on a specific post.
- createComment(Long, Long, CommentWriteRequestDTO) - Method in class com.example.blogs.app.api.comment.service.CommentServiceImpl
-
Creates a new comment on a specific post.
- createdAt() - Method in record class com.example.blogs.app.api.comment.dto.CommentDTO
-
Returns the value of the
createdAtrecord component. - createdAt() - Method in record class com.example.blogs.app.api.post.dto.PostCommentSummaryDTO
-
Returns the value of the
createdAtrecord component. - createdAt() - Method in record class com.example.blogs.app.api.post.dto.PostCreateResponseDTO
-
Returns the value of the
createdAtrecord component. - createdAt() - Method in record class com.example.blogs.app.api.post.dto.PostDTO
-
Returns the value of the
createdAtrecord component. - createdAt() - Method in record class com.example.blogs.app.api.user.dto.UserPostSummaryDTO
-
Returns the value of the
createdAtrecord component. - createPost(long, PostCreateRequestDTO, MultipartFile) - Method in interface com.example.blogs.app.api.post.service.PostService
-
Creates a new post with a preview image and generates a unique slug.
- createPost(long, PostCreateRequestDTO, MultipartFile) - Method in class com.example.blogs.app.api.post.service.PostServiceImpl
-
Creates a new post with a preview image and generates a unique slug.
- createPost(UserPrincipal, PostCreateRequestDTO, MultipartFile) - Method in class com.example.blogs.app.api.post.controller.PostController
-
Creates a new post with a preview image.
- createUser(CreateUserCommand) - Method in interface com.example.blogs.app.api.user.service.UserService
-
Creates a new user in the system.
- createUser(CreateUserCommand) - Method in class com.example.blogs.app.api.user.service.UserServiceImpl
- CreateUserCommand - Record Class in com.example.blogs.app.api.user.dto
-
Command object for creating a new user with validated and processed data.
- CreateUserCommand(String, String, String) - Constructor for record class com.example.blogs.app.api.user.dto.CreateUserCommand
-
Creates an instance of a
CreateUserCommandrecord class.
D
- delete(FileEntity) - Method in interface com.example.blogs.app.api.file.service.FileService
-
Deletes a file from storage and removes its metadata.
- delete(FileEntity) - Method in class com.example.blogs.app.api.file.service.FileServiceImpl
-
Deletes a file from S3 storage and removes its metadata from the repository.
- delete(String, String, String) - Method in interface com.example.blogs.app.storage.S3BucketService
-
Deletes a file from the S3 bucket.
- delete(String, String, String) - Method in class com.example.blogs.app.storage.S3BucketServiceImpl
-
Deletes a file from the S3 bucket by constructing its key and sending a delete request.
- deleteByExpiresAtBefore(LocalDateTime) - Method in interface com.example.blogs.app.api.auth.repository.RevokedTokenRepository
-
Deletes all revoked tokens that expired before the specified timestamp.
- deleteById(Long) - Method in interface com.example.blogs.app.api.comment.repository.adapter.CommentRepositoryAdapter
-
Deletes a comment by its ID with exception translation.
- deleteById(Long) - Method in class com.example.blogs.app.api.comment.repository.adapter.CommentRepositoryAdapterImpl
-
Deletes a comment by its ID with exception translation.
- deleteById(Long) - Method in interface com.example.blogs.app.api.file.repository.adapter.FileRepositoryAdapter
-
Deletes file metadata by its ID.
- deleteById(Long) - Method in class com.example.blogs.app.api.file.repository.adapter.FileRepositoryAdapterImpl
-
Deletes file metadata by its ID with exception translation.
- deleteById(Long) - Method in interface com.example.blogs.app.api.post.repository.adapter.PostRepositoryAdapter
-
Deletes a post by its ID with exception translation.
- deleteById(Long) - Method in class com.example.blogs.app.api.post.repository.adapter.PostRepositoryAdapterImpl
-
Deletes a post by its ID with exception translation.
- deleteByIdReturningCount(Long) - Method in interface com.example.blogs.app.api.post.repository.PostRepository
-
Deletes a post by its ID and returns the deleted post's ID.
- deleteCommentById(Long) - Method in class com.example.blogs.app.api.comment.controller.CommentController
-
Deletes a comment by its ID.
- deleteCommentById(Long) - Method in interface com.example.blogs.app.api.comment.service.CommentService
-
Deletes a comment by its ID.
- deleteCommentById(Long) - Method in class com.example.blogs.app.api.comment.service.CommentServiceImpl
-
Deletes a comment by its ID.
- deleteExpiredTokens(LocalDateTime) - Method in interface com.example.blogs.app.api.auth.repository.adapter.RevokedTokenRepositoryAdapter
-
Removes all revoked tokens that expired before the specified timestamp.
- deleteExpiredTokens(LocalDateTime) - Method in class com.example.blogs.app.api.auth.repository.adapter.RevokedTokenRepositoryAdapterImpl
- deletePostById(Long) - Method in class com.example.blogs.app.api.post.controller.PostController
-
Deletes a post by its ID.
- deletePostById(Long) - Method in interface com.example.blogs.app.api.post.service.PostService
-
Deletes a post by its ID.
- deletePostById(Long) - Method in class com.example.blogs.app.api.post.service.PostServiceImpl
-
Deletes a post by its ID.
- description() - Method in record class com.example.blogs.app.api.post.dto.PostCreateRequestDTO
-
Returns the value of the
descriptionrecord component. - description() - Method in record class com.example.blogs.app.api.post.dto.PostCreateResponseDTO
-
Returns the value of the
descriptionrecord component. - description() - Method in record class com.example.blogs.app.api.post.dto.PostUpdateRequestDTO
-
Returns the value of the
descriptionrecord component. - description() - Method in record class com.example.blogs.app.api.post.dto.PostUpdateResponseDTO
-
Returns the value of the
descriptionrecord component. - description() - Method in record class com.example.blogs.app.api.user.dto.UserPostSummaryDTO
-
Returns the value of the
descriptionrecord component. - detectContentType(String) - Method in class com.example.blogs.app.util.FileUtils
-
Detects the MIME content type based on file extension.
- DISLIKE - Enum constant in enum class com.example.blogs.app.api.reaction.entity.ReactionType
-
Negative reaction indicating disapproval or disagreement.
- doFilterInternal(HttpServletRequest, HttpServletResponse, FilterChain) - Method in class com.example.blogs.app.logging.MdcPopulatingFilter
-
Extracts authenticated user ID from security context and populates MDC for use in log messages.
- doFilterInternal(HttpServletRequest, HttpServletResponse, FilterChain) - Method in class com.example.blogs.app.logging.RequestLoggingFilter
-
Wraps each request with a unique request ID, measures execution time, and logs completion details.
- doFilterInternal(HttpServletRequest, HttpServletResponse, FilterChain) - Method in class com.example.blogs.app.security.JwtExceptionFilter
-
Filters requests and catches JWT exceptions to write standardized error responses.
E
- edited() - Method in record class com.example.blogs.app.api.comment.dto.CommentDTO
-
Returns the value of the
editedrecord component. - edited() - Method in record class com.example.blogs.app.api.post.dto.PostCommentSummaryDTO
-
Returns the value of the
editedrecord component. - email() - Method in record class com.example.blogs.app.api.auth.dto.RegisterRequest
-
Returns the value of the
emailrecord component. - email() - Method in record class com.example.blogs.app.api.user.dto.CreateUserCommand
-
Returns the value of the
emailrecord component. - email() - Method in record class com.example.blogs.app.api.user.dto.UpdateUserRequestDTO
-
Returns the value of the
emailrecord component. - email() - Method in record class com.example.blogs.app.security.UserPrincipal
-
Returns the value of the
emailrecord component. - EmailTakenException - Exception Class in com.example.blogs.app.api.user.exception
-
Thrown when attempting to create a user with an already-existing email address.
- EmailTakenException(Exception) - Constructor for exception class com.example.blogs.app.api.user.exception.EmailTakenException
-
Constructs a new EmailTakenException with a default error message.
- equals(Object) - Method in record class com.example.blogs.app.api.auth.dto.AccessTokenResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.example.blogs.app.api.auth.dto.LoginRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.example.blogs.app.api.auth.dto.LogoutRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.example.blogs.app.api.auth.dto.RefreshTokenRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.example.blogs.app.api.auth.dto.RegisterRequest
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.example.blogs.app.api.auth.dto.TokenPair
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.example.blogs.app.api.comment.dto.CommentDTO
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.example.blogs.app.api.comment.dto.CommentWriteRequestDTO
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.example.blogs.app.api.post.dto.PostCommentSummaryDTO
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.example.blogs.app.api.post.dto.PostCreateRequestDTO
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.example.blogs.app.api.post.dto.PostCreateResponseDTO
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.example.blogs.app.api.post.dto.PostDTO
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.example.blogs.app.api.post.dto.PostUpdateRequestDTO
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.example.blogs.app.api.post.dto.PostUpdateResponseDTO
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.example.blogs.app.api.post.dto.PostUserSummaryDTO
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.example.blogs.app.api.reaction.dto.ReactionDTO
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.example.blogs.app.api.reaction.dto.ReactionSetRequestDTO
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.example.blogs.app.api.user.dto.CreateUserCommand
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.example.blogs.app.api.user.dto.UpdateUserRequestDTO
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.example.blogs.app.api.user.dto.UpdateUserResponseDTO
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.example.blogs.app.api.user.dto.UserDTO
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.example.blogs.app.api.user.dto.UserPostSummaryDTO
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.example.blogs.app.exception.ErrorResponse
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in record class com.example.blogs.app.security.UserPrincipal
-
Indicates whether some other object is "equal to" this one.
- equals(Object) - Method in class com.example.blogs.app.security.UserPrincipalAuthenticationToken
- equals(Object) - Method in record class com.example.blogs.app.util.FileNameParts
-
Indicates whether some other object is "equal to" this one.
- error() - Method in record class com.example.blogs.app.exception.ErrorResponse
-
Returns the value of the
errorrecord component. - ErrorResponse - Record Class in com.example.blogs.app.exception
-
Standardized error response structure for all API exceptions.
- ErrorResponse(LocalDateTime, int, String, String, String, List<String>) - Constructor for record class com.example.blogs.app.exception.ErrorResponse
-
Creates an instance of a
ErrorResponserecord class. - ErrorResponseWriter - Class in com.example.blogs.app.exception
-
Writes standardized error responses to HTTP servlet responses.
- ErrorResponseWriter() - Constructor for class com.example.blogs.app.exception.ErrorResponseWriter
- errors() - Method in record class com.example.blogs.app.exception.ErrorResponse
-
Returns the value of the
errorsrecord component. - ExceptionHttpStatusMapper - Class in com.example.blogs.app.exception
-
Maps domain-specific exceptions to appropriate HTTP status codes.
- ExceptionHttpStatusMapper() - Constructor for class com.example.blogs.app.exception.ExceptionHttpStatusMapper
- existsById(long) - Method in interface com.example.blogs.app.api.post.repository.adapter.PostRepositoryAdapter
-
Checks if a post exists by its ID.
- existsById(long) - Method in class com.example.blogs.app.api.post.repository.adapter.PostRepositoryAdapterImpl
-
Checks if a post exists by its ID.
- existsById(long) - Method in interface com.example.blogs.app.api.post.repository.PostRepository
-
Checks if a post exists by its ID.
- existsById(Long) - Method in interface com.example.blogs.app.api.comment.repository.adapter.CommentRepositoryAdapter
-
Checks if a comment exists with the specified ID.
- existsById(Long) - Method in class com.example.blogs.app.api.comment.repository.adapter.CommentRepositoryAdapterImpl
-
Checks if a comment exists with the specified ID.
- existsByIdAndAuthorId(long, long) - Method in interface com.example.blogs.app.api.post.repository.adapter.PostRepositoryAdapter
-
Checks if a post exists by its ID and author ID.
- existsByIdAndAuthorId(long, long) - Method in class com.example.blogs.app.api.post.repository.adapter.PostRepositoryAdapterImpl
-
Checks if a post exists by its ID and author ID.
- existsByIdAndAuthorId(long, long) - Method in interface com.example.blogs.app.api.post.repository.PostRepository
-
Checks if a post exists by its ID and author ID.
- existsByIdAndAuthorId(Long, Long) - Method in interface com.example.blogs.app.api.comment.repository.adapter.CommentRepositoryAdapter
-
Checks if a comment exists with the specified ID and author ID.
- existsByIdAndAuthorId(Long, Long) - Method in class com.example.blogs.app.api.comment.repository.adapter.CommentRepositoryAdapterImpl
-
Checks if a comment exists with the specified ID and author ID.
- existsByIdAndAuthorId(Long, Long) - Method in interface com.example.blogs.app.api.comment.repository.CommentRepository
-
Checks if a comment exists with the specified ID and author ID.
- existsByToken(String) - Method in interface com.example.blogs.app.api.auth.repository.RevokedTokenRepository
-
Checks if a token exists in the revoked tokens table.
- extension() - Method in record class com.example.blogs.app.util.FileNameParts
-
Returns the value of the
extensionrecord component. - extractFileNameParts(String) - Method in class com.example.blogs.app.util.FileUtils
-
Extracts the name and extension parts from a filename.
F
- FailedToCheckCommentExistenceException - Exception Class in com.example.blogs.app.api.comment.exception
-
Exception thrown when a comment existence check operation fails.
- FailedToCheckCommentExistenceException(Throwable) - Constructor for exception class com.example.blogs.app.api.comment.exception.FailedToCheckCommentExistenceException
-
Constructs a new exception with a default message and cause.
- FailedToCheckTokenRevokedException - Exception Class in com.example.blogs.app.api.auth.exception
-
Thrown when a database error occurs while checking if a token has been revoked.
- FailedToCheckTokenRevokedException(Exception) - Constructor for exception class com.example.blogs.app.api.auth.exception.FailedToCheckTokenRevokedException
-
Constructs a new FailedToCheckTokenRevokedException with the underlying cause.
- FailedToCleanRevokedTokensException - Exception Class in com.example.blogs.app.api.auth.exception
-
Thrown when a database error occurs during scheduled cleanup of expired revoked tokens.
- FailedToCleanRevokedTokensException(Exception) - Constructor for exception class com.example.blogs.app.api.auth.exception.FailedToCleanRevokedTokensException
-
Constructs a new FailedToCleanRevokedTokensException with the underlying cause.
- FailedToCreateCommentException - Exception Class in com.example.blogs.app.api.comment.exception
-
Exception thrown when a comment creation operation fails.
- FailedToCreateCommentException(Exception) - Constructor for exception class com.example.blogs.app.api.comment.exception.FailedToCreateCommentException
-
Constructs a new exception with a default message and cause.
- FailedToCreatePostException - Exception Class in com.example.blogs.app.api.post.exception
-
Exception thrown when post creation fails due to underlying service or repository errors.
- FailedToCreatePostException(Exception) - Constructor for exception class com.example.blogs.app.api.post.exception.FailedToCreatePostException
-
Constructs a new exception with the cause of the failure.
- FailedToCreateUserException - Exception Class in com.example.blogs.app.api.user.exception
-
Thrown when user creation fails for reasons other than uniqueness constraint violations.
- FailedToCreateUserException(Exception) - Constructor for exception class com.example.blogs.app.api.user.exception.FailedToCreateUserException
-
Constructs a new FailedToCreateUser exception with a default error message.
- FailedToDeleteCommentException - Exception Class in com.example.blogs.app.api.comment.exception
-
Exception thrown when a comment deletion operation fails.
- FailedToDeleteCommentException(Throwable) - Constructor for exception class com.example.blogs.app.api.comment.exception.FailedToDeleteCommentException
-
Constructs a new exception with a default message and cause.
- FailedToDeleteFileByIdException - Exception Class in com.example.blogs.app.api.file.exception
-
Thrown when deletion of file metadata by ID fails in the repository.
- FailedToDeleteFileByIdException(Exception) - Constructor for exception class com.example.blogs.app.api.file.exception.FailedToDeleteFileByIdException
-
Constructs a new exception with the specified cause.
- FailedToDeleteFileException - Exception Class in com.example.blogs.app.api.file.exception
-
Thrown when deletion of a file from S3 storage fails.
- FailedToDeleteFileException(Exception) - Constructor for exception class com.example.blogs.app.api.file.exception.FailedToDeleteFileException
-
Constructs a new exception with the specified cause.
- FailedToDeletePostException - Exception Class in com.example.blogs.app.api.post.exception
-
Exception thrown when a post deletion operation fails due to database or system errors.
- FailedToDeletePostException(Exception) - Constructor for exception class com.example.blogs.app.api.post.exception.FailedToDeletePostException
-
Constructs a new FailedToDeletePostException with a default message and underlying cause.
- FailedToFindCommentByIdException - Exception Class in com.example.blogs.app.api.comment.exception
-
Exception thrown when a comment lookup by ID operation fails.
- FailedToFindCommentByIdException(Exception) - Constructor for exception class com.example.blogs.app.api.comment.exception.FailedToFindCommentByIdException
-
Constructs a new exception with a default message and cause.
- FailedToFindCommentsByPostIdException - Exception Class in com.example.blogs.app.api.comment.exception
-
Exception thrown when comment retrieval by post ID fails due to a system error.
- FailedToFindCommentsByPostIdException(Exception) - Constructor for exception class com.example.blogs.app.api.comment.exception.FailedToFindCommentsByPostIdException
-
Constructs a new FailedToFindCommentsByPostIdException with a default message and underlying cause.
- FailedToFindPostByIdException - Exception Class in com.example.blogs.app.api.post.exception
-
Exception thrown when a post lookup by ID fails due to a repository error.
- FailedToFindPostByIdException(Exception) - Constructor for exception class com.example.blogs.app.api.post.exception.FailedToFindPostByIdException
-
Constructs a new exception wrapping the underlying repository error.
- FailedToFindPostBySlugException - Exception Class in com.example.blogs.app.api.post.exception
-
Exception thrown when post retrieval by slug fails due to a system error.
- FailedToFindPostBySlugException(Exception) - Constructor for exception class com.example.blogs.app.api.post.exception.FailedToFindPostBySlugException
-
Constructs a new FailedToFindPostBySlugException with a default message and underlying cause.
- FailedToFindPostsByAuthorIdException - Exception Class in com.example.blogs.app.api.post.exception
-
Thrown when the repository fails to retrieve posts by author ID.
- FailedToFindPostsByAuthorIdException(Exception) - Constructor for exception class com.example.blogs.app.api.post.exception.FailedToFindPostsByAuthorIdException
-
Constructs a new exception with the specified cause.
- FailedToFindReactionException - Exception Class in com.example.blogs.app.api.reaction.exception
-
Exception thrown when a reaction lookup operation fails.
- FailedToFindReactionException(Exception) - Constructor for exception class com.example.blogs.app.api.reaction.exception.FailedToFindReactionException
-
Constructs a new exception with a default message and cause.
- FailedToFindUserByIdException - Exception Class in com.example.blogs.app.api.user.exception
-
Thrown when user lookup by ID fails for database-related reasons.
- FailedToFindUserByIdException(Exception) - Constructor for exception class com.example.blogs.app.api.user.exception.FailedToFindUserByIdException
-
Constructs a new FailedToFindUserById exception with a default error message.
- FailedToFindUserException - Exception Class in com.example.blogs.app.api.user.exception
-
Thrown when a database error occurs during user lookup operations.
- FailedToFindUserException(Exception) - Constructor for exception class com.example.blogs.app.api.user.exception.FailedToFindUserException
-
Constructs a new FailedToFindUserException with a default message.
- FailedToParseClaimsException - Exception Class in com.example.blogs.app.api.auth.exception
-
Thrown when JWT token claims cannot be parsed due to invalid format or signature.
- FailedToParseClaimsException(Exception) - Constructor for exception class com.example.blogs.app.api.auth.exception.FailedToParseClaimsException
-
Constructs a new FailedToParseClaims exception with a default message.
- FailedToRevokeTokenException - Exception Class in com.example.blogs.app.api.auth.exception
-
Thrown when a database error occurs while attempting to persist a revoked token.
- FailedToRevokeTokenException(Exception) - Constructor for exception class com.example.blogs.app.api.auth.exception.FailedToRevokeTokenException
-
Constructs a new FailedToRevokeTokenException with a default message.
- FailedToRollbackS3FileException - Exception Class in com.example.blogs.app.api.post.exception
-
Thrown when automatic rollback cleanup of an S3 file upload fails during transaction rollback.
- FailedToRollbackS3FileException(Exception) - Constructor for exception class com.example.blogs.app.api.post.exception.FailedToRollbackS3FileException
-
Constructs a new exception with the specified cause.
- FailedToSaveFileException - Exception Class in com.example.blogs.app.api.file.exception
-
Exception thrown when saving a file entity to the repository fails.
- FailedToSaveFileException(Exception) - Constructor for exception class com.example.blogs.app.api.file.exception.FailedToSaveFileException
-
Constructs a new exception with the cause of the failure.
- FailedToSavePostException - Exception Class in com.example.blogs.app.api.post.exception
-
Exception thrown when saving a post to the repository fails.
- FailedToSavePostException(Exception) - Constructor for exception class com.example.blogs.app.api.post.exception.FailedToSavePostException
-
Constructs a new exception with the cause of the failure.
- FailedToSaveReactionException - Exception Class in com.example.blogs.app.api.reaction.exception
-
Exception thrown when a reaction save operation fails.
- FailedToSaveReactionException(Exception) - Constructor for exception class com.example.blogs.app.api.reaction.exception.FailedToSaveReactionException
-
Constructs a new exception with a default message and cause.
- FailedToStoreFileException - Exception Class in com.example.blogs.app.storage.exception
-
Exception thrown when storing a file to S3 storage fails.
- FailedToStoreFileException(Throwable) - Constructor for exception class com.example.blogs.app.storage.exception.FailedToStoreFileException
-
Constructs a new exception with the cause of the failure.
- FailedToUpdateCommentException - Exception Class in com.example.blogs.app.api.comment.exception
-
Exception thrown when a comment update operation fails.
- FailedToUpdateCommentException(Exception) - Constructor for exception class com.example.blogs.app.api.comment.exception.FailedToUpdateCommentException
-
Constructs a new exception with a default message and cause.
- FailedToUpdatePostException - Exception Class in com.example.blogs.app.api.post.exception
-
Exception thrown when a post update operation fails due to a repository error.
- FailedToUpdatePostException(Exception) - Constructor for exception class com.example.blogs.app.api.post.exception.FailedToUpdatePostException
-
Constructs a new exception wrapping the underlying repository error.
- FailedToUpdateUserException - Exception Class in com.example.blogs.app.api.user.exception
-
Thrown when user profile update fails for reasons other than uniqueness constraint violations.
- FailedToUpdateUserException(Exception) - Constructor for exception class com.example.blogs.app.api.user.exception.FailedToUpdateUserException
-
Constructs a new FailedToUpdateUser exception with a default error message.
- FailedToUploadFileException - Exception Class in com.example.blogs.app.api.file.exception
-
Exception thrown when uploading a file to storage fails.
- FailedToUploadFileException(Exception) - Constructor for exception class com.example.blogs.app.api.file.exception.FailedToUploadFileException
-
Constructs a new exception with the cause of the failure.
- fields() - Element in annotation interface com.example.blogs.app.validation.AtLeastOneField
-
The names of the fields to validate for at least one non-blank value.
- FileEntity - Class in com.example.blogs.app.api.file.entity
-
Represents a file entity with metadata including file path, name, extension, and unique identifier.
- FileEntity() - Constructor for class com.example.blogs.app.api.file.entity.FileEntity
- FileLinkBuilder - Interface in com.example.blogs.app.storage
-
Interface for building file access links from storage metadata.
- FileNameParts - Record Class in com.example.blogs.app.util
-
Record holding the separated name and extension components of a filename.
- FileNameParts(String, String) - Constructor for record class com.example.blogs.app.util.FileNameParts
-
Creates an instance of a
FileNamePartsrecord class. - FileRepository - Interface in com.example.blogs.app.api.file.repository
-
Spring Data JPA repository for file entity persistence operations.
- FileRepositoryAdapter - Interface in com.example.blogs.app.api.file.repository.adapter
-
Adapter for file repository operations with exception handling.
- FileRepositoryAdapterImpl - Class in com.example.blogs.app.api.file.repository.adapter
-
Wraps file repository operations with exception translation for consistent error handling.
- FileRepositoryAdapterImpl() - Constructor for class com.example.blogs.app.api.file.repository.adapter.FileRepositoryAdapterImpl
- FileService - Interface in com.example.blogs.app.api.file.service
-
Service for file upload operations and metadata management.
- FileServiceImpl - Class in com.example.blogs.app.api.file.service
-
Orchestrates file upload operations by coordinating storage upload and metadata persistence.
- FileServiceImpl() - Constructor for class com.example.blogs.app.api.file.service.FileServiceImpl
- FileUrlBuilder - Class in com.example.blogs.app.api.file.service
-
Builds public URLs for file entities by delegating to the file link builder.
- FileUrlBuilder() - Constructor for class com.example.blogs.app.api.file.service.FileUrlBuilder
- FileUtils - Class in com.example.blogs.app.util
-
Utility class for file-related operations including content type detection, filename parsing, and path normalization.
- FileUtils() - Constructor for class com.example.blogs.app.util.FileUtils
- filterChain(HttpSecurity) - Method in class com.example.blogs.app.config.SecurityConfig
-
Configures the security filter chain with JWT-based stateless authentication.
- findAllByPostId(Long) - Method in interface com.example.blogs.app.api.comment.repository.adapter.CommentRepositoryAdapter
-
Retrieves all comments associated with a specific post with exception translation.
- findAllByPostId(Long) - Method in class com.example.blogs.app.api.comment.repository.adapter.CommentRepositoryAdapterImpl
-
Retrieves all comments associated with a specific post with exception translation.
- findAllByPostId(Long) - Method in interface com.example.blogs.app.api.comment.repository.CommentRepository
-
Retrieves all comments associated with a specific post.
- findByAuthorId(long) - Method in interface com.example.blogs.app.api.post.repository.adapter.PostRepositoryAdapter
-
Retrieves all posts authored by the specified user with exception translation.
- findByAuthorId(long) - Method in class com.example.blogs.app.api.post.repository.adapter.PostRepositoryAdapterImpl
-
Retrieves all posts authored by the specified user with exception translation.
- findByAuthorId(long) - Method in interface com.example.blogs.app.api.post.repository.PostRepository
-
Retrieves all posts authored by the specified user.
- findById(long) - Method in interface com.example.blogs.app.api.post.repository.adapter.PostRepositoryAdapter
-
Retrieves a post by its ID with exception translation.
- findById(long) - Method in class com.example.blogs.app.api.post.repository.adapter.PostRepositoryAdapterImpl
-
Retrieves a post by its ID with exception translation.
- findById(long) - Method in interface com.example.blogs.app.api.post.repository.PostRepository
-
Retrieves a post by its ID.
- findById(Long) - Method in interface com.example.blogs.app.api.comment.repository.adapter.CommentRepositoryAdapter
-
Retrieves a comment by its ID with exception translation.
- findById(Long) - Method in class com.example.blogs.app.api.comment.repository.adapter.CommentRepositoryAdapterImpl
-
Retrieves a comment by its ID with exception translation.
- findById(Long) - Method in interface com.example.blogs.app.api.comment.repository.CommentRepository
- findById(Long) - Method in interface com.example.blogs.app.api.user.repository.adapter.UserRepositoryAdapter
-
Finds a user by their unique ID.
- findById(Long) - Method in class com.example.blogs.app.api.user.repository.adapter.UserRepositoryAdapterImpl
- findByPostIdAndUserId(Long, Long) - Method in interface com.example.blogs.app.api.reaction.repository.adapter.ReactionRepositoryAdapter
-
Finds a reaction by post ID and user ID with exception translation.
- findByPostIdAndUserId(Long, Long) - Method in class com.example.blogs.app.api.reaction.repository.adapter.ReactionRepositoryAdapterImpl
-
Finds a reaction by post ID and user ID with exception translation.
- findByPostIdAndUserId(Long, Long) - Method in interface com.example.blogs.app.api.reaction.repository.ReactionRepository
-
Finds a reaction by post ID and user ID.
- findBySlug(String) - Method in interface com.example.blogs.app.api.post.repository.adapter.PostRepositoryAdapter
-
Retrieves a post by its unique slug identifier with exception translation.
- findBySlug(String) - Method in class com.example.blogs.app.api.post.repository.adapter.PostRepositoryAdapterImpl
-
Retrieves a post by its unique slug identifier with exception translation.
- findBySlug(String) - Method in interface com.example.blogs.app.api.post.repository.PostRepository
-
Retrieves a post by its unique slug identifier.
- findByUsername(String) - Method in interface com.example.blogs.app.api.user.repository.adapter.UserRepositoryAdapter
-
Finds a user by username.
- findByUsername(String) - Method in class com.example.blogs.app.api.user.repository.adapter.UserRepositoryAdapterImpl
-
Finds a user by username and translates exceptions to domain-specific errors.
- findByUsername(String) - Method in interface com.example.blogs.app.api.user.repository.UserRepository
-
Finds a user by username.
- findByUsernameOrEmail(String) - Method in interface com.example.blogs.app.api.user.repository.adapter.UserRepositoryAdapter
-
Finds a user by username or email address.
- findByUsernameOrEmail(String) - Method in class com.example.blogs.app.api.user.repository.adapter.UserRepositoryAdapterImpl
- findUserByUsernameOrEmail(String, String) - Method in interface com.example.blogs.app.api.user.repository.UserRepository
-
Finds a user by username or email address.
G
- generate(String) - Method in interface com.example.blogs.app.api.post.service.SlugService
-
Generates a unique slug from a title with appended suffix.
- generate(String) - Method in class com.example.blogs.app.api.post.service.SlugServiceImpl
- generateAccessToken(String) - Method in interface com.example.blogs.app.api.auth.service.JWTService
-
Generates an access token with short-lived expiration.
- generateAccessToken(String) - Method in class com.example.blogs.app.api.auth.service.JWTServiceImpl
-
Generates an access token with short-lived expiration.
- generateAccessToken(String, Map<String, Object>) - Method in interface com.example.blogs.app.api.auth.service.JWTService
-
Generates an access token with short-lived expiration.
- generateAccessToken(String, Map<String, Object>) - Method in class com.example.blogs.app.api.auth.service.JWTServiceImpl
-
Generates an access token with short-lived expiration.
- generateJti() - Method in interface com.example.blogs.app.security.JtiGenerator
-
Generates a unique JWT Token Identifier.
- generateJti() - Method in class com.example.blogs.app.security.JtiGeneratorImpl
-
Generates a unique JWT Token Identifier using UUID.randomUUID().
- generateKey(String, String, String) - Method in class com.example.blogs.app.storage.S3KeyGenerator
-
Generates an S3 object key from file components.
- generateRefreshToken(String) - Method in interface com.example.blogs.app.api.auth.service.JWTService
-
Generates a refresh token with extended expiration.
- generateRefreshToken(String) - Method in class com.example.blogs.app.api.auth.service.JWTServiceImpl
-
Generates a refresh token with extended expiration.
- generateRefreshToken(String, Map<String, Object>) - Method in interface com.example.blogs.app.api.auth.service.JWTService
-
Generates a refresh token with extended expiration.
- generateRefreshToken(String, Map<String, Object>) - Method in class com.example.blogs.app.api.auth.service.JWTServiceImpl
-
Generates a refresh token with extended expiration.
- generateSuffix() - Method in interface com.example.blogs.app.api.post.service.SlugService
-
Generates a random unique suffix for slug uniqueness.
- generateSuffix() - Method in class com.example.blogs.app.api.post.service.SlugServiceImpl
- generateToken(String, Duration) - Method in interface com.example.blogs.app.api.auth.service.JWTHelper
-
Generates a token with no additional claims.
- generateToken(String, Duration) - Method in class com.example.blogs.app.api.auth.service.JWTHelperImpl
-
Generates a JWT token with no additional claims.
- generateToken(String, Map<String, Object>, Duration) - Method in interface com.example.blogs.app.api.auth.service.JWTHelper
-
Generates a token with custom claims.
- generateToken(String, Map<String, Object>, Duration) - Method in class com.example.blogs.app.api.auth.service.JWTHelperImpl
-
Generates a JWT token with custom claims and expiration.
- generateTokens(UserEntity) - Method in interface com.example.blogs.app.api.auth.service.TokenPairGenerator
-
Generates a complete token pair containing access and refresh tokens for the user.
- generateTokens(UserEntity) - Method in class com.example.blogs.app.api.auth.service.TokenPairGeneratorImpl
-
Generates a complete token pair containing access and refresh tokens for the user.
- getCommentsByPostId(Long) - Method in interface com.example.blogs.app.api.comment.service.CommentService
-
Retrieves all comments associated with a specific post.
- getCommentsByPostId(Long) - Method in class com.example.blogs.app.api.comment.service.CommentServiceImpl
-
Retrieves all comments associated with a specific post.
- getCredentials() - Method in class com.example.blogs.app.security.UserPrincipalAuthenticationToken
- getPostBySlug(String) - Method in class com.example.blogs.app.api.post.controller.PostController
-
Retrieves a post by its unique slug identifier.
- getPostBySlug(String) - Method in interface com.example.blogs.app.api.post.service.PostService
-
Retrieves a post by its unique slug identifier with associated comments.
- getPostBySlug(String) - Method in class com.example.blogs.app.api.post.service.PostServiceImpl
-
Retrieves a post by its unique slug identifier with associated comments.
- getPostsByUserId(long) - Method in interface com.example.blogs.app.api.post.service.PostService
-
Retrieves all posts created by the specified user.
- getPostsByUserId(long) - Method in class com.example.blogs.app.api.post.service.PostServiceImpl
-
Retrieves all posts created by the specified user.
- getPrincipal() - Method in class com.example.blogs.app.security.UserPrincipalAuthenticationToken
- getUserByUsername(String) - Method in class com.example.blogs.app.api.user.controller.UserController
-
Retrieves complete user profile including posts by username.
- getUserByUsername(String) - Method in interface com.example.blogs.app.api.user.service.UserService
-
Retrieves complete user profile with posts by username.
- getUserByUsername(String) - Method in class com.example.blogs.app.api.user.service.UserServiceImpl
-
Retrieves complete user profile with posts by username.
- getUserByUsernameOrEmail(String) - Method in interface com.example.blogs.app.api.user.service.UserService
-
Retrieves a user by username or email address.
- getUserByUsernameOrEmail(String) - Method in class com.example.blogs.app.api.user.service.UserServiceImpl
- GlobalExceptionHandler - Class in com.example.blogs.app.exception
-
Centralized exception handler that translates exceptions into standardized error responses.
- GlobalExceptionHandler() - Constructor for class com.example.blogs.app.exception.GlobalExceptionHandler
- groups() - Element in annotation interface com.example.blogs.app.validation.AtLeastOneField
-
Validation groups to which this constraint belongs.
H
- handleMethodValidationException(HandlerMethodValidationException, HttpServletRequest) - Method in class com.example.blogs.app.exception.GlobalExceptionHandler
-
Handles validation errors for method parameters and path variables.
- handleMissingRequestBodyException(HttpMessageNotReadableException, HttpServletRequest) - Method in class com.example.blogs.app.exception.GlobalExceptionHandler
-
Handles errors when HTTP message body cannot be read or parsed.
- handleRegularException(Exception, HttpServletRequest) - Method in class com.example.blogs.app.exception.GlobalExceptionHandler
-
Handles all domain-specific and unhandled exceptions.
- handleValidationException(MethodArgumentNotValidException, HttpServletRequest) - Method in class com.example.blogs.app.exception.GlobalExceptionHandler
-
Handles validation errors for request body fields annotated with Jakarta validation constraints.
- hash(String) - Method in interface com.example.blogs.app.security.Hasher
-
Generates a SHA-256 hash of the input string.
- hash(String) - Method in class com.example.blogs.app.security.HasherImpl
-
Hashes the input string using SHA-256 and returns hex-encoded result.
- hashCode() - Method in record class com.example.blogs.app.api.auth.dto.AccessTokenResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.example.blogs.app.api.auth.dto.LoginRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.example.blogs.app.api.auth.dto.LogoutRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.example.blogs.app.api.auth.dto.RefreshTokenRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.example.blogs.app.api.auth.dto.RegisterRequest
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.example.blogs.app.api.auth.dto.TokenPair
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.example.blogs.app.api.comment.dto.CommentDTO
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.example.blogs.app.api.comment.dto.CommentWriteRequestDTO
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.example.blogs.app.api.post.dto.PostCommentSummaryDTO
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.example.blogs.app.api.post.dto.PostCreateRequestDTO
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.example.blogs.app.api.post.dto.PostCreateResponseDTO
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.example.blogs.app.api.post.dto.PostDTO
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.example.blogs.app.api.post.dto.PostUpdateRequestDTO
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.example.blogs.app.api.post.dto.PostUpdateResponseDTO
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.example.blogs.app.api.post.dto.PostUserSummaryDTO
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.example.blogs.app.api.reaction.dto.ReactionDTO
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.example.blogs.app.api.reaction.dto.ReactionSetRequestDTO
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.example.blogs.app.api.user.dto.CreateUserCommand
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.example.blogs.app.api.user.dto.UpdateUserRequestDTO
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.example.blogs.app.api.user.dto.UpdateUserResponseDTO
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.example.blogs.app.api.user.dto.UserDTO
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.example.blogs.app.api.user.dto.UserPostSummaryDTO
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.example.blogs.app.exception.ErrorResponse
-
Returns a hash code value for this object.
- hashCode() - Method in record class com.example.blogs.app.security.UserPrincipal
-
Returns a hash code value for this object.
- hashCode() - Method in class com.example.blogs.app.security.UserPrincipalAuthenticationToken
- hashCode() - Method in record class com.example.blogs.app.util.FileNameParts
-
Returns a hash code value for this object.
- Hasher - Interface in com.example.blogs.app.security
-
Cryptographic hashing service for generating irreversible token digests.
- HasherImpl - Class in com.example.blogs.app.security
-
Hashes strings using SHA-256 algorithm and returns hexadecimal representation.
- HasherImpl() - Constructor for class com.example.blogs.app.security.HasherImpl
I
- id() - Method in record class com.example.blogs.app.api.comment.dto.CommentDTO
-
Returns the value of the
idrecord component. - id() - Method in record class com.example.blogs.app.api.post.dto.PostCommentSummaryDTO
-
Returns the value of the
idrecord component. - id() - Method in record class com.example.blogs.app.api.post.dto.PostCreateResponseDTO
-
Returns the value of the
idrecord component. - id() - Method in record class com.example.blogs.app.api.post.dto.PostDTO
-
Returns the value of the
idrecord component. - id() - Method in record class com.example.blogs.app.api.post.dto.PostUpdateResponseDTO
-
Returns the value of the
idrecord component. - id() - Method in record class com.example.blogs.app.api.post.dto.PostUserSummaryDTO
-
Returns the value of the
idrecord component. - id() - Method in record class com.example.blogs.app.api.reaction.dto.ReactionDTO
-
Returns the value of the
idrecord component. - id() - Method in record class com.example.blogs.app.security.UserPrincipal
-
Returns the value of the
idrecord component. - initialize(AtLeastOneField) - Method in class com.example.blogs.app.validation.AtLeastOneFieldValidator
- InvalidCredentialsException - Exception Class in com.example.blogs.app.api.auth.exception
-
Thrown when authentication credentials are invalid.
- InvalidCredentialsException(Exception) - Constructor for exception class com.example.blogs.app.api.auth.exception.InvalidCredentialsException
-
Constructs a new InvalidCredentialsException with a default message.
- isOwner(Long) - Method in class com.example.blogs.app.api.comment.security.CommentSecurity
-
Checks if the authenticated user is the owner of the specified comment.
- isOwner(Long) - Method in interface com.example.blogs.app.api.post.security.PostSecurity
-
Checks if the authenticated user is the owner of the specified post.
- isOwner(Long) - Method in class com.example.blogs.app.api.post.security.PostSecurityImpl
-
Checks if the authenticated user is the owner of the specified post.
- isTokenRevoked(String) - Method in interface com.example.blogs.app.api.auth.repository.adapter.RevokedTokenRepositoryAdapter
-
Checks if a token has been revoked.
- isTokenRevoked(String) - Method in class com.example.blogs.app.api.auth.repository.adapter.RevokedTokenRepositoryAdapterImpl
- isValid(Object, ConstraintValidatorContext) - Method in class com.example.blogs.app.validation.AtLeastOneFieldValidator
J
- JtiGenerator - Interface in com.example.blogs.app.security
-
Generates unique JWT Token Identifiers (JTI) for use as the subject claim in JWTs.
- JtiGeneratorImpl - Class in com.example.blogs.app.security
-
Default implementation of JtiGenerator that produces UUID-based token identifiers.
- JtiGeneratorImpl() - Constructor for class com.example.blogs.app.security.JtiGeneratorImpl
- JwtAuthenticationEntryPoint - Class in com.example.blogs.app.exception
-
Handles JWT authentication failures by writing appropriate error responses.
- JwtAuthenticationEntryPoint() - Constructor for class com.example.blogs.app.exception.JwtAuthenticationEntryPoint
- JWTConfig - Class in com.example.blogs.app.config
-
Configuration for JWT parsing and validation using JJWT library.
- JWTConfig(String) - Constructor for class com.example.blogs.app.config.JWTConfig
-
Constructs JWTConfig with HMAC SHA256 signing key from application properties.
- jwtDecoder() - Method in class com.example.blogs.app.config.JWTDecoderConfig
-
Creates a JWT decoder bean that validates and parses JWT tokens using JJWT library.
- JWTDecoderConfig - Class in com.example.blogs.app.config
-
Provides JWT decoder bean for validating and parsing JWT tokens in Spring Security OAuth2 resource server.
- JWTDecoderConfig(String) - Constructor for class com.example.blogs.app.config.JWTDecoderConfig
-
Constructs JwtDecoderConfig with the configured HMAC SHA256 secret key.
- JwtExceptionFilter - Class in com.example.blogs.app.security
-
Catches JWT exceptions thrown during request processing and writes error responses.
- JwtExceptionFilter() - Constructor for class com.example.blogs.app.security.JwtExceptionFilter
- JWTHelper - Interface in com.example.blogs.app.api.auth.service
-
Low-level utility for generating signed JWT tokens with custom claims and expiration.
- JWTHelperImpl - Class in com.example.blogs.app.api.auth.service
-
Generates JWT tokens using JJWT library with HMAC SHA256 signing.
- JWTHelperImpl(String, JwtParser) - Constructor for class com.example.blogs.app.api.auth.service.JWTHelperImpl
-
Constructs a JWTHelperImpl with the configured secret key.
- jwtParser() - Method in class com.example.blogs.app.config.JWTConfig
-
Creates a JWT parser bean configured with the signing key for token verification.
- JWTService - Interface in com.example.blogs.app.api.auth.service
-
Generates JWT tokens with preconfigured expiration times for access and refresh flows.
- JWTServiceImpl - Class in com.example.blogs.app.api.auth.service
-
Delegates to JWTHelper with application-configured expiration durations for access and refresh tokens.
- JWTServiceImpl(JWTHelper, Duration, Duration) - Constructor for class com.example.blogs.app.api.auth.service.JWTServiceImpl
-
Constructs a JWTServiceImpl with configured dependencies and token expiration durations.
- JWTToUserPrincipalConverter - Class in com.example.blogs.app.security
-
Converts JWT tokens to UserPrincipal authentication tokens for Spring Security context.
- JWTToUserPrincipalConverter() - Constructor for class com.example.blogs.app.security.JWTToUserPrincipalConverter
L
- LIKE - Enum constant in enum class com.example.blogs.app.api.reaction.entity.ReactionType
-
Positive reaction indicating approval or agreement.
- localS3Client(String, String, String, String) - Method in class com.example.blogs.app.config.S3Config
-
Creates an S3 client configured for local development with custom endpoint.
- login(LoginRequest) - Method in class com.example.blogs.app.api.auth.controller.AuthController
-
Authenticates a user and returns authentication tokens.
- login(LoginRequest) - Method in interface com.example.blogs.app.api.auth.service.AuthService
-
Authenticates a user and generates JWT tokens.
- login(LoginRequest) - Method in class com.example.blogs.app.api.auth.service.AuthServiceImpl
- LoginRequest - Record Class in com.example.blogs.app.api.auth.dto
-
Request payload for user authentication.
- LoginRequest(String, String) - Constructor for record class com.example.blogs.app.api.auth.dto.LoginRequest
-
Creates an instance of a
LoginRequestrecord class. - logout(LogoutRequest) - Method in class com.example.blogs.app.api.auth.controller.AuthController
-
Revokes a refresh token to log out the user.
- logout(LogoutRequest) - Method in interface com.example.blogs.app.api.auth.service.AuthService
-
Revokes a refresh token and invalidates all associated sessions.
- logout(LogoutRequest) - Method in class com.example.blogs.app.api.auth.service.AuthServiceImpl
- LogoutRequest - Record Class in com.example.blogs.app.api.auth.dto
-
Request payload for user logout containing the refresh token to revoke.
- LogoutRequest(String) - Constructor for record class com.example.blogs.app.api.auth.dto.LogoutRequest
-
Creates an instance of a
LogoutRequestrecord class.
M
- main(String[]) - Static method in class com.example.blogs.app.Application
-
Main method that bootstraps the Spring Boot application.
- MDCKeys - Class in com.example.blogs.app.logging
-
Defines standard MDC (Mapped Diagnostic Context) keys for consistent structured logging across the application.
- MdcPopulatingFilter - Class in com.example.blogs.app.logging
-
Populates MDC with authenticated user information for request-scoped logging context.
- MdcPopulatingFilter() - Constructor for class com.example.blogs.app.logging.MdcPopulatingFilter
- me(UserPrincipal) - Method in class com.example.blogs.app.api.auth.controller.AuthController
-
Returns the authenticated user's principal information.
- message() - Method in record class com.example.blogs.app.exception.ErrorResponse
-
Returns the value of the
messagerecord component. - message() - Element in annotation interface com.example.blogs.app.validation.AtLeastOneField
-
The validation error message to display when none of the specified fields have values.
- messageDigest() - Method in class com.example.blogs.app.config.SecurityConfig
-
Provides a SHA-256 MessageDigest bean for token hashing.
N
- name() - Method in record class com.example.blogs.app.util.FileNameParts
-
Returns the value of the
namerecord component. - normalizePath(String) - Method in class com.example.blogs.app.util.FileUtils
-
Normalizes a file path by removing leading slash if present.
O
- objectMapper() - Method in class com.example.blogs.app.config.ObjectMapperConfig
-
Creates a configured ObjectMapper with custom date/time formatting.
- ObjectMapperConfig - Class in com.example.blogs.app.config
-
Configures the Jackson ObjectMapper for JSON serialization and deserialization.
- ObjectMapperConfig() - Constructor for class com.example.blogs.app.config.ObjectMapperConfig
P
- parseClaims(String) - Method in interface com.example.blogs.app.api.auth.service.JWTHelper
-
Parses and extracts claims from a JWT token.
- parseClaims(String) - Method in class com.example.blogs.app.api.auth.service.JWTHelperImpl
-
Parses and extracts claims from a JWT token.
- parseClaims(String) - Method in interface com.example.blogs.app.api.auth.service.JWTService
- parseClaims(String) - Method in class com.example.blogs.app.api.auth.service.JWTServiceImpl
-
Parses and extracts claims from a JWT token.
- password() - Method in record class com.example.blogs.app.api.auth.dto.LoginRequest
-
Returns the value of the
passwordrecord component. - password() - Method in record class com.example.blogs.app.api.auth.dto.RegisterRequest
-
Returns the value of the
passwordrecord component. - password() - Method in record class com.example.blogs.app.api.user.dto.UpdateUserRequestDTO
-
Returns the value of the
passwordrecord component. - PasswordConfig - Class in com.example.blogs.app.config
-
Provides BCrypt password encoding for secure password hashing.
- PasswordConfig() - Constructor for class com.example.blogs.app.config.PasswordConfig
- passwordEncoder() - Method in class com.example.blogs.app.config.PasswordConfig
-
Creates a BCrypt password encoder bean for password hashing.
- passwordHash() - Method in record class com.example.blogs.app.api.user.dto.CreateUserCommand
-
Returns the value of the
passwordHashrecord component. - path() - Method in record class com.example.blogs.app.exception.ErrorResponse
-
Returns the value of the
pathrecord component. - payload() - Element in annotation interface com.example.blogs.app.validation.AtLeastOneField
-
Payload for clients to assign custom metadata to this constraint.
- PostCommentSummaryDTO - Record Class in com.example.blogs.app.api.post.dto
-
Data transfer object representing a summary of a comment on a post.
- PostCommentSummaryDTO(Long, String, PostUserSummaryDTO, LocalDateTime, LocalDateTime, boolean) - Constructor for record class com.example.blogs.app.api.post.dto.PostCommentSummaryDTO
-
Creates an instance of a
PostCommentSummaryDTOrecord class. - PostController - Class in com.example.blogs.app.api.post.controller
-
REST controller for managing post resources.
- PostController() - Constructor for class com.example.blogs.app.api.post.controller.PostController
- PostControllerDocs - Class in com.example.blogs.app.api.post.docs
-
OpenAPI documentation annotations for post controller endpoints.
- PostControllerDocs() - Constructor for class com.example.blogs.app.api.post.docs.PostControllerDocs
- PostControllerDocs.CreatePost - Annotation Interface in com.example.blogs.app.api.post.docs
-
Meta-annotation combining all OpenAPI documentation for the create post endpoint.
- PostControllerDocs.DeletePostById - Annotation Interface in com.example.blogs.app.api.post.docs
-
Meta-annotation combining all OpenAPI documentation for the delete post by ID endpoint.
- PostControllerDocs.GetPostBySlug - Annotation Interface in com.example.blogs.app.api.post.docs
-
Meta-annotation combining all OpenAPI documentation for the get post by slug endpoint.
- PostControllerDocs.UpdatePostById - Annotation Interface in com.example.blogs.app.api.post.docs
-
Meta-annotation combining all OpenAPI documentation for the update post by ID endpoint.
- PostCreateRequestDTO - Record Class in com.example.blogs.app.api.post.dto
-
Request data transfer object for creating a new post with title, description, and content.
- PostCreateRequestDTO(String, String, String) - Constructor for record class com.example.blogs.app.api.post.dto.PostCreateRequestDTO
-
Creates an instance of a
PostCreateRequestDTOrecord class. - PostCreateResponseDTO - Record Class in com.example.blogs.app.api.post.dto
-
Response data transfer object containing created post details with ID, slug, and preview image URL.
- PostCreateResponseDTO(Long, String, String, String, String, String, LocalDateTime) - Constructor for record class com.example.blogs.app.api.post.dto.PostCreateResponseDTO
-
Creates an instance of a
PostCreateResponseDTOrecord class. - PostDTO - Record Class in com.example.blogs.app.api.post.dto
-
Data transfer object representing a complete blog post with author and comments.
- PostDTO(Long, String, String, String, String, LocalDateTime, PostUserSummaryDTO, List<PostCommentSummaryDTO>) - Constructor for record class com.example.blogs.app.api.post.dto.PostDTO
-
Creates an instance of a
PostDTOrecord class. - PostEntity - Class in com.example.blogs.app.api.post.entity
-
Represents a blog post with metadata, content, and author relationship.
- PostEntity() - Constructor for class com.example.blogs.app.api.post.entity.PostEntity
- postId() - Method in record class com.example.blogs.app.api.comment.dto.CommentDTO
-
Returns the value of the
postIdrecord component. - postId() - Method in record class com.example.blogs.app.api.reaction.dto.ReactionDTO
-
Returns the value of the
postIdrecord component. - PostMapper - Interface in com.example.blogs.app.api.post.mapper
-
Mapper for converting between post entities and DTOs.
- PostNotFoundException - Exception Class in com.example.blogs.app.api.post.exception
-
Exception thrown when a requested post does not exist.
- PostNotFoundException(Exception) - Constructor for exception class com.example.blogs.app.api.post.exception.PostNotFoundException
-
Constructs a new PostNotFound with a default message and underlying cause.
- PostRepository - Interface in com.example.blogs.app.api.post.repository
-
JPA repository for managing post persistence operations.
- PostRepositoryAdapter - Interface in com.example.blogs.app.api.post.repository.adapter
-
Adapter for post repository operations with exception handling.
- PostRepositoryAdapterImpl - Class in com.example.blogs.app.api.post.repository.adapter
-
Wraps post repository operations with exception translation for consistent error handling.
- PostRepositoryAdapterImpl() - Constructor for class com.example.blogs.app.api.post.repository.adapter.PostRepositoryAdapterImpl
- posts() - Method in record class com.example.blogs.app.api.user.dto.UserDTO
-
Returns the value of the
postsrecord component. - PostSecurity - Interface in com.example.blogs.app.api.post.security
-
Verifies post ownership for authorization purposes.
- PostSecurityImpl - Class in com.example.blogs.app.api.post.security
-
Verifies post ownership by coordinating with the post repository and security context.
- PostSecurityImpl() - Constructor for class com.example.blogs.app.api.post.security.PostSecurityImpl
- PostService - Interface in com.example.blogs.app.api.post.service
-
Service for post-related business operations.
- PostServiceImpl - Class in com.example.blogs.app.api.post.service
-
Orchestrates post retrieval operations by coordinating with the post repository adapter.
- PostServiceImpl() - Constructor for class com.example.blogs.app.api.post.service.PostServiceImpl
- PostSlugUpdater - Class in com.example.blogs.app.api.post.service
-
Updates post slugs by regenerating them from the updated title when necessary.
- PostSlugUpdater() - Constructor for class com.example.blogs.app.api.post.service.PostSlugUpdater
- PostUpdateRequestDTO - Record Class in com.example.blogs.app.api.post.dto
-
Request DTO for updating a post with partial field updates.
- PostUpdateRequestDTO(String, String, String) - Constructor for record class com.example.blogs.app.api.post.dto.PostUpdateRequestDTO
-
Creates an instance of a
PostUpdateRequestDTOrecord class. - PostUpdateResponseDTO - Record Class in com.example.blogs.app.api.post.dto
-
Response DTO for post update operations with updated fields and timestamp.
- PostUpdateResponseDTO(Long, String, String, String, String, String, LocalDateTime) - Constructor for record class com.example.blogs.app.api.post.dto.PostUpdateResponseDTO
-
Creates an instance of a
PostUpdateResponseDTOrecord class. - PostUserSummaryDTO - Record Class in com.example.blogs.app.api.post.dto
-
Data transfer object representing a summary of a user associated with a post or comment.
- PostUserSummaryDTO(Long, String, String) - Constructor for record class com.example.blogs.app.api.post.dto.PostUserSummaryDTO
-
Creates an instance of a
PostUserSummaryDTOrecord class. - previewImageUrl() - Method in record class com.example.blogs.app.api.post.dto.PostCreateResponseDTO
-
Returns the value of the
previewImageUrlrecord component. - previewImageUrl() - Method in record class com.example.blogs.app.api.post.dto.PostDTO
-
Returns the value of the
previewImageUrlrecord component. - previewImageUrl() - Method in record class com.example.blogs.app.api.post.dto.PostUpdateResponseDTO
-
Returns the value of the
previewImageUrlrecord component. - previewImageUrl() - Method in record class com.example.blogs.app.api.user.dto.UserPostSummaryDTO
-
Returns the value of the
previewImageUrlrecord component. - prodS3Client(String) - Method in class com.example.blogs.app.config.S3Config
-
Creates an S3 client configured for production with default AWS credentials.
- profilePictureUrl() - Method in record class com.example.blogs.app.api.post.dto.PostUserSummaryDTO
-
Returns the value of the
profilePictureUrlrecord component. - profilePictureUrl() - Method in record class com.example.blogs.app.api.user.dto.UpdateUserResponseDTO
-
Returns the value of the
profilePictureUrlrecord component. - profilePictureUrl() - Method in record class com.example.blogs.app.api.user.dto.UserDTO
-
Returns the value of the
profilePictureUrlrecord component. - profilePictureUrl() - Method in record class com.example.blogs.app.security.UserPrincipal
-
Returns the value of the
profilePictureUrlrecord component.
R
- ReactionController - Class in com.example.blogs.app.api.reaction.controller
-
Handles HTTP requests for reaction-related operations.
- ReactionController() - Constructor for class com.example.blogs.app.api.reaction.controller.ReactionController
- ReactionControllerDocs - Class in com.example.blogs.app.api.reaction.docs
-
OpenAPI documentation annotations for reaction controller endpoints.
- ReactionControllerDocs() - Constructor for class com.example.blogs.app.api.reaction.docs.ReactionControllerDocs
- ReactionControllerDocs.SetReaction - Annotation Interface in com.example.blogs.app.api.reaction.docs
-
Meta-annotation combining all OpenAPI documentation for the set reaction endpoint.
- ReactionDTO - Record Class in com.example.blogs.app.api.reaction.dto
-
Data transfer object representing a reaction on a post.
- ReactionDTO(Long, ReactionType, Long, Long) - Constructor for record class com.example.blogs.app.api.reaction.dto.ReactionDTO
-
Creates an instance of a
ReactionDTOrecord class. - ReactionEntity - Class in com.example.blogs.app.api.reaction.entity
-
Entity representing a user's reaction to a post.
- ReactionEntity() - Constructor for class com.example.blogs.app.api.reaction.entity.ReactionEntity
- ReactionMapper - Interface in com.example.blogs.app.api.reaction.mapper
-
Maps between reaction entities and DTOs using MapStruct.
- ReactionNotFoundException - Exception Class in com.example.blogs.app.api.reaction.exception
-
Exception thrown when a requested reaction is not found.
- ReactionNotFoundException(Exception) - Constructor for exception class com.example.blogs.app.api.reaction.exception.ReactionNotFoundException
-
Constructs a new exception with a default message and cause.
- ReactionRepository - Interface in com.example.blogs.app.api.reaction.repository
-
JPA repository for managing reaction persistence operations.
- ReactionRepositoryAdapter - Interface in com.example.blogs.app.api.reaction.repository.adapter
-
Adapter for reaction repository operations with exception handling.
- ReactionRepositoryAdapterImpl - Class in com.example.blogs.app.api.reaction.repository.adapter
-
Wraps reaction repository operations with exception translation for consistent error handling.
- ReactionRepositoryAdapterImpl() - Constructor for class com.example.blogs.app.api.reaction.repository.adapter.ReactionRepositoryAdapterImpl
- ReactionService - Interface in com.example.blogs.app.api.reaction.service
-
Service for reaction-related business operations.
- ReactionServiceImpl - Class in com.example.blogs.app.api.reaction.service
-
Orchestrates reaction operations by coordinating with repository adapters.
- ReactionServiceImpl() - Constructor for class com.example.blogs.app.api.reaction.service.ReactionServiceImpl
- ReactionSetRequestDTO - Record Class in com.example.blogs.app.api.reaction.dto
-
Data transfer object for setting or updating a reaction on a post.
- ReactionSetRequestDTO(ReactionType) - Constructor for record class com.example.blogs.app.api.reaction.dto.ReactionSetRequestDTO
-
Creates an instance of a
ReactionSetRequestDTOrecord class. - reactionType() - Method in record class com.example.blogs.app.api.reaction.dto.ReactionDTO
-
Returns the value of the
reactionTyperecord component. - reactionType() - Method in record class com.example.blogs.app.api.reaction.dto.ReactionSetRequestDTO
-
Returns the value of the
reactionTyperecord component. - ReactionType - Enum Class in com.example.blogs.app.api.reaction.entity
-
Enumeration of possible reaction types for posts.
- refreshAccessToken(RefreshTokenRequest) - Method in interface com.example.blogs.app.api.auth.service.AuthService
-
Refreshes an access token using a valid refresh token.
- refreshAccessToken(RefreshTokenRequest) - Method in class com.example.blogs.app.api.auth.service.AuthServiceImpl
-
Refreshes an access token by validating the refresh token and generating a new access token.
- refreshToken() - Method in record class com.example.blogs.app.api.auth.dto.LogoutRequest
-
Returns the value of the
refreshTokenrecord component. - refreshToken() - Method in record class com.example.blogs.app.api.auth.dto.RefreshTokenRequest
-
Returns the value of the
refreshTokenrecord component. - refreshToken() - Method in record class com.example.blogs.app.api.auth.dto.TokenPair
-
Returns the value of the
refreshTokenrecord component. - refreshToken(RefreshTokenRequest) - Method in class com.example.blogs.app.api.auth.controller.AuthController
-
Refreshes the access token using a valid refresh token.
- RefreshTokenRequest - Record Class in com.example.blogs.app.api.auth.dto
-
Request payload for refreshing an access token using a valid refresh token.
- RefreshTokenRequest(String) - Constructor for record class com.example.blogs.app.api.auth.dto.RefreshTokenRequest
-
Creates an instance of a
RefreshTokenRequestrecord class. - register(RegisterRequest) - Method in class com.example.blogs.app.api.auth.controller.AuthController
-
Registers a new user and returns authentication tokens.
- register(RegisterRequest) - Method in interface com.example.blogs.app.api.auth.service.AuthService
-
Registers a new user and returns JWT tokens for immediate authentication.
- register(RegisterRequest) - Method in class com.example.blogs.app.api.auth.service.AuthServiceImpl
- RegisterRequest - Record Class in com.example.blogs.app.api.auth.dto
-
Request payload for user registration containing credentials and profile information.
- RegisterRequest(String, String, String) - Constructor for record class com.example.blogs.app.api.auth.dto.RegisterRequest
-
Creates an instance of a
RegisterRequestrecord class. - REQUEST_ID - Static variable in class com.example.blogs.app.logging.MDCKeys
-
The key for the unique identifier of the request, used to trace logs related to a specific request across different components and services.
- RequestLoggingFilter - Class in com.example.blogs.app.logging
-
Generates unique request IDs and logs HTTP request completion metrics including duration and status.
- RequestLoggingFilter() - Constructor for class com.example.blogs.app.logging.RequestLoggingFilter
- resolve(Throwable) - Method in class com.example.blogs.app.exception.ExceptionHttpStatusMapper
-
Resolves the HTTP status for a given exception.
- RevokedTokenCleaner - Interface in com.example.blogs.app.api.auth.service
-
Scheduled task for removing expired tokens from the revoked tokens table.
- RevokedTokenCleanerImpl - Class in com.example.blogs.app.api.auth.service
-
Configures and executes scheduled cleanup of expired revoked tokens.
- RevokedTokenCleanerImpl(RevokedTokenRepositoryAdapter, String) - Constructor for class com.example.blogs.app.api.auth.service.RevokedTokenCleanerImpl
-
Constructs a new revoked token cleaner with repository adapter and cron schedule.
- RevokedTokenEntity - Class in com.example.blogs.app.api.auth.entity
-
Revoked JWT token entity with automatic timestamp tracking and expiration indexing.
- RevokedTokenEntity() - Constructor for class com.example.blogs.app.api.auth.entity.RevokedTokenEntity
- RevokedTokenRepository - Interface in com.example.blogs.app.api.auth.repository
-
Data access for revoked token entities with operations for token validation and cleanup.
- RevokedTokenRepositoryAdapter - Interface in com.example.blogs.app.api.auth.repository.adapter
-
Adapter for revoked token operations with domain-specific exception handling.
- RevokedTokenRepositoryAdapterImpl - Class in com.example.blogs.app.api.auth.repository.adapter
-
Translates database constraint violations and SQL errors into domain-specific exceptions for revoked token operations.
- RevokedTokenRepositoryAdapterImpl() - Constructor for class com.example.blogs.app.api.auth.repository.adapter.RevokedTokenRepositoryAdapterImpl
S
- S3BucketLinkBuilderLocal - Class in com.example.blogs.app.storage
-
Builds S3 file access links by combining base URL, bucket name, and file metadata.
- S3BucketLinkBuilderLocal(String, String) - Constructor for class com.example.blogs.app.storage.S3BucketLinkBuilderLocal
-
Constructs S3 link builder with resolved base URL and bucket configuration.
- S3BucketLinkBuilderProd - Class in com.example.blogs.app.storage
-
Production implementation of FileLinkBuilder for constructing S3 file access URLs.
- S3BucketLinkBuilderProd(String) - Constructor for class com.example.blogs.app.storage.S3BucketLinkBuilderProd
-
Constructs S3 link builder with resolved base URL and bucket configuration.
- S3BucketService - Interface in com.example.blogs.app.storage
-
Service for S3 bucket operations including file uploads.
- S3BucketServiceImpl - Class in com.example.blogs.app.storage
-
Implementation of S3 bucket operations using AWS SDK for file uploads.
- S3BucketServiceImpl(S3Client, String, S3KeyGenerator) - Constructor for class com.example.blogs.app.storage.S3BucketServiceImpl
-
Constructs S3 bucket service with configured client and bucket name.
- S3Config - Class in com.example.blogs.app.config
-
Configuration class for AWS S3 client with support for custom endpoints and path-style access.
- S3Config() - Constructor for class com.example.blogs.app.config.S3Config
- S3KeyGenerator - Class in com.example.blogs.app.storage
-
Generates S3 object keys by combining file path, name, and extension.
- S3KeyGenerator() - Constructor for class com.example.blogs.app.storage.S3KeyGenerator
- save(CommentEntity) - Method in interface com.example.blogs.app.api.comment.repository.adapter.CommentRepositoryAdapter
-
Saves a comment entity to the database with exception translation.
- save(CommentEntity) - Method in class com.example.blogs.app.api.comment.repository.adapter.CommentRepositoryAdapterImpl
-
Saves a comment entity to the database with exception translation.
- save(PostEntity) - Method in interface com.example.blogs.app.api.post.repository.adapter.PostRepositoryAdapter
-
Saves a new post entity with exception translation.
- save(PostEntity) - Method in class com.example.blogs.app.api.post.repository.adapter.PostRepositoryAdapterImpl
-
Saves a new post entity with exception translation.
- save(ReactionEntity) - Method in interface com.example.blogs.app.api.reaction.repository.adapter.ReactionRepositoryAdapter
-
Saves a reaction entity to the database with exception translation.
- save(ReactionEntity) - Method in class com.example.blogs.app.api.reaction.repository.adapter.ReactionRepositoryAdapterImpl
-
Saves a reaction entity to the database with exception translation.
- save(CreateUserCommand) - Method in interface com.example.blogs.app.api.user.repository.adapter.UserRepositoryAdapter
-
Persists a new user entity.
- save(CreateUserCommand) - Method in class com.example.blogs.app.api.user.repository.adapter.UserRepositoryAdapterImpl
- save(String, String, String, String) - Method in interface com.example.blogs.app.api.file.repository.adapter.FileRepositoryAdapter
-
Saves file metadata to the repository.
- save(String, String, String, String) - Method in class com.example.blogs.app.api.file.repository.adapter.FileRepositoryAdapterImpl
-
Saves file metadata to the repository with exception translation.
- saveRevokedToken(String, LocalDateTime) - Method in interface com.example.blogs.app.api.auth.repository.adapter.RevokedTokenRepositoryAdapter
-
Persists a revoked token with its expiration timestamp.
- saveRevokedToken(String, LocalDateTime) - Method in class com.example.blogs.app.api.auth.repository.adapter.RevokedTokenRepositoryAdapterImpl
- SecurityConfig - Class in com.example.blogs.app.config
-
Configures Spring Security for a stateless JWT-based API.
- SecurityConfig() - Constructor for class com.example.blogs.app.config.SecurityConfig
- setReaction(Long, UserPrincipal, ReactionSetRequestDTO) - Method in class com.example.blogs.app.api.reaction.controller.ReactionController
-
Sets or updates a reaction on a post.
- setReaction(Long, Long, ReactionType) - Method in interface com.example.blogs.app.api.reaction.service.ReactionService
-
Sets or updates a user's reaction on a post.
- setReaction(Long, Long, ReactionType) - Method in class com.example.blogs.app.api.reaction.service.ReactionServiceImpl
-
Sets or updates a user's reaction on a post.
- slug() - Method in record class com.example.blogs.app.api.post.dto.PostCreateResponseDTO
-
Returns the value of the
slugrecord component. - slug() - Method in record class com.example.blogs.app.api.post.dto.PostDTO
-
Returns the value of the
slugrecord component. - slug() - Method in record class com.example.blogs.app.api.post.dto.PostUpdateResponseDTO
-
Returns the value of the
slugrecord component. - slug() - Method in record class com.example.blogs.app.api.user.dto.UserPostSummaryDTO
-
Returns the value of the
slugrecord component. - SlugConfig - Class in com.example.blogs.app.config
-
Configures the Slugify library for generating URL-friendly slugs.
- SlugConfig() - Constructor for class com.example.blogs.app.config.SlugConfig
- slugify() - Method in class com.example.blogs.app.config.SlugConfig
-
Creates a Slugify instance configured to generate lowercase URL-friendly slugs.
- SlugService - Interface in com.example.blogs.app.api.post.service
-
Service for generating unique URL-friendly slugs from post titles.
- SlugServiceImpl - Class in com.example.blogs.app.api.post.service
-
Generates unique URL-friendly slugs by combining slugified titles with random suffixes.
- SlugServiceImpl() - Constructor for class com.example.blogs.app.api.post.service.SlugServiceImpl
- SqlExceptionUtils - Class in com.example.blogs.app.util
-
Utility for analyzing PostgreSQL exceptions and extracting constraint violation details.
- SqlExceptionUtils() - Constructor for class com.example.blogs.app.util.SqlExceptionUtils
- status() - Method in record class com.example.blogs.app.exception.ErrorResponse
-
Returns the value of the
statusrecord component. - stop() - Method in class com.example.blogs.app.logging.CloudWatchAppender
-
Stops the appender and gracefully shuts down background processing.
T
- timestamp() - Method in record class com.example.blogs.app.exception.ErrorResponse
-
Returns the value of the
timestamprecord component. - title() - Method in record class com.example.blogs.app.api.post.dto.PostCreateRequestDTO
-
Returns the value of the
titlerecord component. - title() - Method in record class com.example.blogs.app.api.post.dto.PostCreateResponseDTO
-
Returns the value of the
titlerecord component. - title() - Method in record class com.example.blogs.app.api.post.dto.PostDTO
-
Returns the value of the
titlerecord component. - title() - Method in record class com.example.blogs.app.api.post.dto.PostUpdateRequestDTO
-
Returns the value of the
titlerecord component. - title() - Method in record class com.example.blogs.app.api.post.dto.PostUpdateResponseDTO
-
Returns the value of the
titlerecord component. - title() - Method in record class com.example.blogs.app.api.user.dto.UserPostSummaryDTO
-
Returns the value of the
titlerecord component. - toCommentDTO(CommentEntity, Long, Long) - Method in interface com.example.blogs.app.api.comment.mapper.CommentMapper
-
Converts a comment entity to a comment DTO.
- TokenAlreadyRevokedException - Exception Class in com.example.blogs.app.api.auth.exception
-
Thrown when attempting to revoke a token that has already been revoked.
- TokenAlreadyRevokedException(Exception) - Constructor for exception class com.example.blogs.app.api.auth.exception.TokenAlreadyRevokedException
-
Constructs a new TokenAlreadyRevokedException with a default message.
- TokenPair - Record Class in com.example.blogs.app.api.auth.dto
-
JWT authentication token pair returned after successful registration or login.
- TokenPair(String, String) - Constructor for record class com.example.blogs.app.api.auth.dto.TokenPair
-
Creates an instance of a
TokenPairrecord class. - TokenPairGenerator - Interface in com.example.blogs.app.api.auth.service
-
Generates JWT token pairs (access and refresh) with user claims for authentication.
- TokenPairGeneratorImpl - Class in com.example.blogs.app.api.auth.service
-
Creates JWT token pairs with embedded user claims for access and refresh authentication flows.
- TokenPairGeneratorImpl() - Constructor for class com.example.blogs.app.api.auth.service.TokenPairGeneratorImpl
- toPostCommentSummaryDTO(CommentEntity, String) - Method in interface com.example.blogs.app.api.post.mapper.PostMapper
-
Converts a comment entity to a post comment summary DTO.
- toPostCreateResponseDTO(PostEntity, String) - Method in interface com.example.blogs.app.api.post.mapper.PostMapper
-
Converts a post entity to a post creation response DTO with preview image URL.
- toPostDTO(PostEntity, List<CommentEntity>, String, String) - Method in interface com.example.blogs.app.api.post.mapper.PostMapper
-
Converts a post entity and its comments to a post DTO.
- toPostEntity(PostCreateRequestDTO, String, FileEntity, UserEntity) - Method in interface com.example.blogs.app.api.post.mapper.PostMapper
-
Converts a post creation request to a post entity with generated slug, file, and author.
- toPostEntity(PostUpdateRequestDTO, PostEntity) - Method in interface com.example.blogs.app.api.post.mapper.PostMapper
-
Updates a post entity with non-null fields from the request DTO.
- toPostUpdateResponseDTO(PostEntity, String) - Method in interface com.example.blogs.app.api.post.mapper.PostMapper
-
Converts a post entity to a post update response DTO.
- toPostUserSummaryDTO(UserEntity, String) - Method in interface com.example.blogs.app.api.post.mapper.PostMapper
-
Converts a user entity to a user summary DTO.
- toReactionDTO(ReactionEntity) - Method in interface com.example.blogs.app.api.reaction.mapper.ReactionMapper
-
Converts a reaction entity to a reaction DTO.
- toString() - Method in record class com.example.blogs.app.api.auth.dto.AccessTokenResponse
-
Returns a string representation of this record class.
- toString() - Method in record class com.example.blogs.app.api.auth.dto.LoginRequest
-
Returns a string representation of this record class.
- toString() - Method in record class com.example.blogs.app.api.auth.dto.LogoutRequest
-
Returns a string representation of this record class.
- toString() - Method in record class com.example.blogs.app.api.auth.dto.RefreshTokenRequest
-
Returns a string representation of this record class.
- toString() - Method in record class com.example.blogs.app.api.auth.dto.RegisterRequest
-
Returns a string representation of this record class.
- toString() - Method in record class com.example.blogs.app.api.auth.dto.TokenPair
-
Returns a string representation of this record class.
- toString() - Method in record class com.example.blogs.app.api.comment.dto.CommentDTO
-
Returns a string representation of this record class.
- toString() - Method in record class com.example.blogs.app.api.comment.dto.CommentWriteRequestDTO
-
Returns a string representation of this record class.
- toString() - Method in record class com.example.blogs.app.api.post.dto.PostCommentSummaryDTO
-
Returns a string representation of this record class.
- toString() - Method in record class com.example.blogs.app.api.post.dto.PostCreateRequestDTO
-
Returns a string representation of this record class.
- toString() - Method in record class com.example.blogs.app.api.post.dto.PostCreateResponseDTO
-
Returns a string representation of this record class.
- toString() - Method in record class com.example.blogs.app.api.post.dto.PostDTO
-
Returns a string representation of this record class.
- toString() - Method in record class com.example.blogs.app.api.post.dto.PostUpdateRequestDTO
-
Returns a string representation of this record class.
- toString() - Method in record class com.example.blogs.app.api.post.dto.PostUpdateResponseDTO
-
Returns a string representation of this record class.
- toString() - Method in record class com.example.blogs.app.api.post.dto.PostUserSummaryDTO
-
Returns a string representation of this record class.
- toString() - Method in record class com.example.blogs.app.api.reaction.dto.ReactionDTO
-
Returns a string representation of this record class.
- toString() - Method in record class com.example.blogs.app.api.reaction.dto.ReactionSetRequestDTO
-
Returns a string representation of this record class.
- toString() - Method in record class com.example.blogs.app.api.user.dto.CreateUserCommand
-
Returns a string representation of this record class.
- toString() - Method in record class com.example.blogs.app.api.user.dto.UpdateUserRequestDTO
-
Returns a string representation of this record class.
- toString() - Method in record class com.example.blogs.app.api.user.dto.UpdateUserResponseDTO
-
Returns a string representation of this record class.
- toString() - Method in record class com.example.blogs.app.api.user.dto.UserDTO
-
Returns a string representation of this record class.
- toString() - Method in record class com.example.blogs.app.api.user.dto.UserPostSummaryDTO
-
Returns a string representation of this record class.
- toString() - Method in record class com.example.blogs.app.exception.ErrorResponse
-
Returns a string representation of this record class.
- toString() - Method in record class com.example.blogs.app.security.UserPrincipal
-
Returns a string representation of this record class.
- toString() - Method in record class com.example.blogs.app.util.FileNameParts
-
Returns a string representation of this record class.
- toUpdateUserResponseDTO(UserEntity, String) - Method in interface com.example.blogs.app.api.user.mapper.UserMapper
-
Maps user entity and profile picture URL to update response DTO.
- toUserDTO(UserEntity, List<PostEntity>, String) - Method in interface com.example.blogs.app.api.user.mapper.UserMapper
-
Maps user entity and associated posts to a complete user DTO.
- toUserEntity(UpdateUserRequestDTO, UserEntity, String) - Method in interface com.example.blogs.app.api.user.mapper.UserMapper
-
Updates user entity with values from request DTO and password hash.
- toUserEntity(Long) - Method in interface com.example.blogs.app.api.user.mapper.UserMapper
-
Creates a user entity with only the ID populated.
- toUserPostSummaryDto(PostEntity, String) - Method in interface com.example.blogs.app.api.user.mapper.UserMapper
-
Maps a post entity to a post summary DTO.
- TransactionalFileUploader - Class in com.example.blogs.app.api.post.service
-
Handles file uploads with automatic rollback when database transactions fail.
- TransactionalFileUploader() - Constructor for class com.example.blogs.app.api.post.service.TransactionalFileUploader
U
- UnauthorizedException - Exception Class in com.example.blogs.app.api.auth.exception
-
Thrown when a request fails authorization due to invalid, expired, or missing authentication credentials.
- UnauthorizedException(Exception) - Constructor for exception class com.example.blogs.app.api.auth.exception.UnauthorizedException
-
Constructs a new UnauthorizedException with a default message.
- update(PostEntity) - Method in interface com.example.blogs.app.api.post.repository.adapter.PostRepositoryAdapter
-
Updates a post entity with exception translation.
- update(PostEntity) - Method in class com.example.blogs.app.api.post.repository.adapter.PostRepositoryAdapterImpl
-
Updates a post entity with exception translation.
- update(UserEntity) - Method in interface com.example.blogs.app.api.user.repository.adapter.UserRepositoryAdapter
-
Updates an existing user entity.
- update(UserEntity) - Method in class com.example.blogs.app.api.user.repository.adapter.UserRepositoryAdapterImpl
-
Updates an existing user entity and translates exceptions to domain-specific errors.
- updateCommentById(Long, CommentWriteRequestDTO) - Method in class com.example.blogs.app.api.comment.controller.CommentController
-
Updates a comment by its ID.
- updateCommentById(Long, CommentWriteRequestDTO) - Method in interface com.example.blogs.app.api.comment.service.CommentService
-
Updates a comment by its ID with new content.
- updateCommentById(Long, CommentWriteRequestDTO) - Method in class com.example.blogs.app.api.comment.service.CommentServiceImpl
-
Updates a comment by its ID with new content.
- updatedAt() - Method in record class com.example.blogs.app.api.comment.dto.CommentDTO
-
Returns the value of the
updatedAtrecord component. - updatedAt() - Method in record class com.example.blogs.app.api.post.dto.PostCommentSummaryDTO
-
Returns the value of the
updatedAtrecord component. - updatedAt() - Method in record class com.example.blogs.app.api.post.dto.PostUpdateResponseDTO
-
Returns the value of the
updatedAtrecord component. - updatePostById(long, PostUpdateRequestDTO, MultipartFile) - Method in interface com.example.blogs.app.api.post.service.PostService
-
Updates a post by its ID with partial field updates.
- updatePostById(long, PostUpdateRequestDTO, MultipartFile) - Method in class com.example.blogs.app.api.post.service.PostServiceImpl
-
Updates a post by its ID with partial field updates.
- updatePostById(Long, PostUpdateRequestDTO, MultipartFile) - Method in class com.example.blogs.app.api.post.controller.PostController
-
Updates a post by its ID with partial field updates.
- updateUserProfile(UserPrincipal, UpdateUserRequestDTO, MultipartFile) - Method in class com.example.blogs.app.api.user.controller.UserController
-
Updates the authenticated user's profile information and optionally their profile picture.
- updateUserProfile(Long, UpdateUserRequestDTO, MultipartFile) - Method in interface com.example.blogs.app.api.user.service.UserService
-
Updates user profile with optional field updates and profile picture replacement.
- updateUserProfile(Long, UpdateUserRequestDTO, MultipartFile) - Method in class com.example.blogs.app.api.user.service.UserServiceImpl
-
Updates user profile with optional field updates and profile picture replacement.
- UpdateUserRequestDTO - Record Class in com.example.blogs.app.api.user.dto
-
Request payload for updating user profile information.
- UpdateUserRequestDTO(String, String, String, String) - Constructor for record class com.example.blogs.app.api.user.dto.UpdateUserRequestDTO
-
Creates an instance of a
UpdateUserRequestDTOrecord class. - UpdateUserResponseDTO - Record Class in com.example.blogs.app.api.user.dto
-
Response payload containing updated user profile information.
- UpdateUserResponseDTO(String, String, String) - Constructor for record class com.example.blogs.app.api.user.dto.UpdateUserResponseDTO
-
Creates an instance of a
UpdateUserResponseDTOrecord class. - upload(String, String, String, String, byte[]) - Method in interface com.example.blogs.app.storage.S3BucketService
-
Uploads a file to the S3 bucket with specified metadata.
- upload(String, String, String, String, byte[]) - Method in class com.example.blogs.app.storage.S3BucketServiceImpl
-
Uploads a file to the S3 bucket with specified metadata.
- upload(MultipartFile, String) - Method in interface com.example.blogs.app.api.file.service.FileService
-
Uploads a file to storage and saves its metadata.
- upload(MultipartFile, String) - Method in class com.example.blogs.app.api.file.service.FileServiceImpl
-
Uploads a file to S3 storage and saves its metadata to the repository.
- uploadWithTransactionRollback(MultipartFile, String) - Method in class com.example.blogs.app.api.post.service.TransactionalFileUploader
-
Uploads a file and registers a transaction synchronization callback to delete it if the transaction rolls back.
- USER_ID - Static variable in class com.example.blogs.app.logging.MDCKeys
-
The key for the user identifier, used to associate logs with a specific user, which can be helpful for debugging and monitoring user-related activities.
- UserController - Class in com.example.blogs.app.api.user.controller
-
REST API endpoints for user profile operations.
- UserController() - Constructor for class com.example.blogs.app.api.user.controller.UserController
- UserControllerDocs - Class in com.example.blogs.app.api.user.docs
-
OpenAPI documentation annotations for user controller endpoints.
- UserControllerDocs() - Constructor for class com.example.blogs.app.api.user.docs.UserControllerDocs
- UserControllerDocs.GetUserByUsername - Annotation Interface in com.example.blogs.app.api.user.docs
-
Meta-annotation combining all OpenAPI documentation for the get user by username endpoint.
- UserControllerDocs.UpdateUserProfile - Annotation Interface in com.example.blogs.app.api.user.docs
-
Meta-annotation combining all OpenAPI documentation for the update user profile endpoint.
- UserDTO - Record Class in com.example.blogs.app.api.user.dto
-
User profile data transfer object containing personal information and post summaries.
- UserDTO(String, String, String, List<UserPostSummaryDTO>) - Constructor for record class com.example.blogs.app.api.user.dto.UserDTO
-
Creates an instance of a
UserDTOrecord class. - UserEntity - Class in com.example.blogs.app.api.user.entity
-
User entity with unique constraints on username and email.
- UserEntity() - Constructor for class com.example.blogs.app.api.user.entity.UserEntity
- UserHasAlreadyReactedException - Exception Class in com.example.blogs.app.api.reaction.exception
-
Exception thrown when a user attempts to create a duplicate reaction.
- UserHasAlreadyReactedException(Exception) - Constructor for exception class com.example.blogs.app.api.reaction.exception.UserHasAlreadyReactedException
-
Constructs a new exception with a default message and cause.
- userId() - Method in record class com.example.blogs.app.api.reaction.dto.ReactionDTO
-
Returns the value of the
userIdrecord component. - UserMapper - Interface in com.example.blogs.app.api.user.mapper
-
MapStruct mapper for converting user entities and posts to data transfer objects.
- username() - Method in record class com.example.blogs.app.api.auth.dto.RegisterRequest
-
Returns the value of the
usernamerecord component. - username() - Method in record class com.example.blogs.app.api.post.dto.PostUserSummaryDTO
-
Returns the value of the
usernamerecord component. - username() - Method in record class com.example.blogs.app.api.user.dto.CreateUserCommand
-
Returns the value of the
usernamerecord component. - username() - Method in record class com.example.blogs.app.api.user.dto.UpdateUserRequestDTO
-
Returns the value of the
usernamerecord component. - username() - Method in record class com.example.blogs.app.api.user.dto.UpdateUserResponseDTO
-
Returns the value of the
usernamerecord component. - username() - Method in record class com.example.blogs.app.api.user.dto.UserDTO
-
Returns the value of the
usernamerecord component. - username() - Method in record class com.example.blogs.app.security.UserPrincipal
-
Returns the value of the
usernamerecord component. - usernameOrEmail() - Method in record class com.example.blogs.app.api.auth.dto.LoginRequest
-
Returns the value of the
usernameOrEmailrecord component. - UsernameTakenException - Exception Class in com.example.blogs.app.api.user.exception
-
Thrown when attempting to create a user with an already-existing username.
- UsernameTakenException(Exception) - Constructor for exception class com.example.blogs.app.api.user.exception.UsernameTakenException
-
Constructs a new UsernameTakenException with a default error message.
- UserNotFoundException - Exception Class in com.example.blogs.app.api.user.exception
-
Thrown when a requested user does not exist in the system.
- UserNotFoundException(Exception) - Constructor for exception class com.example.blogs.app.api.user.exception.UserNotFoundException
-
Constructs a new UserNotFoundException with a default message.
- UserPostSummaryDTO - Record Class in com.example.blogs.app.api.user.dto
-
Summary information for a user's post including title, description, and preview details.
- UserPostSummaryDTO(String, String, String, LocalDateTime, String) - Constructor for record class com.example.blogs.app.api.user.dto.UserPostSummaryDTO
-
Creates an instance of a
UserPostSummaryDTOrecord class. - UserPrincipal - Record Class in com.example.blogs.app.security
-
Represents the authenticated user's identity extracted from JWT token claims.
- UserPrincipal(Long, String, String, String) - Constructor for record class com.example.blogs.app.security.UserPrincipal
-
Creates an instance of a
UserPrincipalrecord class. - UserPrincipalAuthenticationToken - Class in com.example.blogs.app.security
-
Spring Security authentication token holding UserPrincipal and JWT credentials.
- UserPrincipalAuthenticationToken(UserPrincipal, Jwt) - Constructor for class com.example.blogs.app.security.UserPrincipalAuthenticationToken
-
Creates an authenticated token with UserPrincipal and JWT.
- UserRepository - Interface in com.example.blogs.app.api.user.repository
-
Data access for user entities with unique constraints on username and email.
- UserRepositoryAdapter - Interface in com.example.blogs.app.api.user.repository.adapter
-
Abstracts user repository operations with exception translation for domain-specific errors.
- UserRepositoryAdapterImpl - Class in com.example.blogs.app.api.user.repository.adapter
-
Translates database constraint violations and errors into domain-specific exceptions.
- UserRepositoryAdapterImpl() - Constructor for class com.example.blogs.app.api.user.repository.adapter.UserRepositoryAdapterImpl
- UserService - Interface in com.example.blogs.app.api.user.service
-
Manages user lifecycle operations.
- UserServiceImpl - Class in com.example.blogs.app.api.user.service
-
Orchestrates user operations by coordinating repository access, post retrieval, and entity-to-DTO mapping.
- UserServiceImpl() - Constructor for class com.example.blogs.app.api.user.service.UserServiceImpl
V
- valueOf(String) - Static method in enum class com.example.blogs.app.api.reaction.entity.ReactionType
-
Returns the enum constant of this class with the specified name.
- values() - Static method in enum class com.example.blogs.app.api.reaction.entity.ReactionType
-
Returns an array containing the constants of this enum class, in the order they are declared.
W
- writeErrorResponse(HttpServletResponse, HttpServletRequest, ObjectMapper, HttpStatus, String) - Method in class com.example.blogs.app.exception.ErrorResponseWriter
-
Writes a formatted error response to the HTTP response output stream.
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form