Class AuthorizationPresenter

  • All Implemented Interfaces:
    Presenter

    public final class AuthorizationPresenter
    extends java.lang.Object
    implements Presenter
    Presenter for authentication functions.
    • Constructor Detail

      • AuthorizationPresenter

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

      • 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​(java.lang.String username,
                             java.lang.String password,
                             int selectedItem,
                             java.lang.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 java.lang.String getLastUser()
        Returns:
        last user name
      • setLastUser

        public void setLastUser​(java.lang.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()