public interface AuthorizationService
Modifier and Type | Method and Description |
---|---|
boolean |
autoLogon()
This function tries to automatic logon with SSO or NTLM.
|
User |
changePassword(User user,
String newPassword)
Changes the password of the given user.
|
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.
|
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 onvoid 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 localeCopyright © 2020 Hyland Software Germany GmbH. All rights reserved.