public class DataAdapterClient extends Object
| Constructor and Description |
|---|
DataAdapterClient()
Default constructor.
|
DataAdapterClient(String serviceUrl)
Create a new client with provided base URL.
|
DataAdapterClient(String serviceUrl,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Create a new client with provided base URL and custom object mapper.
|
| Modifier and Type | Method and Description |
|---|---|
io.getlime.core.rest.model.base.response.ObjectResponse<AuthenticationResponse> |
authenticateUser(String username,
String password,
OperationContext operationContext)
Perform authentication with provided username and password.
|
io.getlime.core.rest.model.base.response.ObjectResponse<CreateSMSAuthorizationResponse> |
createAuthorizationSMS(String userId,
OperationContext operationContext,
String lang)
Create authorization SMS message with OTP authorization code.
|
io.getlime.core.rest.model.base.response.ObjectResponse<DecorateOperationFormDataResponse> |
decorateOperationFormData(String userId,
OperationContext operationContext)
Decorate operation form data.
|
io.getlime.core.rest.model.base.response.ObjectResponse<UserDetailResponse> |
fetchUserDetail(String userId)
Obtain user details for given user ID.
|
io.getlime.core.rest.model.base.response.ObjectResponse |
formDataChangedNotification(FormDataChange formDataChange,
String userId,
OperationContext operationContext)
Send a notification about form data change.
|
io.getlime.core.rest.model.base.response.ObjectResponse |
operationChangedNotification(OperationChange operationChange,
String userId,
OperationContext operationContext)
Send a notification about operation change.
|
io.getlime.core.rest.model.base.response.Response |
verifyAuthorizationSMS(String messageId,
String authorizationCode,
OperationContext operationContext)
Verify OTP authorization code for previously generated SMS message.
|
public DataAdapterClient()
public DataAdapterClient(String serviceUrl)
serviceUrl - Base URL.public DataAdapterClient(String serviceUrl, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
serviceUrl - Base URL.objectMapper - Object mapper.public io.getlime.core.rest.model.base.response.ObjectResponse<AuthenticationResponse> authenticateUser(String username, String password, OperationContext operationContext) throws DataAdapterClientErrorException
username - username for user who is being authenticatedpassword - password as a stringoperationContext - operation contextDataAdapterClientErrorException - Thrown when client request fails.public io.getlime.core.rest.model.base.response.ObjectResponse<UserDetailResponse> fetchUserDetail(String userId) throws DataAdapterClientErrorException
userId - User ID for the user to be obtained.DataAdapterClientErrorException - Thrown when client request fails.public io.getlime.core.rest.model.base.response.ObjectResponse<CreateSMSAuthorizationResponse> createAuthorizationSMS(String userId, OperationContext operationContext, String lang) throws DataAdapterClientErrorException
userId - User ID.operationContext - Operation context.lang - Language for i18n.DataAdapterClientErrorException - Thrown when client request fails.public io.getlime.core.rest.model.base.response.Response verifyAuthorizationSMS(String messageId, String authorizationCode, OperationContext operationContext) throws DataAdapterClientErrorException
messageId - Message ID.authorizationCode - User entered authorization code.operationContext - Operation context.DataAdapterClientErrorException - Thrown when client request fails.public io.getlime.core.rest.model.base.response.ObjectResponse<DecorateOperationFormDataResponse> decorateOperationFormData(String userId, OperationContext operationContext) throws DataAdapterClientErrorException
userId - User ID of the user for this request.operationContext - Operation context.DataAdapterClientErrorException - Thrown when client request fails.public io.getlime.core.rest.model.base.response.ObjectResponse formDataChangedNotification(FormDataChange formDataChange, String userId, OperationContext operationContext) throws DataAdapterClientErrorException
formDataChange - Operation form data change.userId - User ID.operationContext - Operation context.DataAdapterClientErrorException - Thrown when client request fails.public io.getlime.core.rest.model.base.response.ObjectResponse operationChangedNotification(OperationChange operationChange, String userId, OperationContext operationContext) throws DataAdapterClientErrorException
operationChange - Operation change.userId - User ID.operationContext - Operation context.DataAdapterClientErrorException - Thrown when client request fails.Copyright © 2016–2019 Lime - HighTech Solutions Inc.. All rights reserved.