public interface AuthorizationService
Modifier and Type | Method and Description |
---|---|
boolean |
autoLogon()
This function tries to automatic logon with SSO or NTLM.
|
boolean |
autoLogon(com.saperion.connector.authentication.SessionInfo sessionInfo)
This function tries to automatic logon with SSO or NTLM, passing the web
session information.
|
User |
changePassword(User user,
String newPassword)
Changes the password of the given user.
|
boolean |
closeSession(com.saperion.connector.authentication.Session session)
Close the given
Session |
User |
getCurrentUser() |
String |
getLastUser() |
SystemType |
getSystemType()
Get the system type.
|
List<UserType> |
getUserTypes()
Get available user types.
|
ModelConnectionStatus |
isConnected()
Check connection status.
|
void |
logoff()
Logoff from service.
|
User |
logon(AuthenticationInformation auth)
Logon to service.
|
boolean |
logoutHandledByLogonProvider()
This method checks if a
LogonProvider is responsible of handling actions to be
done after the user was logged out. |
void |
setCurrentUserPresent(boolean present)
Sets whether the current user is present.
|
void |
setCurrentUserSubstituteAccessEnabled(boolean accessEnabled)
Sets whether the current user's substitute has access to the users workflow-inbox.
|
void |
setLastUser(String lastUser)
Sets the last user name.
|
void |
setLocale(Locale locale)
Sets the locale for the underlying connection to the backend.
|
User logon(AuthenticationInformation auth) throws AuthenticationException, SystemException
auth
- authentication informationAuthenticationException
- when authentication to the backend has failedSystemException
- system exception when logging onboolean autoLogon() throws AuthenticationException, SystemException
AuthenticationException
- when authentication to the backend has failedSystemException
- system exception when logging onboolean autoLogon(com.saperion.connector.authentication.SessionInfo sessionInfo) throws AuthenticationException, SystemException
sessionInfo
- The web session informationAuthenticationException
- when authentication to the backend has failedSystemException
- system exception when logging onboolean logoutHandledByLogonProvider()
LogonProvider
is responsible of handling actions to be
done after the user was logged out. If a responsible provider is found, it's logout method will be called and
this method will return true.void logoff() throws AuthenticationException, DocumentLockException, SystemException
AuthenticationException
- authentication to the backend has failedDocumentLockException
- when a locked document could not be unlockedSystemException
- when logoff has failedSystemType getSystemType() throws SystemException
SystemException
- when the system type can not be determinedModelConnectionStatus isConnected() throws SystemException
SystemException
- when the connection status can not be determinedvoid setLastUser(String lastUser)
lastUser
- last user nameString getLastUser()
void setCurrentUserPresent(boolean present) throws SystemException, AuthenticationException
present
- whether the current user is presentSystemException
- when a system exception while setting presence occursAuthenticationException
- when authentication to the backend has failedvoid setCurrentUserSubstituteAccessEnabled(boolean accessEnabled) throws SystemException, AuthenticationException
accessEnabled
- whether the substitute has accessSystemException
- when a system exception while setting presence occursAuthenticationException
- when authentication to the backend has failedUser getCurrentUser() throws AuthenticationException, SystemException
AuthenticationException
- when authentication to the backend has failedSystemException
- when a system exception while obtaining the information occursUser changePassword(User user, String newPassword) throws SystemException, AuthenticationException
user
- The user to change the password for. If the authentication information is not
given, the call will fail, since the current password is needed to succeed.newPassword
- The new password for the userAuthenticationException
- when authentication to the backend has failedSystemException
- when a system exception while obtaining the information occursvoid setLocale(Locale locale) throws AuthenticationException, SystemException
locale
- locale to setAuthenticationException
- authentication exception when setting localeSystemException
- system exception when setting localeboolean closeSession(com.saperion.connector.authentication.Session session) throws AuthenticationException, SystemException
Session
session
- AuthenticationException
SystemException
Copyright © 2021 Hyland Software Germany GmbH. All rights reserved.