Class GAFRESTClient
java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.FFDCRESTClientBase
org.odpi.openmetadata.commonservices.ffdc.rest.FFDCRESTClient
org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.client.OCFRESTClient
org.odpi.openmetadata.frameworkservices.gaf.client.rest.GAFRESTClient
public class GAFRESTClient
extends org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.client.OCFRESTClient
GAFRESTClient is responsible for issuing calls to the OMAS REST APIs.
-
Constructor Summary
ConstructorsConstructorDescriptionGAFRESTClient(String serverName, String serverPlatformURLRoot) Constructor for no authentication.GAFRESTClient(String serverName, String serverPlatformURLRoot, String userId, String password) Constructor for simple userId and password authentication.GAFRESTClient(String serverName, String serverPlatformURLRoot, String userId, String password, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Constructor for simple userId and password authentication with audit log.GAFRESTClient(String serverName, String serverPlatformURLRoot, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Constructor for no authentication with audit log. -
Method Summary
Modifier and TypeMethodDescriptionorg.odpi.openmetadata.commonservices.ffdc.rest.BooleanResponsecallBooleanGetRESTCall(String methodName, String urlTemplate, Object... params) Issue a GET REST call that returns a BooleanResponse object.org.odpi.openmetadata.frameworkservices.gaf.rest.ElementHeaderResponsecallElementHeaderPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params) Issue a POST REST call that returns a ElementHeaderResponse object.org.odpi.openmetadata.frameworkservices.gaf.rest.ElementHeadersResponsecallElementHeadersPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params) Issue a POST REST call that returns a ElementHeadersResponse object.org.odpi.openmetadata.frameworkservices.gaf.rest.OpenMetadataElementResponsecallOpenMetadataElementGetRESTCall(String methodName, String urlTemplate, Object... params) Issue a GET REST call that returns a OpenMetadataElementResponse object.org.odpi.openmetadata.frameworkservices.gaf.rest.OpenMetadataElementResponsecallOpenMetadataElementPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params) Issue a POST REST call that returns a OpenMetadataElementResponse object.org.odpi.openmetadata.frameworkservices.gaf.rest.OpenMetadataElementsResponsecallOpenMetadataElementsPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params) Issue a POST REST call that returns a OpenMetadataElementsResponse object.org.odpi.openmetadata.frameworkservices.gaf.rest.RelatedMetadataElementListResponsecallRelatedMetadataElementListGetRESTCall(String methodName, String urlTemplate, Object... params) Issue a GET REST call that returns a RelatedMetadataElementListResponse object.org.odpi.openmetadata.frameworkservices.gaf.rest.RelatedMetadataElementListResponsecallRelatedMetadataElementListPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params) Issue a POST REST call that returns a RelatedMetadataElementListResponse object.org.odpi.openmetadata.frameworkservices.gaf.rest.RelatedMetadataElementsListResponsecallRelatedMetadataElementsListGetRESTCall(String methodName, String urlTemplate, Object... params) Issue a GET REST call that returns a RelatedMetadataElementsListResponse object.org.odpi.openmetadata.frameworkservices.gaf.rest.RelatedMetadataElementsListResponsecallRelatedMetadataElementsListPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params) Issue a POST REST call that returns a RelatedMetadataElementsListResponse object.org.odpi.openmetadata.frameworkservices.gaf.rest.TranslationDetailResponsecallTranslationDetailGetRESTCall(String methodName, String urlTemplate, Object... params) Issue a GET REST call that returns a TranslationDetailResponse object.org.odpi.openmetadata.frameworkservices.gaf.rest.TranslationListResponsecallTranslationListGetRESTCall(String methodName, String urlTemplate, Object... params) Issue a GET REST call that returns a TranslationListResponse object.org.odpi.openmetadata.frameworkservices.gaf.rest.ValidMetadataValueResponsecallValidMetadataValueGetRESTCall(String methodName, String urlTemplate, Object... params) Issue a GET REST call that returns a ValidMetadataValueResponse object.org.odpi.openmetadata.frameworkservices.gaf.rest.ValidMetadataValueListResponsecallValidMetadataValueListGetRESTCall(String methodName, String urlTemplate, Object... params) Issue a GET REST call that returns a ValidMetadataValueListResponse object.Methods inherited from class org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.client.OCFRESTClient
callOCFAssetGetRESTCall, callOCFAssetsGetRESTCall, callOCFAssetsPostRESTCall, callOCFConnectionGetRESTCall, callOCFTagGetRESTCall, callOCFTagListGetRESTCall, callOCFTagListPostRESTCallMethods inherited from class org.odpi.openmetadata.commonservices.ffdc.rest.FFDCRESTClient
callCountGetRESTCall, callGUIDGetRESTCall, callGUIDListGetRESTCall, callGUIDListPostRESTCall, callGUIDPostRESTCall, callNameListGetRESTCall, callOCFConnectorReportGetRESTCall, callStringMapGetRESTCall, callVoidGetRESTCall, callVoidPostRESTCallMethods inherited from class org.odpi.openmetadata.commonservices.ffdc.rest.FFDCRESTClientBase
callPostRESTCallNoParams
-
Constructor Details
-
GAFRESTClient
public GAFRESTClient(String serverName, String serverPlatformURLRoot, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Constructor for no authentication with audit log.- Parameters:
serverName- name of the OMAG Server to callserverPlatformURLRoot- URL root of the server manager where the OMAG Server is running.auditLog- destination for log messages.- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
GAFRESTClient
public GAFRESTClient(String serverName, String serverPlatformURLRoot) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Constructor for no authentication.- Parameters:
serverName- name of the OMAG Server to callserverPlatformURLRoot- URL root of the server manager where the OMAG Server is running.- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
GAFRESTClient
public GAFRESTClient(String serverName, String serverPlatformURLRoot, String userId, String password, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Constructor for simple userId and password authentication with audit log.- Parameters:
serverName- name of the OMAG Server to callserverPlatformURLRoot- URL root of the server manager where the OMAG Server is running.userId- user id for the HTTP requestpassword- password for the HTTP requestauditLog- destination for log messages.- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
GAFRESTClient
public GAFRESTClient(String serverName, String serverPlatformURLRoot, String userId, String password) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Constructor for simple userId and password authentication.- Parameters:
serverName- name of the OMAG Server to callserverPlatformURLRoot- URL root of the server manager where the OMAG Server is running.userId- user id for the HTTP requestpassword- password for the HTTP request- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
-
Method Details
-
callElementHeaderPostRESTCall
public org.odpi.openmetadata.frameworkservices.gaf.rest.ElementHeaderResponse callElementHeaderPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Issue a POST REST call that returns a ElementHeaderResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API call, with place-holders for the parameters.requestBody- object that passes additional parametersparams- a list of parameters that are slotted into the url template.- Returns:
- response object
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to make this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the repository is not available or not working properly.
-
callElementHeadersPostRESTCall
public org.odpi.openmetadata.frameworkservices.gaf.rest.ElementHeadersResponse callElementHeadersPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Issue a POST REST call that returns a ElementHeadersResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API call, with place-holders for the parameters.requestBody- object that passes additional parametersparams- a list of parameters that are slotted into the url template.- Returns:
- response object
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to make this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the repository is not available or not working properly.
-
callOpenMetadataElementsPostRESTCall
public org.odpi.openmetadata.frameworkservices.gaf.rest.OpenMetadataElementsResponse callOpenMetadataElementsPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Issue a POST REST call that returns a OpenMetadataElementsResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API call, with place-holders for the parameters.requestBody- object that passes additional parametersparams- a list of parameters that are slotted into the url template.- Returns:
- response object
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to make this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the repository is not available or not working properly.
-
callOpenMetadataElementPostRESTCall
public org.odpi.openmetadata.frameworkservices.gaf.rest.OpenMetadataElementResponse callOpenMetadataElementPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Issue a POST REST call that returns a OpenMetadataElementResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API call, with place-holders for the parameters.requestBody- object that passes additional parametersparams- a list of parameters that are slotted into the url template.- Returns:
- response object
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to make this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the repository is not available or not working properly.
-
callOpenMetadataElementGetRESTCall
public org.odpi.openmetadata.frameworkservices.gaf.rest.OpenMetadataElementResponse callOpenMetadataElementGetRESTCall(String methodName, String urlTemplate, Object... params) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Issue a GET REST call that returns a OpenMetadataElementResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API call, with place-holders for the parameters.params- a list of parameters that are slotted into the url template.- Returns:
- response object
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to make this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the repository is not available or not working properly.
-
callRelatedMetadataElementsListPostRESTCall
public org.odpi.openmetadata.frameworkservices.gaf.rest.RelatedMetadataElementsListResponse callRelatedMetadataElementsListPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Issue a POST REST call that returns a RelatedMetadataElementsListResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API call, with place-holders for the parameters.requestBody- object that passes additional parametersparams- a list of parameters that are slotted into the url template.- Returns:
- response object
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to make this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the repository is not available or not working properly.
-
callRelatedMetadataElementsListGetRESTCall
public org.odpi.openmetadata.frameworkservices.gaf.rest.RelatedMetadataElementsListResponse callRelatedMetadataElementsListGetRESTCall(String methodName, String urlTemplate, Object... params) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Issue a GET REST call that returns a RelatedMetadataElementsListResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API call, with place-holders for the parameters.params- a list of parameters that are slotted into the url template.- Returns:
- response object
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to make this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the repository is not available or not working properly.
-
callRelatedMetadataElementListPostRESTCall
public org.odpi.openmetadata.frameworkservices.gaf.rest.RelatedMetadataElementListResponse callRelatedMetadataElementListPostRESTCall(String methodName, String urlTemplate, Object requestBody, Object... params) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Issue a POST REST call that returns a RelatedMetadataElementListResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API call, with place-holders for the parameters.requestBody- object that passes additional parametersparams- a list of parameters that are slotted into the url template.- Returns:
- response object
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to make this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the repository is not available or not working properly.
-
callRelatedMetadataElementListGetRESTCall
public org.odpi.openmetadata.frameworkservices.gaf.rest.RelatedMetadataElementListResponse callRelatedMetadataElementListGetRESTCall(String methodName, String urlTemplate, Object... params) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Issue a GET REST call that returns a RelatedMetadataElementListResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API call, with place-holders for the parameters.params- a list of parameters that are slotted into the url template.- Returns:
- response object
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to make this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the repository is not available or not working properly.
-
callTranslationDetailGetRESTCall
public org.odpi.openmetadata.frameworkservices.gaf.rest.TranslationDetailResponse callTranslationDetailGetRESTCall(String methodName, String urlTemplate, Object... params) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Issue a GET REST call that returns a TranslationDetailResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API call, with place-holders for the parameters.params- a list of parameters that are slotted into the url template.- Returns:
- response object
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to make this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the repository is not available or not working properly.
-
callTranslationListGetRESTCall
public org.odpi.openmetadata.frameworkservices.gaf.rest.TranslationListResponse callTranslationListGetRESTCall(String methodName, String urlTemplate, Object... params) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Issue a GET REST call that returns a TranslationListResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API call, with place-holders for the parameters.params- a list of parameters that are slotted into the url template.- Returns:
- response object
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to make this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the repository is not available or not working properly.
-
callValidMetadataValueListGetRESTCall
public org.odpi.openmetadata.frameworkservices.gaf.rest.ValidMetadataValueListResponse callValidMetadataValueListGetRESTCall(String methodName, String urlTemplate, Object... params) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Issue a GET REST call that returns a ValidMetadataValueListResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API call, with place-holders for the parameters.params- a list of parameters that are slotted into the url template.- Returns:
- response object
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to make this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the repository is not available or not working properly.
-
callValidMetadataValueGetRESTCall
public org.odpi.openmetadata.frameworkservices.gaf.rest.ValidMetadataValueResponse callValidMetadataValueGetRESTCall(String methodName, String urlTemplate, Object... params) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Issue a GET REST call that returns a ValidMetadataValueResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API call, with place-holders for the parameters.params- a list of parameters that are slotted into the url template.- Returns:
- response object
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to make this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the repository is not available or not working properly.
-
callBooleanGetRESTCall
public org.odpi.openmetadata.commonservices.ffdc.rest.BooleanResponse callBooleanGetRESTCall(String methodName, String urlTemplate, Object... params) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Issue a GET REST call that returns a BooleanResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API call, with place-holders for the parameters.params- a list of parameters that are slotted into the url template.- Returns:
- response object
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to make this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- the repository is not available or not working properly.
-