Package com.lexmark.saperion.client.spi
Interface Connector
public interface Connector
A connector is bound to a specific saperion system. The communication protocol varies by implementation. Given valid
user credentials of its saperion system it is able to connect, authenticate and create a service factory that
uses the user context of the given credentials.
- Author:
- jschwarz
-
Method Summary
Modifier and TypeMethodDescriptionchangePassword
(String userName, String oldPassword, String newPassword, com.lexmark.saperion.LicenseEnumeration licenseType, String tenantName) This method connects to the saperion server, authenticates the given credentials, changes the password and creates aServiceFactory
that uses the user context of the given credentials.This method connects to the saperion server, authenticates the given credentials and creates aServiceFactory
that uses the user context of the given credentials.connect
(String userName, String password, com.lexmark.saperion.LicenseEnumeration licenseType, String tenantName) This method connects to the saperion server, authenticates the given credentials and creates aServiceFactory
that uses the user context of the given credentials.connect
(String userName, String password, com.lexmark.saperion.LicenseEnumeration licenseType, String tenantName, String impersonatedUser) This method connects to the saperion server, authenticates the given credentials and creates aServiceFactory
that uses the user context of the given credentials.
-
Method Details
-
connect
ServiceFactory connect(String userName, String password, com.lexmark.saperion.LicenseEnumeration licenseType, String tenantName) throws com.lexmark.saperion.exceptions.EcmException This method connects to the saperion server, authenticates the given credentials and creates aServiceFactory
that uses the user context of the given credentials.- Parameters:
userName
- the name of the userpassword
- the password of the userlicenseType
- the license usedtenantName
- the name of the tenant of the user- Returns:
- a ServiceFactory that uses the user context of the given credentials
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
connect
ServiceFactory connect(String userName, String password, com.lexmark.saperion.LicenseEnumeration licenseType, String tenantName, String impersonatedUser) throws com.lexmark.saperion.exceptions.EcmException This method connects to the saperion server, authenticates the given credentials and creates aServiceFactory
that uses the user context of the given credentials.- Parameters:
userName
- the name of the userpassword
- the password of the userlicenseType
- the license usedtenantName
- the name of the tenant of the userimpersonatedUser
- the name of the impersonated user- Returns:
- a ServiceFactory that uses the user context of the given credentials
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
connect
ServiceFactory connect(String token, com.lexmark.saperion.LicenseEnumeration licenseType, String tenantName) throws com.lexmark.saperion.exceptions.EcmException This method connects to the saperion server, authenticates the given credentials and creates aServiceFactory
that uses the user context of the given credentials.- Parameters:
token
- a token retrieved from an authorization servicelicenseType
- the license usedtenantName
- the name of the tenant of the user- Returns:
- a ServiceFactory that uses the user context of the given credentials
- Throws:
com.lexmark.saperion.exceptions.EcmException
-
changePassword
ServiceFactory changePassword(String userName, String oldPassword, String newPassword, com.lexmark.saperion.LicenseEnumeration licenseType, String tenantName) throws com.lexmark.saperion.exceptions.EcmException This method connects to the saperion server, authenticates the given credentials, changes the password and creates aServiceFactory
that uses the user context of the given credentials. For a user that whose password is expired this is the only option to log in (and change the password) again.- Parameters:
userName
- the name of the useroldPassword
- the old (possibly expired) password of the usernewPassword
- the new password of the userlicenseType
- the license usedtenantName
- the name of the tenant of the user- Returns:
- a ServiceFactory that uses the user context of the given credentials
- Throws:
com.lexmark.saperion.exceptions.EcmException
-