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
|
String |
addProcessHierarchy(String userId,
ProcessHierarchy processHierarchy)
Add a ProcessHierarchy relationship to a process
|
String |
createExternalDataEngine(String userId,
SoftwareServerCapability softwareServerCapability)
Create or update the software server capability entity
|
String |
createOrUpdatePortAlias(String userId,
PortAlias portAlias,
String processQualifiedName)
Create or update the port alias entity with a PortDelegation relationship.
|
String |
createOrUpdatePortImplementation(String userId,
PortImplementation portImplementation,
String processQualifiedName)
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
|
void |
deleteConnection(String userId,
String qualifiedName,
String guid)
Delete the connection
|
void |
deleteDatabase(String userId,
String qualifiedName,
String guid)
Delete the database
|
void |
deleteDataFile(String userId,
String qualifiedName,
String guid)
Delete the data file
|
void |
deleteEndpoint(String userId,
String qualifiedName,
String guid)
Delete the endpoint
|
void |
deleteExternalDataEngine(String userId,
String qualifiedName,
String guid)
Delete the external data engine
|
void |
deleteFolder(String userId,
String qualifiedName,
String guid)
Delete the folder
|
void |
deletePortAlias(String userId,
String qualifiedName,
String guid)
Delete the port alias
|
void |
deletePortImplementation(String userId,
String qualifiedName,
String guid)
Delete the port implementation
|
void |
deleteProcesses(String userId,
List<String> qualifiedNames,
List<String> guids)
Delete a list of processes
|
void |
deleteRelationalTable(String userId,
String qualifiedName,
String guid)
Delete the relational table
|
void |
deleteSchemaType(String userId,
String qualifiedName,
String guid)
Delete the schema type
|
DeleteSemantic |
getDeleteSemantic() |
String |
getExternalSourceName()
Returns the name of the source system using data engine client
|
void |
setDeleteSemantic(DeleteSemantic deleteSemantic) |
void |
setExternalSourceName(String externalSourceName)
Sets external source system name using the data engine client
|
String |
upsertDatabase(String userId,
Database database)
Create or update the database entity
|
String |
upsertDataFile(String userId,
DataFile dataFile)
Create or update the data file entity
|
String |
upsertRelationalTable(String userId,
RelationalTable relationalTable)
Create or update the relational table entity
|
callAssetGetRESTCall, callAssetsGetRESTCall, callAssetsPostRESTCall, callConnectionGetRESTCall, callTagGetRESTCall, callTagListGetRESTCall, callTagListPostRESTCallcallConnectorTypeGetRESTCall, callCountGetRESTCall, 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 DeleteSemantic getDeleteSemantic()
public void setDeleteSemantic(DeleteSemantic deleteSemantic)
public 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 void deleteProcesses(String userId, List<String> qualifiedNames, List<String> guids) throws InvalidParameterException, PropertyServerException
deleteProcesses in interface DataEngineClientuserId - the name of the calling userqualifiedNames - the qualified names of the processes to be deletedguids - the unique identifiers of the processes to be deletedInvalidParameterException - 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 void deleteExternalDataEngine(String userId, String qualifiedName, String guid) throws InvalidParameterException, PropertyServerException
deleteExternalDataEngine in interface DataEngineClientuserId - the name of the calling userqualifiedName - the qualified name of the external data engineguid - the unique identifier of the external data engineInvalidParameterException - the bean properties are invalidPropertyServerException - 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 void deleteSchemaType(String userId, String qualifiedName, String guid) throws InvalidParameterException, PropertyServerException
deleteSchemaType in interface DataEngineClientuserId - the name of the calling userqualifiedName - the qualified name of the schema typeguid - the unique identifier of the schema typeInvalidParameterException - the bean properties are invalidPropertyServerException - problem accessing the property serverpublic String createOrUpdatePortImplementation(String userId, PortImplementation portImplementation, String processQualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createOrUpdatePortImplementation in interface DataEngineClientuserId - the name of the calling userportImplementation - the port implementation beanprocessQualifiedName - the process qualified nameInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void deletePortImplementation(String userId, String qualifiedName, String guid) throws InvalidParameterException, PropertyServerException
deletePortImplementation in interface DataEngineClientuserId - the name of the calling userqualifiedName - the qualified name of port implementationguid - the unique identifier of the port implementationInvalidParameterException - the bean properties are invalidPropertyServerException - problem accessing the property serverpublic String createOrUpdatePortAlias(String userId, PortAlias portAlias, String processQualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createOrUpdatePortAlias in interface DataEngineClientuserId - the name of the calling userportAlias - the port alias beanprocessQualifiedName - the process qualified nameInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void deletePortAlias(String userId, String qualifiedName, String guid) throws InvalidParameterException, PropertyServerException
deletePortAlias in interface DataEngineClientuserId - the name of the calling userqualifiedName - the qualified name of the port aliasguid - the unique identifier of the port aliasInvalidParameterException - the bean properties are invalidPropertyServerException - problem accessing the property serverpublic String addProcessHierarchy(String userId, ProcessHierarchy processHierarchy) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
addProcessHierarchy in interface DataEngineClientuserId - the name of the calling userprocessHierarchy - the process hierarchy 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 String upsertDatabase(String userId, Database database) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
upsertDatabase in interface DataEngineClientuserId - the name of the calling userdatabase - the database beanInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic String upsertRelationalTable(String userId, RelationalTable relationalTable) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
upsertRelationalTable in interface DataEngineClientuserId - the name of the calling userrelationalTable - the relational table beanInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic String upsertDataFile(String userId, DataFile dataFile) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
upsertDataFile in interface DataEngineClientuserId - the name of the calling userdataFile - the data file beanInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void deleteDatabase(String userId, String qualifiedName, String guid) throws InvalidParameterException, PropertyServerException
deleteDatabase in interface DataEngineClientuserId - the name of the calling userqualifiedName - the qualified name of the databaseguid - the unique identifier of the databaseInvalidParameterException - the bean properties are invalidPropertyServerException - problem accessing the property serverpublic void deleteRelationalTable(String userId, String qualifiedName, String guid) throws InvalidParameterException, PropertyServerException
deleteRelationalTable in interface DataEngineClientuserId - the name of the calling userqualifiedName - the qualified name of the relational tableguid - the unique identifier of the relational tableInvalidParameterException - the bean properties are invalidPropertyServerException - problem accessing the property serverpublic void deleteDataFile(String userId, String qualifiedName, String guid) throws InvalidParameterException, PropertyServerException
deleteDataFile in interface DataEngineClientuserId - the name of the calling userqualifiedName - the qualified name of the data fileguid - the unique identifier of the data fileInvalidParameterException - the bean properties are invalidPropertyServerException - problem accessing the property serverpublic void deleteFolder(String userId, String qualifiedName, String guid) throws InvalidParameterException, PropertyServerException
deleteFolder in interface DataEngineClientuserId - the name of the calling userqualifiedName - the qualified name of the data fileguid - the unique identifier of the folderInvalidParameterException - the bean properties are invalidPropertyServerException - problem accessing the property serverpublic void deleteConnection(String userId, String qualifiedName, String guid) throws InvalidParameterException, PropertyServerException
deleteConnection in interface DataEngineClientuserId - the name of the calling userqualifiedName - the qualified name of the connectionguid - the unique identifier of the connectionInvalidParameterException - the bean properties are invalidPropertyServerException - problem accessing the property serverpublic void deleteEndpoint(String userId, String qualifiedName, String guid) throws InvalidParameterException, PropertyServerException
deleteEndpoint in interface DataEngineClientuserId - the name of the calling userqualifiedName - the qualified name of the endpointguid - the unique identifier of the endpointInvalidParameterException - the bean properties are invalidPropertyServerException - problem accessing the property serverCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.