Class GovernanceEngineRESTClient
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.accessservices.governanceengine.client.rest.GovernanceEngineRESTClient
public class GovernanceEngineRESTClient
extends org.odpi.openmetadata.frameworkservices.ocf.metadatamanagement.client.OCFRESTClient
GovernanceEngineRESTClient is responsible for issuing calls to the OMAS REST APIs.
-
Constructor Summary
ConstructorsConstructorDescriptionGovernanceEngineRESTClient(String serverName, String serverPlatformURLRoot) Constructor for no authentication.GovernanceEngineRESTClient(String serverName, String serverPlatformURLRoot, String userId, String password) Constructor for simple userId and password authentication.GovernanceEngineRESTClient(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.GovernanceEngineRESTClient(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.accessservices.governanceengine.rest.CatalogTargetResponsecallCatalogTargetGetRESTCall(String methodName, String urlTemplate, Object... params) Issue a GET REST call that returns a CatalogTargetResponse object.org.odpi.openmetadata.accessservices.governanceengine.rest.CatalogTargetsResponsecallCatalogTargetsGetRESTCall(String methodName, String urlTemplate, Object... params) Issue a GET REST call that returns a CatalogTargetsResponse object.org.odpi.openmetadata.accessservices.governanceengine.rest.GovernanceEngineElementResponsecallGovernanceEngineGetRESTCall(String methodName, String urlTemplate, Object... params) Issue a GET REST call that returns a GovernanceEngineElementResponse object.org.odpi.openmetadata.accessservices.governanceengine.rest.GovernanceEngineElementsResponsecallGovernanceEnginesGetRESTCall(String methodName, String urlTemplate, Object... params) Issue a GET REST call that returns a GovernanceEngineElementsResponse object.org.odpi.openmetadata.accessservices.governanceengine.rest.GovernanceServiceElementResponsecallGovernanceServiceGetRESTCall(String methodName, String urlTemplate, Object... params) Issue a GET REST call that returns a GovernanceServiceElementResponse object.org.odpi.openmetadata.accessservices.governanceengine.rest.GovernanceServiceElementsResponsecallGovernanceServicesGetRESTCall(String methodName, String urlTemplate, Object... params) Issue a GET REST call that returns a GovernanceServiceElementsResponse object.org.odpi.openmetadata.accessservices.governanceengine.rest.IntegrationConnectorElementResponsecallIntegrationConnectorGetRESTCall(String methodName, String urlTemplate, Object... params) Issue a GET REST call that returns a IntegrationConnectorElementResponse object.org.odpi.openmetadata.accessservices.governanceengine.rest.IntegrationConnectorElementsResponsecallIntegrationConnectorsGetRESTCall(String methodName, String urlTemplate, Object... params) Issue a GET REST call that returns a IntegrationConnectorElementsResponse object.org.odpi.openmetadata.accessservices.governanceengine.rest.IntegrationGroupElementResponsecallIntegrationGroupGetRESTCall(String methodName, String urlTemplate, Object... params) Issue a GET REST call that returns a IntegrationGroupElementResponse object.org.odpi.openmetadata.accessservices.governanceengine.rest.IntegrationGroupElementsResponsecallIntegrationGroupsGetRESTCall(String methodName, String urlTemplate, Object... params) Issue a GET REST call that returns a IntegrationGroupElementsResponse object.org.odpi.openmetadata.accessservices.governanceengine.rest.RegisteredGovernanceServiceResponsecallRegisteredGovernanceServiceGetRESTCall(String methodName, String urlTemplate, Object... params) Issue a GET REST call that returns a RegisteredGovernanceServiceResponse object.org.odpi.openmetadata.accessservices.governanceengine.rest.RegisteredGovernanceServicesResponsecallRegisteredGovernanceServicesGetRESTCall(String methodName, String urlTemplate, Object... params) Issue a GET REST call that returns a RegisteredGovernanceServicesResponse object.org.odpi.openmetadata.accessservices.governanceengine.rest.RegisteredIntegrationConnectorResponsecallRegisteredIntegrationConnectorGetRESTCall(String methodName, String urlTemplate, Object... params) Issue a GET REST call that returns a RegisteredIntegrationConnectorResponse object.org.odpi.openmetadata.accessservices.governanceengine.rest.RegisteredIntegrationConnectorsResponsecallRegisteredIntegrationConnectorsGetRESTCall(String methodName, String urlTemplate, Object... params) Issue a GET REST call that returns a RegisteredIntegrationConnectorsResponse 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
callBooleanGetRESTCall, callCountGetRESTCall, callGUIDGetRESTCall, callGUIDListGetRESTCall, callGUIDListPostRESTCall, callGUIDPostRESTCall, callNameListGetRESTCall, callOCFConnectorReportGetRESTCall, callStringMapGetRESTCall, callVoidGetRESTCall, callVoidPostRESTCallMethods inherited from class org.odpi.openmetadata.commonservices.ffdc.rest.FFDCRESTClientBase
callPostRESTCallNoParams
-
Constructor Details
-
GovernanceEngineRESTClient
public GovernanceEngineRESTClient(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 APIs.
-
GovernanceEngineRESTClient
public GovernanceEngineRESTClient(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 APIs.
-
GovernanceEngineRESTClient
public GovernanceEngineRESTClient(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 APIs.
-
GovernanceEngineRESTClient
public GovernanceEngineRESTClient(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 APIs.
-
-
Method Details
-
callGovernanceEngineGetRESTCall
public org.odpi.openmetadata.accessservices.governanceengine.rest.GovernanceEngineElementResponse callGovernanceEngineGetRESTCall(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 GovernanceEngineElementResponse object.- Parameters:
methodName- name of the method being calledurlTemplate- template of the URL for the REST API with place-holders for the 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.
-
callGovernanceEnginesGetRESTCall
public org.odpi.openmetadata.accessservices.governanceengine.rest.GovernanceEngineElementsResponse callGovernanceEnginesGetRESTCall(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 GovernanceEngineElementsResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API 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.
-
callGovernanceServiceGetRESTCall
public org.odpi.openmetadata.accessservices.governanceengine.rest.GovernanceServiceElementResponse callGovernanceServiceGetRESTCall(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 GovernanceServiceElementResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API 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.
-
callGovernanceServicesGetRESTCall
public org.odpi.openmetadata.accessservices.governanceengine.rest.GovernanceServiceElementsResponse callGovernanceServicesGetRESTCall(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 GovernanceServiceElementsResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API 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.
-
callRegisteredGovernanceServiceGetRESTCall
public org.odpi.openmetadata.accessservices.governanceengine.rest.RegisteredGovernanceServiceResponse callRegisteredGovernanceServiceGetRESTCall(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 RegisteredGovernanceServiceResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API 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.
-
callRegisteredGovernanceServicesGetRESTCall
public org.odpi.openmetadata.accessservices.governanceengine.rest.RegisteredGovernanceServicesResponse callRegisteredGovernanceServicesGetRESTCall(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 RegisteredGovernanceServicesResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API 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.
-
callIntegrationGroupGetRESTCall
public org.odpi.openmetadata.accessservices.governanceengine.rest.IntegrationGroupElementResponse callIntegrationGroupGetRESTCall(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 IntegrationGroupElementResponse object.- Parameters:
methodName- name of the method being calledurlTemplate- template of the URL for the REST API with place-holders for the 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.
-
callIntegrationGroupsGetRESTCall
public org.odpi.openmetadata.accessservices.governanceengine.rest.IntegrationGroupElementsResponse callIntegrationGroupsGetRESTCall(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 IntegrationGroupElementsResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API 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.
-
callIntegrationConnectorGetRESTCall
public org.odpi.openmetadata.accessservices.governanceengine.rest.IntegrationConnectorElementResponse callIntegrationConnectorGetRESTCall(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 IntegrationConnectorElementResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API 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.
-
callIntegrationConnectorsGetRESTCall
public org.odpi.openmetadata.accessservices.governanceengine.rest.IntegrationConnectorElementsResponse callIntegrationConnectorsGetRESTCall(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 IntegrationConnectorElementsResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API 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.
-
callRegisteredIntegrationConnectorGetRESTCall
public org.odpi.openmetadata.accessservices.governanceengine.rest.RegisteredIntegrationConnectorResponse callRegisteredIntegrationConnectorGetRESTCall(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 RegisteredIntegrationConnectorResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API 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.
-
callRegisteredIntegrationConnectorsGetRESTCall
public org.odpi.openmetadata.accessservices.governanceengine.rest.RegisteredIntegrationConnectorsResponse callRegisteredIntegrationConnectorsGetRESTCall(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 RegisteredIntegrationConnectorsResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API 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.
-
callCatalogTargetGetRESTCall
public org.odpi.openmetadata.accessservices.governanceengine.rest.CatalogTargetResponse callCatalogTargetGetRESTCall(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 CatalogTargetResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API 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.
-
callCatalogTargetsGetRESTCall
public org.odpi.openmetadata.accessservices.governanceengine.rest.CatalogTargetsResponse callCatalogTargetsGetRESTCall(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 CatalogTargetsResponse object.- Parameters:
methodName- name of the method being called.urlTemplate- template of the URL for the REST API 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.
-