Class UserController

java.lang.Object
com.nnamo.controllers.UserController

public class UserController extends Object
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 Details

  • Method Details

    • run

      public void run() throws SQLException
      Throws:
      SQLException
    • addSessionListener

      public void addSessionListener(SessionListener listener)
    • deleteCurrentSession

      public void deleteCurrentSession()
    • sessionExists

      public boolean sessionExists()
    • getCurrentUserId

      public int getCurrentUserId()