public class SubjectAreaRestClient extends FFDCRESTClient
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> SubjectAreaOMASAPIResponse<T> |
deleteRESTCall(String userId,
String guid,
String methodName,
org.springframework.core.ParameterizedTypeReference<SubjectAreaOMASAPIResponse<T>> type,
String urnTemplate)
Issue a Delete REST call
|
<T> SubjectAreaOMASAPIResponse<T> |
findRESTCall(String userId,
String methodName,
String urnTemplate,
org.springframework.core.ParameterizedTypeReference<SubjectAreaOMASAPIResponse<T>> type,
FindRequest findRequest)
Issue a GET REST call that returns a response found objects using the information described in findRequest
|
<T> SubjectAreaOMASAPIResponse<T> |
findRESTCall(String userId,
String guid,
String methodName,
String urnTemplate,
org.springframework.core.ParameterizedTypeReference<SubjectAreaOMASAPIResponse<T>> type,
FindRequest findRequest)
Issue a GET REST call that returns a response found objects using the information described in findRequest
|
<T> SubjectAreaOMASAPIResponse<T> |
getByIdRESTCall(String userId,
String guid,
String methodName,
org.springframework.core.ParameterizedTypeReference<SubjectAreaOMASAPIResponse<T>> type,
String urnTemplate)
Issue a GET REST call that returns a response object by guid.
|
String |
getServerName() |
String |
getServerPlatformURLRoot() |
<T> SubjectAreaOMASAPIResponse<T> |
postRESTCall(String userId,
String methodName,
String urnTemplate,
org.springframework.core.ParameterizedTypeReference<SubjectAreaOMASAPIResponse<T>> type,
T requestBody)
Issue a POST REST call that returns a response object.
|
<T> SubjectAreaOMASAPIResponse<T> |
putRESTCall(String userId,
String guid,
String methodName,
String urnTemplate,
org.springframework.core.ParameterizedTypeReference<SubjectAreaOMASAPIResponse<T>> type,
T requestBody)
Issue a PUT REST call that returns a response object.
|
<T> SubjectAreaOMASAPIResponse<T> |
restoreRESTCall(String userId,
String guid,
String methodName,
org.springframework.core.ParameterizedTypeReference<SubjectAreaOMASAPIResponse<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, callPutRESTCallpublic SubjectAreaRestClient(String serverName, String serverPlatformURLRoot) throws InvalidParameterException
InvalidParameterExceptionpublic SubjectAreaRestClient(String serverName, String serverPlatformURLRoot, String userId, String password) throws InvalidParameterException
InvalidParameterExceptionpublic <T> SubjectAreaOMASAPIResponse<T> postRESTCall(String userId, String methodName, String urnTemplate, org.springframework.core.ParameterizedTypeReference<SubjectAreaOMASAPIResponse<T>> type, T requestBody) throws PropertyServerException, UserNotAuthorizedException, InvalidParameterException
T - return type for results in SubjectAreaOMASAPIResponseuserId - 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 Parametrization.getParametrizedType()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> SubjectAreaOMASAPIResponse<T> putRESTCall(String userId, String guid, String methodName, String urnTemplate, org.springframework.core.ParameterizedTypeReference<SubjectAreaOMASAPIResponse<T>> type, T requestBody) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
T - return type for results in SubjectAreaOMASAPIResponseuserId - 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 Parametrization.getParametrizedType()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> SubjectAreaOMASAPIResponse<T> getByIdRESTCall(String userId, String guid, String methodName, org.springframework.core.ParameterizedTypeReference<SubjectAreaOMASAPIResponse<T>> type, String urnTemplate) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
T - return type for results in SubjectAreaOMASAPIResponseuserId - 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 Parametrization.getParametrizedType()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> SubjectAreaOMASAPIResponse<T> findRESTCall(String userId, String methodName, String urnTemplate, org.springframework.core.ParameterizedTypeReference<SubjectAreaOMASAPIResponse<T>> type, FindRequest findRequest) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
T - return type for results in SubjectAreaOMASAPIResponseuserId - 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 Parametrization.getParametrizedType()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> SubjectAreaOMASAPIResponse<T> findRESTCall(String userId, String guid, String methodName, String urnTemplate, org.springframework.core.ParameterizedTypeReference<SubjectAreaOMASAPIResponse<T>> type, FindRequest findRequest) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
T - return type for results in SubjectAreaOMASAPIResponseuserId - 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 Parametrization.getParametrizedType()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> SubjectAreaOMASAPIResponse<T> deleteRESTCall(String userId, String guid, String methodName, org.springframework.core.ParameterizedTypeReference<SubjectAreaOMASAPIResponse<T>> type, String urnTemplate) throws PropertyServerException, UserNotAuthorizedException, InvalidParameterException
T - return type for results in SubjectAreaOMASAPIResponseuserId - 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 Parametrization.getParametrizedType()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> SubjectAreaOMASAPIResponse<T> restoreRESTCall(String userId, String guid, String methodName, org.springframework.core.ParameterizedTypeReference<SubjectAreaOMASAPIResponse<T>> type, String urnTemplate) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
T - return type for results in SubjectAreaOMASAPIResponseuserId - 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 Parametrization.getParametrizedType()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–2020 ODPi. All rights reserved.