Class AuthorizationPresenter

java.lang.Object
com.saperion.ngc.authorization.AuthorizationPresenter
All Implemented Interfaces:
Presenter

public final class AuthorizationPresenter extends Object implements Presenter
Presenter for authentication functions.
  • Constructor Details

    • AuthorizationPresenter

      protected AuthorizationPresenter(AuthorizationView authView)
      Parameters:
      authView - View
  • Method Details

    • startup

      protected void startup() throws NgcUiException
      Startup.
      Throws:
      NgcUiException - system exception on startup
    • onCreate

      protected void onCreate()
      Set the selected userType. After the UserType Combobox is completely rendered !
    • checkModelConnection

      protected void checkModelConnection() throws NgcUiException
      Checks model connection.
      Throws:
      NgcUiException - system exception while checking connection status
    • logon

      protected void logon(String username, String password, int selectedItem, String mandant) throws NgcUiException, AuthenticationException
      Parameters:
      username - Username
      password - Password
      selectedItem - Index of the selected item in the user-type-combobox
      mandant - Mandant
      Throws:
      NgcUiException - Exception to be handled by view
      AuthenticationException - password has expired
    • logoff

      protected void logoff() throws NgcUiException
      Logoff.
      Throws:
      NgcUiException - a locked document could not be unlocked or a system exception occurred
    • getLastUser

      public String getLastUser()
      Returns:
      last user name
    • setLastUser

      public void setLastUser(String lastUser)
      Sets the last user name.
      Parameters:
      lastUser - last user name
    • checkIfUserIsAbsent

      public void checkIfUserIsAbsent()
      Checks if the user is absent. If so, a messagebox will be shown that offers the option to disable the absence.
    • checkForExistingSessions

      public void checkForExistingSessions()
      Checks for existing sessions of logged in user. If present, then show a message box to choose whether user wants terminate them or not
    • logoutHandledByLogonProvider

      public boolean logoutHandledByLogonProvider()