public class SubjectAreaRestClient extends FFDCRESTClient
| Modifier and Type | Field and Description |
|---|---|
protected static InvalidParameterHandler |
invalidParameterHandler |
auditLog, exceptionHandler| Constructor and Description |
|---|
SubjectAreaRestClient(String serverName,
String serverPlatformURLRoot) |
SubjectAreaRestClient(String serverName,
String serverPlatformURLRoot,
String userId,
String password) |
| Modifier and Type | Method and Description |
|---|---|
QueryBuilder |
createFindQuery(String methodName,
FindRequest findRequest)
Method for constructing a query (https://en.wikipedia.org/wiki/Query_string) using the information described in the findRequest
|
<T> GenericResponse<T> |
deleteRESTCall(String userId,
String guid,
String methodName,
org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type,
String urnTemplate)
Issue a Delete REST call
|
<T> GenericResponse<T> |
findRESTCall(String userId,
String methodName,
String urnTemplate,
org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type,
FindRequest findRequest)
Issue a GET REST call that returns a response found objects using the information described in findRequest,
specifying the maximum amount that the downstream server supports.
|
<T> GenericResponse<T> |
findRESTCall(String userId,
String methodName,
String urnTemplate,
org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type,
FindRequest findRequest,
Integer maximumPageSizeOnRestCall)
Issue a GET REST call that returns a response found objects using the information described in findRequest,
specifying the maximum amount that the downstream server supports.
|
<T> GenericResponse<T> |
findRESTCall(String userId,
String guid,
String methodName,
String urnTemplate,
org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type,
FindRequest findRequest,
Integer maximumPageSizeOnRestCall)
Issue a GET REST call that returns a response found objects using the information described in findRequest
|
<T> GenericResponse<T> |
getByIdRESTCall(String userId,
String guid,
String methodName,
org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type,
String urnTemplate)
Issue a GET REST call that returns a response object by guid.
|
<T> GenericResponse<T> |
getByIdRESTCall(String userId,
String guid,
String methodName,
org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type,
String urnTemplate,
FindRequest findRequest)
Issue a GET REST call that returns a response object by guid.
|
<T> GenericResponse<T> |
getByIdRESTCall(String userId,
String guid,
String methodName,
org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type,
String urnTemplate,
FindRequest findRequest,
Integer maximumPageSizeOnRestCall,
Map<String,String> params)
Issue a GET REST call that returns a response object by guid.
|
String |
getServerName() |
String |
getServerPlatformURLRoot() |
<T> GenericResponse<T> |
postRESTCall(String userId,
String methodName,
String urnTemplate,
org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type,
T requestBody)
Issue a POST REST call that returns a response object.
|
<T> GenericResponse<T> |
putRESTCall(String userId,
String guid,
String methodName,
String urnTemplate,
org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type,
T requestBody)
Issue a PUT REST call that returns a response object.
|
<T> GenericResponse<T> |
restoreRESTCall(String userId,
String guid,
String methodName,
org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type,
String urnTemplate)
Issue a restore object
|
callCountGetRESTCall, callGUIDGetRESTCall, callGUIDListGetRESTCall, callGUIDListPostRESTCall, callGUIDPostRESTCall, callNameListGetRESTCall, callStringMapGetRESTCall, callVoidGetRESTCall, callVoidPostRESTCallcallDeleteRESTCall, callDeleteRESTCall, callGetRESTCall, callGetRESTCall, callGetRESTCallNoParams, callPostRESTCall, callPostRESTCall, callPostRESTCallNoParams, callPutRESTCall, callPutRESTCallprotected static final InvalidParameterHandler invalidParameterHandler
public SubjectAreaRestClient(String serverName, String serverPlatformURLRoot) throws InvalidParameterException
InvalidParameterExceptionpublic SubjectAreaRestClient(String serverName, String serverPlatformURLRoot, String userId, String password) throws InvalidParameterException
InvalidParameterExceptionpublic <T> GenericResponse<T> postRESTCall(String userId, String methodName, String urnTemplate, org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type, T requestBody) throws PropertyServerException, UserNotAuthorizedException, InvalidParameterException
T - return type for results in GenericResponseuserId - unique identifier for requesting user, under which the request is performedmethodName - name of the method being called.type - class of the response for generic object. Descried using ParameterizedTypeReference
An example can be seen here ResponseParameterization.getParameterizedType()urnTemplate - template of the URN for the REST API call with place-holders for the parameters.requestBody - request body for the request.PropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalidpublic <T> GenericResponse<T> putRESTCall(String userId, String guid, String methodName, String urnTemplate, org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type, T requestBody) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
T - return type for results in GenericResponseuserId - unique identifier for requesting user, under which the request is performedguid - unique identifier of the update objectmethodName - name of the method being called.type - class of the response for generic object. Descried using ParameterizedTypeReference
An example can be seen here ResponseParameterization.getParameterizedType()urnTemplate - template of the URN for the REST API call with place-holders for the parameters.requestBody - request body for the request.PropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalidpublic <T> GenericResponse<T> getByIdRESTCall(String userId, String guid, String methodName, org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type, String urnTemplate) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
T - return type for results in GenericResponseuserId - unique identifier for requesting user, under which the request is performedguid - unique identifier of the received objectmethodName - name of the method being called.type - class of the response for generic object. Descried using ParameterizedTypeReference
An example can be seen here ResponseParameterization.getParameterizedType()urnTemplate - template of the URN for the REST API call with place-holders for the parameters.PropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalidpublic <T> GenericResponse<T> getByIdRESTCall(String userId, String guid, String methodName, org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type, String urnTemplate, FindRequest findRequest) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
T - return type for results in GenericResponseuserId - unique identifier for requesting user, under which the request is performedguid - unique identifier of the received objectmethodName - name of the method being called.type - class of the response for generic object. Descried using ParameterizedTypeReference
An example can be seen here ResponseParameterization.getParameterizedType()urnTemplate - template of the URN for the REST API call with place-holders for the parameters.PropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalidpublic <T> GenericResponse<T> getByIdRESTCall(String userId, String guid, String methodName, org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type, String urnTemplate, FindRequest findRequest, Integer maximumPageSizeOnRestCall, Map<String,String> params) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
T - return type for results in GenericResponseuserId - unique identifier for requesting user, under which the request is performedguid - unique identifier of the received objectmethodName - name of the method being called.type - class of the response for generic object. Descried using ParameterizedTypeReference
An example can be seen here ResponseParameterization.getParameterizedType()urnTemplate - template of the URN for the REST API call with place-holders for the parameters.maximumPageSizeOnRestCall - maximum page size that can be used on rest calls, null and 0 mean no limit set.PropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalidpublic <T> GenericResponse<T> findRESTCall(String userId, String methodName, String urnTemplate, org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type, FindRequest findRequest) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
T - return type for results in GenericResponseuserId - unique identifier for requesting user, under which the request is performedmethodName - name of the method being called.urnTemplate - template of the URN for the REST API call with place-holders for the parameters.type - class of the response for generic object. Descried using ParameterizedTypeReference
An example can be seen here ResponseParameterization.getParameterizedType()findRequest - FindRequestPropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalidpublic <T> GenericResponse<T> findRESTCall(String userId, String methodName, String urnTemplate, org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type, FindRequest findRequest, Integer maximumPageSizeOnRestCall) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
T - return type for results in GenericResponseuserId - unique identifier for requesting user, under which the request is performedmethodName - name of the method being called.urnTemplate - template of the URN for the REST API call with place-holders for the parameters.type - class of the response for generic object. Descried using ParameterizedTypeReference
An example can be seen here ResponseParameterization.getParameterizedType()findRequest - FindRequestmaximumPageSizeOnRestCall - maximum page size that can be used on rest calls, null and 0 mean no limit set.PropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalidpublic <T> GenericResponse<T> findRESTCall(String userId, String guid, String methodName, String urnTemplate, org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type, FindRequest findRequest, Integer maximumPageSizeOnRestCall) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
T - return type for results in GenericResponseuserId - unique identifier for requesting user, under which the request is performedguid - unique identifier of the object to which the found objects should relatemethodName - name of the method being called.urnTemplate - template of the URN for the REST API call with place-holders for the parameters.type - class of the response for generic object. Descried using ParameterizedTypeReference
An example can be seen here ResponseParameterization.getParameterizedType()findRequest - FindRequestPropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalidpublic <T> GenericResponse<T> deleteRESTCall(String userId, String guid, String methodName, org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type, String urnTemplate) throws PropertyServerException, UserNotAuthorizedException, InvalidParameterException
T - return type for results in GenericResponseuserId - unique identifier for requesting user, under which the request is performedguid - unique identifier of the delete objectmethodName - name of the method being called.type - class of the response for generic object. Descried using ParameterizedTypeReference
An example can be seen here ResponseParameterization.getParameterizedType()urnTemplate - template of the URN for the REST API call with place-holders for the parameters.PropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalidpublic <T> GenericResponse<T> restoreRESTCall(String userId, String guid, String methodName, org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type, String urnTemplate) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
T - return type for results in GenericResponseuserId - unique identifier for requesting user, under which the request is performedguid - unique identifier of the restore objectmethodName - name of the method being called.type - class of the response for generic object. Descried using ParameterizedTypeReference
An example can be seen here ResponseParameterization.getParameterizedType()urnTemplate - template of the URN for the REST API call with place-holders for the parameters.PropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalidpublic QueryBuilder createFindQuery(String methodName, FindRequest findRequest) throws InvalidParameterException
methodName - name of the method being called.findRequest - FindRequestInvalidParameterException - one of the parameters is null or invalidpublic String getServerName()
public String getServerPlatformURLRoot()
Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.