Package com.nnamo.controllers
Class UserController
java.lang.Object
com.nnamo.controllers.UserController
Controller responsible for managing user authentication and session management.
It interacts with the DatabaseService to verify user credentials and handle
user registration. It also manages user sessions by creating, deleting, and
checking for active sessions.
- Author:
- Samuele Lombardi, Riccardo Finocchiaro
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addSessionListener
(SessionListener listener) void
int
void
run()
boolean
-
Constructor Details
-
UserController
- Throws:
IOException
-
-
Method Details
-
run
- Throws:
SQLException
-
addSessionListener
-
deleteCurrentSession
public void deleteCurrentSession() -
sessionExists
public boolean sessionExists() -
getCurrentUserId
public int getCurrentUserId()
-