Index

A C D F G I L M O P R S T U V 
All Classes and Interfaces|All Packages|Serialized Form

A

AppLauncher - Class in org.example.gui
Main entry point for the JavaFX application.
AppLauncher() - Constructor for class org.example.gui.AppLauncher
 
AuthorStats(String, int) - Constructor for class org.example.dao.PostDAO.AuthorStats
 

C

cleanUserSession() - Static method in class org.example.util.UserSession
Clears the current session (logout).

D

DatabaseHelper - Class in org.example.util
Utility class for database operations.
DatabaseHelper() - Constructor for class org.example.util.DatabaseHelper
 
deletePost(int) - Method in class org.example.dao.PostDAO
Deletes a post from the database by ID.

F

FeedController - Class in org.example.gui.controllers
Main controller for the social network feed.
FeedController() - Constructor for class org.example.gui.controllers.FeedController
 
forceInitializeTestDatabase() - Static method in class org.example.util.DatabaseHelper
Special initialization for tests.

G

getAllPosts(String) - Method in class org.example.dao.PostDAO
Retrieves all posts including an indicator if the current user has liked them.
getAuthor() - Method in class org.example.model.Post
 
getConnection() - Static method in class org.example.util.DatabaseHelper
 
getContent() - Method in class org.example.model.Post
 
getCount() - Method in class org.example.dao.PostDAO.AuthorStats
 
getCreatedAt() - Method in class org.example.model.Post
 
getCurrentUserNickname() - Static method in class org.example.util.UserSession
 
getId() - Method in class org.example.model.Post
 
getLikes() - Method in class org.example.model.Post
 
getNickname() - Method in class org.example.dao.PostDAO.AuthorStats
 
getTopAuthors(int) - Method in class org.example.dao.PostDAO
Calculates posts count per author.
getTopPosts(int) - Method in class org.example.dao.PostDAO
Retrieves the most liked posts.
getUpdatedAt() - Method in class org.example.model.Post
 

I

init() - Method in class org.example.gui.AppLauncher
 
initialize() - Method in class org.example.gui.controllers.FeedController
 
initializeDatabase() - Static method in class org.example.util.DatabaseHelper
Standard initialization for the main application.
InputValidator - Class in org.example.util
Utility class for user input validation.
InputValidator() - Constructor for class org.example.util.InputValidator
 
InvalidCredentialsException - Exception in org.example.util.exceptions
 
InvalidCredentialsException(String) - Constructor for exception org.example.util.exceptions.InvalidCredentialsException
 
isEdited() - Method in class org.example.model.Post
Helper method to check if the post was edited.
isLikedByMe() - Method in class org.example.model.Post
 
isLoggedIn() - Static method in class org.example.util.UserSession
Checks if a user is currently authenticated.

L

LoginController - Class in org.example.gui.controllers
Controller for the login screen.
LoginController() - Constructor for class org.example.gui.controllers.LoginController
 

M

main(String[]) - Static method in class org.example.gui.AppLauncher
 

O

org.example.dao - package org.example.dao
 
org.example.gui - package org.example.gui
 
org.example.gui.controllers - package org.example.gui.controllers
 
org.example.model - package org.example.model
 
org.example.util - package org.example.util
 
org.example.util.exceptions - package org.example.util.exceptions
 

P

Post - Class in org.example.model
Represents a social network post entity.
Post() - Constructor for class org.example.model.Post
Default constructor for frameworks or manual initialization.
Post(String, String) - Constructor for class org.example.model.Post
Constructor for creating a new post with minimal required data.
PostDAO - Class in org.example.dao
Data Access Object for Post entities.
PostDAO() - Constructor for class org.example.dao.PostDAO
 
PostDAO.AuthorStats - Class in org.example.dao
 

R

RegisterController - Class in org.example.gui.controllers
Controller for the registration screen.
RegisterController() - Constructor for class org.example.gui.controllers.RegisterController
 
registerUser(String, String, String) - Method in class org.example.dao.UserDAO
Registers a new user in the database.

S

savePost(String, String) - Method in class org.example.dao.PostDAO
Saves a new post to the database.
searchByAuthor(String, String) - Method in class org.example.dao.PostDAO
Searches for posts by author's nickname using a partial match.
setAuthor(String) - Method in class org.example.model.Post
 
setContent(String) - Method in class org.example.model.Post
 
setCreatedAt(LocalDateTime) - Method in class org.example.model.Post
 
setId(int) - Method in class org.example.model.Post
 
setInstance(String) - Static method in class org.example.util.UserSession
Initializes the session with a user's nickname.
setLikedByMe(boolean) - Method in class org.example.model.Post
 
setLikes(int) - Method in class org.example.model.Post
 
setUpdatedAt(LocalDateTime) - Method in class org.example.model.Post
 
start(Stage) - Method in class org.example.gui.AppLauncher
 

T

toggleLike(int, String) - Method in class org.example.dao.PostDAO
Adds or removes a like and updates likes_count in a single transaction.

U

updatePost(int, String) - Method in class org.example.dao.PostDAO
Updates an existing post's content and sets the updated_at timestamp.
UserAlreadyExistsException - Exception in org.example.util.exceptions
 
UserAlreadyExistsException(String) - Constructor for exception org.example.util.exceptions.UserAlreadyExistsException
 
UserDAO - Class in org.example.dao
Data Access Object for User entities.
UserDAO() - Constructor for class org.example.dao.UserDAO
 
UserSession - Class in org.example.util
Global session manager to track the currently authenticated user.

V

validateRegistration(String, String, String) - Static method in class org.example.util.InputValidator
Validates user registration data.
validateUser(String, String) - Method in class org.example.dao.UserDAO
Validates user credentials.
A C D F G I L M O P R S T U V 
All Classes and Interfaces|All Packages|Serialized Form