-
Dual-Role Access: Student and Librarian
- Allows users to log in either as a student or librarian, offering different functionalities based on role.
-
Student Authentication by Roll Number
- Students must enter a valid roll number to access services; system verifies existence using
StudentManager.
- Students must enter a valid roll number to access services; system verifies existence using
-
Book Viewing and Search (Student & Librarian)
- View all books.
- Search by ISBN or Subject.
-
Book Issue and Return (Student)
- Students can issue a book (if available).
- Return issued books and update inventory.
-
Student Record Management (Librarian)
- View all students.
- Search student by roll number.
- Add, update, or delete student records.
-
Book Record Management (Librarian)
- View all books.
- Search book by ISBN.
- Add new books with full details.
- Update book information.
- Delete books from inventory.
-
Transaction Tracking
- View all book issue/return transactions for tracking and reporting.
-
Exception Handling
- Graceful handling of missing students (
StudentNotFoundException) and books (BookNotFoundException).
- Graceful handling of missing students (
-
Persistent Data Storage
- At program exit, it writes all student, book, and transaction data to files for persistence.
-
Console-Based Interactive Menu
- Easy navigation via menu-driven console interface for both roles.