public class AuthClassicConnectorService extends ClassicConnectorService implements AuthorizationService
Modifier and Type | Field and Description |
---|---|
static List<LogonProvider> |
PROVIDER
Logon provider list.
|
static String |
SAPV_TECH_PASS
SapViewer login techpass password.
|
static String |
SAPV_TECH_SYSTEM
SapViewer login techsystem system.
|
static String |
SAPV_TECH_USER
SapViewer login techuser.
|
ddcCache
Constructor and Description |
---|
AuthClassicConnectorService()
Creates a new AuthClassicConnectorService.
|
AuthClassicConnectorService(ConnectionProvider<com.saperion.connector.SaClassicConnector> connectionProvider)
Creates an AuthClassicConnectorService, given the connection provider .
|
AuthClassicConnectorService(ConnectionProvider<com.saperion.connector.SaClassicConnector> connectionProvider,
javax.servlet.http.HttpSession session)
Creates an AuthClassicConnectorService, given the connection provider .
|
AuthClassicConnectorService(javax.servlet.http.HttpSession session)
Creates a new AuthClassicConnectorService.
|
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 info)
Logon to service.
|
User |
logonTech(String tenant)
Logon with a technical user.
|
User |
logonTech(String tenant,
javax.servlet.http.HttpSession session)
Logon with a technical user.
|
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 user)
Sets the last user name.
|
void |
setLocale(Locale locale)
Sets the locale for the underlying connection to the backend.
|
convertAuthenticationException, getCachedDDC, getConnectionProvider, getCurrentUserFromSession, getSession, getWfConnectionProvider, isActive
public static final String SAPV_TECH_USER
public static final String SAPV_TECH_PASS
public static final String SAPV_TECH_SYSTEM
public static final List<LogonProvider> PROVIDER
public AuthClassicConnectorService()
public AuthClassicConnectorService(ConnectionProvider<com.saperion.connector.SaClassicConnector> connectionProvider)
connectionProvider
- the connection providerpublic AuthClassicConnectorService(javax.servlet.http.HttpSession session)
session
- the session to use in this auth-servicepublic AuthClassicConnectorService(ConnectionProvider<com.saperion.connector.SaClassicConnector> connectionProvider, javax.servlet.http.HttpSession session)
connectionProvider
- the connection providersession
- the session to use in this auth-servicepublic final User logon(AuthenticationInformation info) throws AuthenticationException, SystemException
logon
in interface AuthorizationService
info
- authentication informationAuthenticationException
- when authentication to the backend has failedSystemException
- system exception when logging on(com.saperion.ngc.model.authorization.User)
public final User logonTech(String tenant) throws AuthenticationException, SystemException
tenant
- MandantAuthenticationException
- Authentication failedSystemException
- System failurepublic final User logonTech(String tenant, javax.servlet.http.HttpSession session) throws AuthenticationException, SystemException
tenant
- Mandantsession
- the current sessionAuthenticationException
- Authentication failedSystemException
- System failurepublic final void logoff() throws AuthenticationException, DocumentLockException, SystemException
logoff
in interface AuthorizationService
AuthenticationException
- authentication to the backend has failedDocumentLockException
- when a locked document could not be unlockedSystemException
- when logoff has failedAuthorizationService.logoff()
public final List<UserType> getUserTypes()
getUserTypes
in interface AuthorizationService
AuthorizationService.getUserTypes()
public final SystemType getSystemType() throws SystemException
getSystemType
in interface AuthorizationService
SystemException
- when the system type can not be determinedAuthorizationService.getSystemType()
public boolean autoLogon() throws AuthenticationException, SystemException
autoLogon
in interface AuthorizationService
AuthenticationException
- when authentication to the backend has failedSystemException
- system exception when logging onAuthorizationService.autoLogon()
public final ModelConnectionStatus isConnected() throws SystemException
isConnected
in interface AuthorizationService
SystemException
- when the connection status can not be determinedAuthorizationService.isConnected()
public final String getLastUser()
getLastUser
in interface AuthorizationService
public void setCurrentUserPresent(boolean present) throws SystemException, AuthenticationException
setCurrentUserPresent
in interface AuthorizationService
present
- whether the current user is presentSystemException
- when a system exception while setting presence occursAuthenticationException
- when authentication to the backend has failedpublic void setCurrentUserSubstituteAccessEnabled(boolean accessEnabled) throws SystemException, AuthenticationException
setCurrentUserSubstituteAccessEnabled
in interface AuthorizationService
accessEnabled
- whether the substitute has accessSystemException
- when a system exception while setting presence occursAuthenticationException
- when authentication to the backend has failedpublic User getCurrentUser() throws AuthenticationException, SystemException
getCurrentUser
in interface AuthorizationService
AuthenticationException
- when authentication to the backend has failedSystemException
- when a system exception while obtaining the information occurspublic User changePassword(User user, String newPassword) throws SystemException, AuthenticationException
AuthorizationService
changePassword
in interface AuthorizationService
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 userSystemException
- when a system exception while obtaining the information occursAuthenticationException
- when authentication to the backend has failedpublic final void setLastUser(String user)
setLastUser
in interface AuthorizationService
user
- last user namepublic void setLocale(Locale locale) throws AuthenticationException, SystemException
setLocale
in interface AuthorizationService
locale
- locale to setAuthenticationException
- authentication exception when setting localeSystemException
- system exception when setting localeAuthorizationService.setLocale(java.util.Locale)
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.