Class EndpointManagerClient
java.lang.Object
org.odpi.openmetadata.accessservices.itinfrastructure.client.EndpointManagerClient
- All Implemented Interfaces:
org.odpi.openmetadata.accessservices.itinfrastructure.api.EndpointManagerInterface
public class EndpointManagerClient
extends Object
implements org.odpi.openmetadata.accessservices.itinfrastructure.api.EndpointManagerInterface
EndpointManagerClient supports the APIs to maintain connections and their related objects.
-
Constructor Summary
ConstructorsConstructorDescriptionEndpointManagerClient(String serverName, String serverPlatformURLRoot) Create a new client with no authentication embedded in the HTTP request.EndpointManagerClient(String serverName, String serverPlatformURLRoot, String userId, String password) Create a new client that passes userId and password in each HTTP request.EndpointManagerClient(String serverName, String serverPlatformURLRoot, String userId, String password, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Create a new client that passes userId and password in each HTTP request.EndpointManagerClient(String serverName, String serverPlatformURLRoot, ITInfrastructureRESTClient restClient, int maxPageSize) Create a new client that is going to be used in an OMAG Server.EndpointManagerClient(String serverName, String serverPlatformURLRoot, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) Create a new client with no authentication embedded in the HTTP request. -
Method Summary
Modifier and TypeMethodDescriptioncreateEndpoint(String userId, String infrastructureManagerGUID, String infrastructureManagerName, String infrastructureGUID, org.odpi.openmetadata.frameworks.openmetadata.properties.connections.EndpointProperties endpointProperties) Create a new metadata element to represent an endpointcreateEndpointFromTemplate(String userId, String infrastructureManagerGUID, String infrastructureManagerName, String infrastructureGUID, String networkAddress, String templateGUID, org.odpi.openmetadata.accessservices.itinfrastructure.properties.TemplateProperties templateProperties) Create a new metadata element to represent a endpoint using an existing metadata element as a template.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.EndpointElement>findEndpoints(String userId, String searchString, int startFrom, int pageSize) Retrieve the list of endpoint metadata elements that contain the search string.org.odpi.openmetadata.frameworks.openmetadata.metadataelements.EndpointElementgetEndpointByGUID(String userId, String endpointGUID) Retrieve the endpoint metadata element with the supplied unique identifier.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.EndpointElement>getEndpointsByName(String userId, String name, int startFrom, int pageSize) Retrieve the list of endpoint metadata elements with a matching qualified or display name.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.EndpointElement>getEndpointsByNetworkAddress(String userId, String networkAddress, int startFrom, int pageSize) Retrieve the list of endpoint metadata elements with a matching networkAddress.List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.EndpointElement>getEndpointsForInfrastructure(String userId, String infrastructureGUID, int startFrom, int pageSize) Retrieve the list of endpoint metadata elements that are attached to a specific infrastructure element.voidremoveEndpoint(String userId, String infrastructureManagerGUID, String infrastructureManagerName, String endpointGUID) Remove the metadata element representing a endpoint.voidupdateEndpoint(String userId, String infrastructureManagerGUID, String infrastructureManagerName, boolean isMergeUpdate, String endpointGUID, org.odpi.openmetadata.frameworks.openmetadata.properties.connections.EndpointProperties endpointProperties) Update the metadata element representing a endpoint.
-
Constructor Details
-
EndpointManagerClient
public EndpointManagerClient(String serverName, String serverPlatformURLRoot, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Create a new client with no authentication embedded in the HTTP request.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST servicesauditLog- logging destination- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
EndpointManagerClient
public EndpointManagerClient(String serverName, String serverPlatformURLRoot) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Create a new client with no authentication embedded in the HTTP request.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST services- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
EndpointManagerClient
public EndpointManagerClient(String serverName, String serverPlatformURLRoot, String userId, String password) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Create a new client that passes userId and password in each HTTP request. This is the userId/password of the calling server. The end user's userId is sent on each request.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST servicesuserId- caller's userId embedded in all HTTP requestspassword- caller's userId embedded in all HTTP requests- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
EndpointManagerClient
public EndpointManagerClient(String serverName, String serverPlatformURLRoot, String userId, String password, org.odpi.openmetadata.frameworks.auditlog.AuditLog auditLog) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Create a new client that passes userId and password in each HTTP request. This is the userId/password of the calling server. The end user's userId is sent on each request.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST servicesuserId- caller's userId embedded in all HTTP requestspassword- caller's userId embedded in all HTTP requestsauditLog- logging destination- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
EndpointManagerClient
public EndpointManagerClient(String serverName, String serverPlatformURLRoot, ITInfrastructureRESTClient restClient, int maxPageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Create a new client that is going to be used in an OMAG Server.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST servicesrestClient- client that issues the REST API callsmaxPageSize- maximum number of results supported by this server- 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
-
createEndpoint
public String createEndpoint(String userId, String infrastructureManagerGUID, String infrastructureManagerName, String infrastructureGUID, org.odpi.openmetadata.frameworks.openmetadata.properties.connections.EndpointProperties endpointProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a new metadata element to represent an endpoint- Specified by:
createEndpointin interfaceorg.odpi.openmetadata.accessservices.itinfrastructure.api.EndpointManagerInterface- Parameters:
userId- calling userinfrastructureManagerGUID- unique identifier of software server capability representing the callerinfrastructureManagerName- unique name of software server capability representing the callerinfrastructureGUID- unique identifier of the infrastructure to connect it to (optional)endpointProperties- properties about the endpoint to store- Returns:
- unique identifier of the new endpoint
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
createEndpointFromTemplate
public String createEndpointFromTemplate(String userId, String infrastructureManagerGUID, String infrastructureManagerName, String infrastructureGUID, String networkAddress, String templateGUID, org.odpi.openmetadata.accessservices.itinfrastructure.properties.TemplateProperties templateProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Create a new metadata element to represent a endpoint using an existing metadata element as a template.- Specified by:
createEndpointFromTemplatein interfaceorg.odpi.openmetadata.accessservices.itinfrastructure.api.EndpointManagerInterface- Parameters:
userId- calling userinfrastructureManagerGUID- unique identifier of software server capability representing the callerinfrastructureManagerName- unique name of software server capability representing the callerinfrastructureGUID- unique identifier of the infrastructure to connect it to (optional)networkAddress- location of the endpointtemplateGUID- unique identifier of the metadata element to copytemplateProperties- descriptive properties that override the template- Returns:
- unique identifier of the new endpoint
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
updateEndpoint
public void updateEndpoint(String userId, String infrastructureManagerGUID, String infrastructureManagerName, boolean isMergeUpdate, String endpointGUID, org.odpi.openmetadata.frameworks.openmetadata.properties.connections.EndpointProperties endpointProperties) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Update the metadata element representing a endpoint. It is possible to use the subtype property classes or set up specialized properties in extended properties.- Specified by:
updateEndpointin interfaceorg.odpi.openmetadata.accessservices.itinfrastructure.api.EndpointManagerInterface- Parameters:
userId- calling userinfrastructureManagerGUID- unique identifier of software server capability representing the callerinfrastructureManagerName- unique name of software server capability representing the callerendpointGUID- unique identifier of the metadata element to updateisMergeUpdate- should the new properties be merged with existing properties (true) or completely replace them (false)?endpointProperties- new properties for the metadata element- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
removeEndpoint
public void removeEndpoint(String userId, String infrastructureManagerGUID, String infrastructureManagerName, String endpointGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Remove the metadata element representing a endpoint.- Specified by:
removeEndpointin interfaceorg.odpi.openmetadata.accessservices.itinfrastructure.api.EndpointManagerInterface- Parameters:
userId- calling userinfrastructureManagerGUID- unique identifier of software server capability representing the callerinfrastructureManagerName- unique name of software server capability representing the callerendpointGUID- unique identifier of the metadata element to remove- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
findEndpoints
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.EndpointElement> findEndpoints(String userId, String searchString, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the list of endpoint metadata elements that contain the search string. The search string is treated as a regular expression.- Specified by:
findEndpointsin interfaceorg.odpi.openmetadata.accessservices.itinfrastructure.api.EndpointManagerInterface- Parameters:
userId- calling usersearchString- string to find in the propertiesstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getEndpointsByName
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.EndpointElement> getEndpointsByName(String userId, String name, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the list of endpoint metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Specified by:
getEndpointsByNamein interfaceorg.odpi.openmetadata.accessservices.itinfrastructure.api.EndpointManagerInterface- Parameters:
userId- calling username- name to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getEndpointsByNetworkAddress
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.EndpointElement> getEndpointsByNetworkAddress(String userId, String networkAddress, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the list of endpoint metadata elements with a matching networkAddress. There are no wildcards supported on this request.- Specified by:
getEndpointsByNetworkAddressin interfaceorg.odpi.openmetadata.accessservices.itinfrastructure.api.EndpointManagerInterface- Parameters:
userId- calling usernetworkAddress- networkAddress to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getEndpointsForInfrastructure
public List<org.odpi.openmetadata.frameworks.openmetadata.metadataelements.EndpointElement> getEndpointsForInfrastructure(String userId, String infrastructureGUID, int startFrom, int pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the list of endpoint metadata elements that are attached to a specific infrastructure element.- Specified by:
getEndpointsForInfrastructurein interfaceorg.odpi.openmetadata.accessservices.itinfrastructure.api.EndpointManagerInterface- Parameters:
userId- calling userinfrastructureGUID- element to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-
getEndpointByGUID
public org.odpi.openmetadata.frameworks.openmetadata.metadataelements.EndpointElement getEndpointByGUID(String userId, String endpointGUID) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Retrieve the endpoint metadata element with the supplied unique identifier.- Specified by:
getEndpointByGUIDin interfaceorg.odpi.openmetadata.accessservices.itinfrastructure.api.EndpointManagerInterface- Parameters:
userId- calling userendpointGUID- unique identifier of the requested metadata element- Returns:
- requested metadata element
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the user is not authorized to issue this requestorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- there is a problem reported in the open metadata server(s)
-