public class ConnectedAssetClientBase extends Object
| Modifier and Type | Field and Description |
|---|---|
protected AuditLog |
auditLog |
protected InvalidParameterHandler |
invalidParameterHandler |
protected static NullRequestBody |
nullRequestBody |
protected String |
serverName |
protected String |
serverPlatformRootURL |
| Constructor and Description |
|---|
ConnectedAssetClientBase(String serverName,
String serverPlatformRootURL)
Create a new client with no authentication embedded in the HTTP request.
|
ConnectedAssetClientBase(String serverName,
String serverPlatformRootURL,
AuditLog auditLog)
Create a new client with no authentication embedded in the HTTP request.
|
ConnectedAssetClientBase(String serverName,
String serverPlatformRootURL,
int maxPageSize,
AuditLog auditLog)
Create a new client with no authentication embedded in the HTTP request.
|
| Modifier and Type | Method and Description |
|---|---|
protected String |
getAssetForConnection(OCFRESTClient restClient,
String serviceName,
String userId,
String connectionGUID)
Returns the unique identifier for the asset connected to the requested connection.
|
protected AssetUniverse |
getAssetProperties(String serviceName,
String userId,
String assetGUID)
Returns a comprehensive collection of properties about the requested asset.
|
protected Asset |
getAssetSummary(OCFRESTClient restClient,
String serviceName,
String userId,
String guid,
String methodName)
Return the basic properties of a asset.
|
protected Connection |
getConnectionByGUID(OCFRESTClient restClient,
String serviceName,
String userId,
String guid)
Returns the connection corresponding to the supplied connection GUID.
|
protected Connection |
getConnectionByName(OCFRESTClient restClient,
String serviceName,
String userId,
String name)
Returns the connection object corresponding to the supplied connection name.
|
protected Connection |
getConnectionForAsset(OCFRESTClient restClient,
String serviceName,
String userId,
String assetGUID)
Returns the connection corresponding to the supplied asset GUID.
|
protected Connector |
getConnectorForConnection(OCFRESTClient restClient,
String serviceName,
String userId,
Connection requestedConnection,
String methodName)
Use the Open Connector Framework (OCF) to create a connector using the supplied connection.
|
protected String serverName
protected String serverPlatformRootURL
protected AuditLog auditLog
protected InvalidParameterHandler invalidParameterHandler
protected static NullRequestBody nullRequestBody
public ConnectedAssetClientBase(String serverName, String serverPlatformRootURL, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformRootURL - the network address of the server running the OMAS REST serversauditLog - destination for log messagesInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public ConnectedAssetClientBase(String serverName, String serverPlatformRootURL, int maxPageSize, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformRootURL - the network address of the server running the OMAS REST serversmaxPageSize - maximum page size for this processauditLog - destination for log messagesInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public ConnectedAssetClientBase(String serverName, String serverPlatformRootURL) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformRootURL - the network address of the server running the OMAS REST serversInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.protected Asset getAssetSummary(OCFRESTClient restClient, String serviceName, String userId, String guid, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
restClient - client that calls REST APIsserviceName - name of the calling serviceuserId - calling userguid - unique identifier of assetmethodName - calling methodInvalidParameterException - the name is invalidPropertyServerException - there is a problem access in the property serverUserNotAuthorizedException - the user does not have access to the propertiesprotected AssetUniverse getAssetProperties(String serviceName, String userId, String assetGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
serviceName - name of the calling serviceuserId - userId of user making request.assetGUID - unique identifier for asset.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving the asset properties from the property servers).UserNotAuthorizedException - the requesting user is not authorized to issue this request.protected Connector getConnectorForConnection(OCFRESTClient restClient, String serviceName, String userId, Connection requestedConnection, String methodName) throws ConnectionCheckedException, ConnectorCheckedException
restClient - client that calls REST APIsserviceName - calling serviceuserId - calling userrequestedConnection - connection describing the required connector.methodName - name of the calling method.ConnectionCheckedException - there are issues with the values in the connectionConnectorCheckedException - the connector had an operational issue accessing the asset.protected Connection getConnectionByGUID(OCFRESTClient restClient, String serviceName, String userId, String guid) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
restClient - client that calls REST APIsserviceName - name of the calling serviceuserId - userId of user making request.guid - the unique id for the connection within the metadata repository.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.protected Connection getConnectionByName(OCFRESTClient restClient, String serviceName, String userId, String name) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
restClient - client that calls REST APIsserviceName - name of the calling serviceuserId - String - userId of user making request.name - this is the qualifiedName of the connection.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving information from the property (metadata) server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.protected Connection getConnectionForAsset(OCFRESTClient restClient, String serviceName, String userId, String assetGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
restClient - client that calls REST APIsserviceName - name of the calling serviceuserId - userId of user making request.assetGUID - the unique id for the asset within the metadata repository.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.protected String getAssetForConnection(OCFRESTClient restClient, String serviceName, String userId, String connectionGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
restClient - initialized client for calling REST APIs.serviceName - name of the calling service.userId - the userId of the requesting user.connectionGUID - unique identifier for the connection.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving information from the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.