Class OpenIntegrationClient
java.lang.Object
org.odpi.openmetadata.frameworks.integration.client.OpenIntegrationClient
- Direct Known Subclasses:
OpenIntegrationServiceBase
OpenIntegrationClient defines the interface of the client that implements calls to the metadata server.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOpenIntegrationClient
(String serviceURLMarker, String serverName, String serverPlatformURLRoot) Create a new client with no authentication embedded in the HTTP request. -
Method Summary
Modifier and TypeMethodDescriptionabstract String
createMetadataSource
(String userId, String softwareCapabilityTypeName, String classificationName, String qualifiedName, String deployedImplementationType) Create a new metadata element to represent a software capability.abstract String
getMetadataSourceGUID
(String userId, String qualifiedName) Retrieve the unique identifier of the metadata element that represents the metadata source.
-
Field Details
-
serverName
-
serverPlatformURLRoot
-
serviceURLMarker
-
-
Constructor Details
-
OpenIntegrationClient
public OpenIntegrationClient(String serviceURLMarker, String serverName, String serverPlatformURLRoot) Create a new client with no authentication embedded in the HTTP request.- Parameters:
serviceURLMarker
- the identifier of the access service (for example asset-owner for the Asset Owner OMAS)serverName
- name of the server to connect toserverPlatformURLRoot
- the network address of the server running the OMAS REST services
-
-
Method Details
-
getMetadataSourceGUID
public abstract String getMetadataSourceGUID(String userId, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Retrieve the unique identifier of the metadata element that represents the metadata source.- Parameters:
userId
- calling userqualifiedName
- unique name of the metadata source- Returns:
- unique identifier of the metadata source
- Throws:
InvalidParameterException
- the bean properties are invalidUserNotAuthorizedException
- user not authorized to issue this requestPropertyServerException
- problem accessing the property server
-
createMetadataSource
public abstract String createMetadataSource(String userId, String softwareCapabilityTypeName, String classificationName, String qualifiedName, String deployedImplementationType) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Create a new metadata element to represent a software capability. This describes the metadata source.- Parameters:
userId
- calling usersoftwareCapabilityTypeName
- name of software capability type to describe the metadata sourceclassificationName
- optional classification name that refines the type of the software capability.qualifiedName
- unique name for the external sourcedeployedImplementationType
- type of technology- Returns:
- unique identifier of the new metadata element
- Throws:
InvalidParameterException
- one of the parameters is invalidUserNotAuthorizedException
- the user is not authorized to issue this requestPropertyServerException
- there is a problem reported in the open metadata server(s)
-