Class LoginController

java.lang.Object
com.serinity.accesscontrol.controller.LoginController
All Implemented Interfaces:
StackNavigable, StageTitled, StatusMessageProvider

public final class LoginController extends Object implements StackNavigable, StatusMessageProvider, StageTitled
`login.fxml` controller class
Since:
2026-02-02 LoginController.java
Version:
1.0
Author:
@ZouariOmar (zouariomar20@gmail.com)
  • Constructor Details

    • LoginController

      public LoginController()
      Creates a new login controller.
  • Method Details

    • getSceneTitleKey

      public String getSceneTitleKey()
      Description copied from interface: StageTitled
      Returns the i18n message key for this scene's stage title (e.g. "app.scene.title.sign_in").
      Specified by:
      getSceneTitleKey in interface StageTitled
      Returns:
      i18n key for the current scene title
    • getUser

      public static User getUser()
      Returns the authenticated user cached by the login flow.
      Returns:
      last authenticated user, or null
    • getStackHost

      public javafx.scene.layout.StackPane getStackHost()
      Description copied from interface: StackNavigable
      Returns the StackPane hosting dynamic views.
      Specified by:
      getStackHost in interface StackNavigable
      Returns:
      the stack host that contains dynamic views
    • setStackHost

      public void setStackHost(javafx.scene.layout.StackPane host)
      Description copied from interface: StackNavigable
      Injects the StackPane host.
      Specified by:
      setStackHost in interface StackNavigable
      Parameters:
      host - stack host used for navigation
    • setStatusProvider

      public void setStatusProvider(StatusMessageProvider provider)
      Description copied from interface: StackNavigable
      Injects the status message provider.
      Specified by:
      setStatusProvider in interface StackNavigable
      Parameters:
      provider - provider used to display status messages
    • showStatusMessage

      public void showStatusMessage(String message, MessageStatus status)
      Description copied from interface: StatusMessageProvider
      Shows a status message on the UI.
      Specified by:
      showStatusMessage in interface StatusMessageProvider
      Parameters:
      message - the text to display
      status - the type of message (SUCCESS, ERROR, WARNING, INFO)