Index

A B C D E F G I L M P R S T U 
All Classes and Interfaces|All Packages

A

addBook(Book) - Method in class com.example.restapi.controller.LibraryController
 
author - Variable in class com.example.restapi.model.Book
 

B

book - Variable in class com.example.restapi.model.Borrowing
 
Book - Class in com.example.restapi.model
 
Book() - Constructor for class com.example.restapi.model.Book
 
Book(String, String) - Constructor for class com.example.restapi.model.Book
 
bookController - Variable in class com.example.restapi.controller.LibraryController
 
BookController - Class in com.example.restapi.controller
 
BookController() - Constructor for class com.example.restapi.controller.BookController
 
bookRepository - Variable in class com.example.restapi.service.BookService
Repository for managing Book entities.
bookRepository - Variable in class com.example.restapi.service.BorrowingService
 
BookRepository - Interface in com.example.restapi.repository
 
bookService - Variable in class com.example.restapi.controller.BookController
 
BookService - Class in com.example.restapi.service
Service class that provides business logic for managing Book and borrowing operations.
BookService() - Constructor for class com.example.restapi.service.BookService
 
borrowBook(Long, User) - Method in class com.example.restapi.controller.BorrowingController
Endpoint for borrowing a book by a specific user.
borrowBook(Long, User) - Method in class com.example.restapi.service.BorrowingService
 
borrowBook(Long, Long) - Method in class com.example.restapi.controller.LibraryController
 
borrowBook(Long, Long) - Method in class com.example.restapi.service.BookService
 
borrowDate - Variable in class com.example.restapi.model.Borrowing
 
borrowedBooks - Variable in class com.example.restapi.model.User
 
Borrowing - Class in com.example.restapi.model
 
Borrowing() - Constructor for class com.example.restapi.model.Borrowing
 
Borrowing(User, Book) - Constructor for class com.example.restapi.model.Borrowing
 
borrowingController - Variable in class com.example.restapi.controller.LibraryController
 
BorrowingController - Class in com.example.restapi.controller
 
BorrowingController() - Constructor for class com.example.restapi.controller.BorrowingController
 
borrowingRepository - Variable in class com.example.restapi.service.BorrowingService
 
BorrowingRepository - Interface in com.example.restapi.repository
 
borrowingService - Variable in class com.example.restapi.controller.BorrowingController
Service handling borrowing logic.
BorrowingService - Class in com.example.restapi.service
 
BorrowingService() - Constructor for class com.example.restapi.service.BorrowingService
 

C

checkSession(HttpSession) - Method in class com.example.restapi.controller.UserController
 
com.example.restapi - package com.example.restapi
 
com.example.restapi.config - package com.example.restapi.config
 
com.example.restapi.controller - package com.example.restapi.controller
 
com.example.restapi.model - package com.example.restapi.model
 
com.example.restapi.repository - package com.example.restapi.repository
 
com.example.restapi.service - package com.example.restapi.service
 
createBook(Book) - Method in class com.example.restapi.controller.BookController
 
createBook(Book) - Method in class com.example.restapi.service.BookService
Creates a new book entry in the repository.
createUser(User) - Method in class com.example.restapi.controller.UserController
 
createUser(User) - Method in class com.example.restapi.service.UserService
 
customOpenAPI() - Method in class com.example.restapi.config.SwaggerConfig
 

D

deleteBook(Long) - Method in class com.example.restapi.controller.BookController
 
deleteBook(Long) - Method in class com.example.restapi.service.BookService
Deletes the Book identified by id.
deleteBorrowing(Long, Long) - Method in class com.example.restapi.controller.BorrowingController
Endpoint for deleting a borrowing record based on book and user IDs.
deleteBorrowing(Long, Long) - Method in class com.example.restapi.controller.LibraryController
 
deleteByBookId(Long) - Method in interface com.example.restapi.repository.BorrowingRepository
 
deleteByBookUserId(Long, Long) - Method in class com.example.restapi.service.BorrowingService
 
deleteUser(Long) - Method in class com.example.restapi.controller.UserController
 
deleteUser(Long) - Method in class com.example.restapi.service.UserService
 

E

email - Variable in class com.example.restapi.model.User
 
existsByUsername(String) - Method in interface com.example.restapi.repository.UserRepository
 
existsByUsername(String) - Method in class com.example.restapi.service.UserService
 

F

findActiveBorrowingByBookIdAndUserId(Long, Long) - Method in interface com.example.restapi.repository.BorrowingRepository
 
findActiveBorrowingsByBookId(Long, Long) - Method in interface com.example.restapi.repository.BorrowingRepository
 
findActiveBorrowingsByBookIdAndUserId(Long, Long) - Method in interface com.example.restapi.repository.BorrowingRepository
 
findBooksBorrowedByUserId(Long) - Method in interface com.example.restapi.repository.BorrowingRepository
 
findBooksByUserId(Long) - Method in interface com.example.restapi.repository.BorrowingRepository
 
findBorrowingsByBookIdAndUserId(Long, Long) - Method in interface com.example.restapi.repository.BorrowingRepository
 
findByBookId(Long) - Method in interface com.example.restapi.repository.BorrowingRepository
 
findByUserId(Long) - Method in interface com.example.restapi.repository.BorrowingRepository
 
findByUsername(String) - Method in interface com.example.restapi.repository.UserRepository
 
findByUsername(String) - Method in class com.example.restapi.service.UserService
 
findLatestBorrowedBook(Long, Long) - Method in interface com.example.restapi.repository.BorrowingRepository
 
findLatestBorrowing(Long, Long) - Method in interface com.example.restapi.repository.BorrowingRepository
 
fullName - Variable in class com.example.restapi.model.User
 

G

getAllBooks() - Method in class com.example.restapi.controller.BookController
 
getAllBooks() - Method in class com.example.restapi.service.BookService
Retrieves all books from the repository.
getAllBorrowings() - Method in class com.example.restapi.service.BorrowingService
 
getAllUsers() - Method in class com.example.restapi.controller.UserController
 
getAllUsers() - Method in class com.example.restapi.service.UserService
 
getAuthor() - Method in class com.example.restapi.model.Book
 
getBook() - Method in class com.example.restapi.model.Borrowing
 
getBookById(Long) - Method in class com.example.restapi.controller.BookController
 
getBookById(Long) - Method in class com.example.restapi.service.BookService
Retrieves a book by its unique identifier.
getBooks() - Method in class com.example.restapi.controller.LibraryController
 
getBorrowDate() - Method in class com.example.restapi.model.Borrowing
 
getBorrowedBooks() - Method in class com.example.restapi.model.User
 
getBorrowedBooksByUser(String) - Method in class com.example.restapi.controller.BorrowingController
Endpoint for retrieving the list of books borrowed by a specific user.
getBorrowedBooksByUser(String) - Method in class com.example.restapi.controller.LibraryController
 
getBorrowedBooksByUser(String) - Method in class com.example.restapi.service.BorrowingService
 
getBorrower() - Method in class com.example.restapi.model.Book
 
getBorrowingDetails(Long, Long) - Method in class com.example.restapi.service.BorrowingService
 
getBorrowingsDetails(Long, Long) - Method in class com.example.restapi.service.BorrowingService
 
getEmail() - Method in class com.example.restapi.model.User
 
getFullName() - Method in class com.example.restapi.model.User
 
getId() - Method in class com.example.restapi.model.Book
 
getId() - Method in class com.example.restapi.model.Borrowing
 
getId() - Method in class com.example.restapi.model.User
 
getPassword() - Method in class com.example.restapi.model.User
 
getReturnDate() - Method in class com.example.restapi.model.Borrowing
 
getTitle() - Method in class com.example.restapi.model.Book
 
getUser() - Method in class com.example.restapi.model.Borrowing
 
getUserById(Long) - Method in class com.example.restapi.controller.UserController
 
getUserById(Long) - Method in class com.example.restapi.service.UserService
 
getUserByUsername(String) - Method in class com.example.restapi.controller.UserController
 
getUsername() - Method in class com.example.restapi.model.User
 
getUserProfile(Long) - Method in class com.example.restapi.controller.LibraryController
 
getUserProfileByUsername(String) - Method in class com.example.restapi.controller.LibraryController
 
getUserSession(HttpSession) - Method in class com.example.restapi.controller.LibraryController
 

I

id - Variable in class com.example.restapi.model.Book
 
id - Variable in class com.example.restapi.model.Borrowing
 
id - Variable in class com.example.restapi.model.User
 

L

LibraryController - Class in com.example.restapi.controller
 
LibraryController(UserController, BookController, BorrowingController) - Constructor for class com.example.restapi.controller.LibraryController
 
login(User, HttpSession) - Method in class com.example.restapi.controller.UserController
 
loginUser(User, HttpSession) - Method in class com.example.restapi.controller.LibraryController
 
logout(HttpSession) - Method in class com.example.restapi.controller.UserController
 

M

main(String[]) - Static method in class com.example.restapi.RestApiApplication
 

P

password - Variable in class com.example.restapi.model.User
 

R

register(User) - Method in class com.example.restapi.controller.UserController
 
registerUser(User) - Method in class com.example.restapi.controller.LibraryController
 
RestApiApplication - Class in com.example.restapi
 
RestApiApplication() - Constructor for class com.example.restapi.RestApiApplication
 
returnBook(Long) - Method in class com.example.restapi.controller.BorrowingController
Endpoint for returning a borrowed book.
returnBook(Long) - Method in class com.example.restapi.controller.LibraryController
 
returnBook(Long) - Method in class com.example.restapi.service.BookService
Returns a borrowed book, making it available for others.
returnBook(Long) - Method in class com.example.restapi.service.BorrowingService
 
returnDate - Variable in class com.example.restapi.model.Borrowing
 

S

saveUser(User) - Method in class com.example.restapi.service.UserService
 
setAuthor(String) - Method in class com.example.restapi.model.Book
 
setBorrowedBooks(List<Borrowing>) - Method in class com.example.restapi.model.User
 
setBorrower(User) - Method in class com.example.restapi.model.Book
 
setEmail(String) - Method in class com.example.restapi.model.User
 
setFullName(String) - Method in class com.example.restapi.model.User
 
setId(Long) - Method in class com.example.restapi.model.Book
 
setId(Long) - Method in class com.example.restapi.model.User
 
setPassword(String) - Method in class com.example.restapi.model.User
 
setReturnDate(LocalDateTime) - Method in class com.example.restapi.model.Borrowing
 
setTitle(String) - Method in class com.example.restapi.model.Book
 
setUsername(String) - Method in class com.example.restapi.model.User
 
SwaggerConfig - Class in com.example.restapi.config
 
SwaggerConfig() - Constructor for class com.example.restapi.config.SwaggerConfig
 

T

title - Variable in class com.example.restapi.model.Book
 

U

updateBook(Long, Book) - Method in class com.example.restapi.controller.BookController
 
updateBook(Long, Book) - Method in class com.example.restapi.service.BookService
Updates an existing book's details.
user - Variable in class com.example.restapi.model.Book
 
user - Variable in class com.example.restapi.model.Borrowing
 
User - Class in com.example.restapi.model
 
User() - Constructor for class com.example.restapi.model.User
 
User(String, String, String, String) - Constructor for class com.example.restapi.model.User
 
userController - Variable in class com.example.restapi.controller.LibraryController
 
UserController - Class in com.example.restapi.controller
 
UserController(UserService) - Constructor for class com.example.restapi.controller.UserController
 
username - Variable in class com.example.restapi.model.User
 
userRepository - Variable in class com.example.restapi.controller.UserController
 
userRepository - Variable in class com.example.restapi.service.BookService
 
userRepository - Variable in class com.example.restapi.service.BorrowingService
 
userRepository - Variable in class com.example.restapi.service.UserService
 
UserRepository - Interface in com.example.restapi.repository
 
userService - Variable in class com.example.restapi.controller.BorrowingController
Service handling user management logic.
userService - Variable in class com.example.restapi.controller.UserController
 
UserService - Class in com.example.restapi.service
 
UserService(UserRepository) - Constructor for class com.example.restapi.service.UserService
 
A B C D E F G I L M P R S T U 
All Classes and Interfaces|All Packages