Class OpenMetadataBaseClient
java.lang.Object
org.odpi.openmetadata.accessservices.digitalservice.client.OpenMetadataBaseClient
- Direct Known Subclasses:
CollectionsClient
OpenMetadataBaseClient supports the common properties and functions for the open metadata based clients.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final InvalidParameterHandler
protected final OpenMetadataStoreClient
protected final PropertyHelper
-
Constructor Summary
ConstructorsConstructorDescriptionOpenMetadataBaseClient
(String serverName, String serverPlatformURLRoot, int maxPageSize) Create a new client with no authentication embedded in the HTTP request.OpenMetadataBaseClient
(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize) Create a new client that passes userId and password in each HTTP request. -
Method Summary
Modifier and TypeMethodDescriptionprotected ElementProperties
getElementProperties
(CollectionMembershipProperties collectionMembershipProperties) Convert the digital product properties into a set of element properties for the open metadata client.protected ElementProperties
getElementProperties
(CollectionProperties collectionProperties) Convert the collection properties into a set of element properties for the open metadata client.protected ElementProperties
getElementProperties
(DigitalProductProperties digitalProductProperties) Convert the digital product properties into a set of element properties for the open metadata client.
-
Field Details
-
invalidParameterHandler
-
propertyHelper
-
openMetadataStoreClient
-
-
Constructor Details
-
OpenMetadataBaseClient
public OpenMetadataBaseClient(String serverName, String serverPlatformURLRoot, int maxPageSize) throws 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 servicesmaxPageSize
- number of elements that can be returned on a call- Throws:
InvalidParameterException
- there is a problem creating the client-side components to issue any REST API calls.
-
OpenMetadataBaseClient
public OpenMetadataBaseClient(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize) throws 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 requestsmaxPageSize
- number of elements that can be returned on a call- Throws:
InvalidParameterException
- there is a problem creating the client-side components to issue any REST API calls.
-
-
Method Details
-
getElementProperties
Convert the collection properties into a set of element properties for the open metadata client.- Parameters:
collectionProperties
- supplied collection properties- Returns:
- element properties
-
getElementProperties
Convert the digital product properties into a set of element properties for the open metadata client.- Parameters:
digitalProductProperties
- supplied digital product properties- Returns:
- element properties
-
getElementProperties
protected ElementProperties getElementProperties(CollectionMembershipProperties collectionMembershipProperties) Convert the digital product properties into a set of element properties for the open metadata client.- Parameters:
collectionMembershipProperties
- supplied collection membership properties- Returns:
- element properties
-