public class DataEngineRESTClient extends OCFRESTClient implements DataEngineClient
auditLog, exceptionHandler, serverName, serverPlatformURLRoot| Constructor and Description |
|---|
DataEngineRESTClient(String serverName,
String serverPlatformRootURL)
Create a new client without authentication.
|
DataEngineRESTClient(String serverName,
String serverPlatformRootURL,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLineageMappings(String userId,
List<LineageMapping> lineageMappings)
Add lineage mapping relationships between schema types
|
void |
addPortsToProcess(String userId,
List<String> portQualifiedNames,
String processGUID)
Add ports and process ports relationship to an existing port
|
String |
createExternalDataEngine(String userId,
SoftwareServerCapability softwareServerCapability)
Create or update the software server capability entity
|
String |
createOrUpdatePortAlias(String userId,
PortAlias portAlias)
Create or update the port alias entity with a PortDelegation relationship
|
String |
createOrUpdatePortImplementation(String userId,
PortImplementation portImplementation)
Create or update the port implementation entity,with the corresponding schema type and port schema relationship
|
List<String> |
createOrUpdateProcesses(String userId,
List<Process> processes)
Create or update the processes, with all the ports, schema types and corresponding relationships including
process hierarchy relationships.
|
String |
createOrUpdateSchemaType(String userId,
SchemaType schemaType)
Create or update the schema type entity, with the corresponding schema attributes and relationships
|
String |
getExternalSourceName()
Returns the name of the source system using data engine client
|
void |
setExternalSourceName(String externalSourceName)
Sets external source system name using the data engine client
|
callAssetGetRESTCall, callAssetsGetRESTCall, callAssetsPostRESTCall, callConnectionGetRESTCall, callSchemaTypeGetRESTCall, callTagGetRESTCall, callTagListGetRESTCall, callTagListPostRESTCallcallCountGetRESTCall, callGUIDGetRESTCall, callGUIDListGetRESTCall, callGUIDListPostRESTCall, callGUIDPostRESTCall, callNameListGetRESTCall, callStringMapGetRESTCall, callVoidGetRESTCall, callVoidPostRESTCallcallDeleteRESTCall, callDeleteRESTCall, callGetRESTCall, callGetRESTCall, callGetRESTCallNoParams, callPostRESTCall, callPostRESTCall, callPostRESTCallNoParams, callPutRESTCall, callPutRESTCallpublic DataEngineRESTClient(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 - null URL or server namepublic DataEngineRESTClient(String serverName, String serverPlatformRootURL, String userId, String password) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformRootURL - the network address of the server running the OMAS REST serversuserId - caller's userId embedded in all HTTP requestspassword - caller's userId embedded in all HTTP requestsInvalidParameterException - null URL or server namepublic String getExternalSourceName()
DataEngineClientgetExternalSourceName in interface DataEngineClientpublic void setExternalSourceName(String externalSourceName)
DataEngineClientsetExternalSourceName in interface DataEngineClientexternalSourceName - Source system namepublic List<String> createOrUpdateProcesses(String userId, List<Process> processes) throws InvalidParameterException, PropertyServerException
createOrUpdateProcesses in interface DataEngineClientuserId - the name of the calling userprocesses - list of processesInvalidParameterException - the bean properties are invalidPropertyServerException - problem accessing the property serverpublic String createExternalDataEngine(String userId, SoftwareServerCapability softwareServerCapability) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createExternalDataEngine in interface DataEngineClientuserId - the name of the calling usersoftwareServerCapability - the software server capability beanInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic String createOrUpdateSchemaType(String userId, SchemaType schemaType) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
createOrUpdateSchemaType in interface DataEngineClientuserId - the name of the calling userschemaType - the schema type beanInvalidParameterException - the bean properties are invalidPropertyServerException - problem accessing the property serverUserNotAuthorizedException - user not authorized to issue this requestpublic String createOrUpdatePortImplementation(String userId, PortImplementation portImplementation) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createOrUpdatePortImplementation in interface DataEngineClientuserId - the name of the calling userportImplementation - the port implementation beanInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic String createOrUpdatePortAlias(String userId, PortAlias portAlias) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createOrUpdatePortAlias in interface DataEngineClientuserId - the name of the calling userportAlias - the port alias beanInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void addLineageMappings(String userId, List<LineageMapping> lineageMappings) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
addLineageMappings in interface DataEngineClientuserId - the name of the calling userlineageMappings - list of lineage mappingsInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void addPortsToProcess(String userId, List<String> portQualifiedNames, String processGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
addPortsToProcess in interface DataEngineClientuserId - the name of the calling userportQualifiedNames - the list of port GUIDsprocessGUID - the process GUYIDInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverCopyright © 2018–2020 ODPi. All rights reserved.