Package com.saperion.ngc.authorization
Class AuthorizationPresenter
- java.lang.Object
-
- com.saperion.ngc.authorization.AuthorizationPresenter
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AuthorizationPresenter(AuthorizationView authView)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkForExistingSessions()
Checks for existing sessions of logged in user.void
checkIfUserIsAbsent()
Checks if the user is absent.protected void
checkModelConnection()
Checks model connection.java.lang.String
getLastUser()
protected void
logoff()
Logoff.protected void
logon(java.lang.String username, java.lang.String password, int selectedItem, java.lang.String mandant)
boolean
logoutHandledByLogonProvider()
protected void
onCreate()
Set the selected userType.void
setLastUser(java.lang.String lastUser)
Sets the last user name.protected void
startup()
Startup.
-
-
-
Constructor Detail
-
AuthorizationPresenter
protected AuthorizationPresenter(AuthorizationView authView)
- Parameters:
authView
- View
-
-
Method Detail
-
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(java.lang.String username, java.lang.String password, int selectedItem, java.lang.String mandant) throws NgcUiException, AuthenticationException
- Parameters:
username
- Usernamepassword
- PasswordselectedItem
- Index of the selected item in the user-type-comboboxmandant
- Mandant- Throws:
NgcUiException
- Exception to be handled by viewAuthenticationException
- 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()
-
-