public class DataEngineRESTServices extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
EXCEPTION_WHILE_ADDING_LINEAGE_MAPPING |
static String |
EXCEPTION_WHILE_CREATING_PROCESS |
static String |
EXCEPTION_WHILE_CREATING_PROCESS_HIERARCHY |
| Constructor and Description |
|---|
DataEngineRESTServices() |
| Modifier and Type | Method and Description |
|---|---|
VoidResponse |
addLineageMappings(String userId,
String serverName,
LineageMappingsRequestBody lineageMappingsRequestBody)
Create LineageMappings relationships between schema attributes
|
void |
addLineageMappings(String userId,
String serverName,
List<LineageMapping> lineageMappings,
FFDCResponseBase response,
String externalSourceName)
Create LineageMappings relationships between schema attributes
|
GUIDResponse |
addProcessHierarchy(String userId,
String serverName,
ProcessHierarchyRequestBody processHierarchyRequestBody)
Add the provided ProcessHierarchy relationship
|
String |
addProcessHierarchyToProcess(String userId,
String serverName,
ProcessHierarchy processHierarchy,
String externalSourceName)
Add a a ProcessHierarchy relationship to the process
|
GUIDResponse |
createExternalDataEngine(String serverName,
String userId,
DataEngineRegistrationRequestBody requestBody)
Create the external data engine as software server capability entity
|
String |
createExternalDataEngine(String userId,
String serverName,
SoftwareServerCapability softwareServerCapability)
Create the external data engine as software server capability entity
|
VoidResponse |
deleteExternalDataEngine(String userId,
String serverName,
DeleteRequestBody requestBody)
Delete the external data engine.
|
void |
deleteExternalDataEngine(String userId,
String serverName,
String externalSourceName,
String guid,
String qualifiedName,
DeleteSemantic deleteSemantic)
Delete the external data engine.
|
VoidResponse |
deletePort(String userId,
String serverName,
DeleteRequestBody requestBody,
String portType)
Delete the Port with the associated schema type and relationships
|
void |
deletePort(String userId,
String serverName,
String externalSourceName,
String guid,
String qualifiedName,
String portType,
DeleteSemantic deleteSemantic)
Delete the Port with the associated schema type and relationships
|
VoidResponse |
deleteProcesses(String userId,
String serverName,
ProcessesDeleteRequestBody requestBody)
Delete a list of processes, with the associated port implementations, port aliases and lineage mappings
|
void |
deleteProcesses(String userId,
String serverName,
String externalSourceName,
List<String> guids,
List<String> qualifiedNames,
DeleteSemantic deleteSemantic)
Delete a list of processes, with the associated port implementations, port aliases and lineage mappings.
|
VoidResponse |
deleteSchemaType(String userId,
String serverName,
DeleteRequestBody requestBody)
Delete the SchemaType with schema attributes and corresponding relationships
|
void |
deleteSchemaType(String userId,
String serverName,
String externalSourceName,
String guid,
String qualifiedName,
DeleteSemantic deleteSemantic)
Delete the SchemaType with schema attributes and corresponding relationships
|
GUIDResponse |
getExternalDataEngine(String serverName,
String userId,
String qualifiedName)
Get the unique identifier from a external data engine qualified name
|
ConnectionResponse |
getInTopicConnection(String serverName,
String userId)
Retrieve in topic connection details from the service instance hosting Data Engine access service
|
Optional<String> |
getPortGUID(String serverName,
String userId,
String qualifiedName)
Get the unique identifier of a port
|
Optional<String> |
getProcessGUID(String serverName,
String userId,
String qualifiedName)
Get the unique identifier of a process
|
Optional<String> |
getSchemaTypeGUID(String serverName,
String userId,
String qualifiedName)
Get the unique identifier of a schema type
|
GUIDResponse |
upsertDatabase(String userId,
String serverName,
DatabaseRequestBody databaseRequestBody)
Create or update the Database with corresponding associated schema type and relationship
|
GUIDResponse |
upsertDataFile(String serverName,
String userId,
DataFileRequestBody dataFileRequestBody)
Updates or inserts a DataFile or CSVFile, along with its schema, columns and folder hierarchy
|
GUIDResponse |
upsertPortAlias(String userId,
String serverName,
PortAliasRequestBody portAliasRequestBody)
Create or update the Port Alias with a PortDelegation relationship
|
String |
upsertPortAliasWithDelegation(String userId,
String serverName,
PortAlias portAlias,
String processGUID,
String externalSourceName)
Create or update a Port Alias with a PortDelegation relationship
|
GUIDResponse |
upsertPortImplementation(String userId,
String serverName,
PortImplementationRequestBody portImplementationRequestBody)
Create or update the Port Implementation with a PortSchema relationship
|
String |
upsertPortImplementation(String userId,
String serverName,
PortImplementation portImplementation,
String processGUID,
String externalSourceName)
Create or update a Port Implementation with an associated SchemaType
|
ProcessListResponse |
upsertProcesses(String userId,
String serverName,
List<Process> processes,
String externalSourceName) |
ProcessListResponse |
upsertProcesses(String userId,
String serverName,
ProcessesRequestBody processesRequestBody)
Create or update the processes with ports, schema types and lineage mappings
|
GUIDResponse |
upsertRelationalTable(String userId,
String serverName,
RelationalTableRequestBody relationalTableRequestBody)
Create the Relational Table with Relational Columns and corresponding relationships
|
GUIDResponse |
upsertSchemaType(String userId,
String serverName,
SchemaTypeRequestBody schemaTypeRequestBody)
Create the SchemaType with schema attributes and corresponding relationships
|
String |
upsertSchemaType(String userId,
String serverName,
String portImplementationGUID,
SchemaType schemaType,
String externalSourceName)
Create or update a SchemaType
|
public static final String EXCEPTION_WHILE_ADDING_LINEAGE_MAPPING
public static final String EXCEPTION_WHILE_CREATING_PROCESS
public static final String EXCEPTION_WHILE_CREATING_PROCESS_HIERARCHY
public GUIDResponse createExternalDataEngine(String serverName, String userId, DataEngineRegistrationRequestBody requestBody)
serverName - name of server instance to calluserId - the name of the calling userrequestBody - properties of the serverpublic GUIDResponse getExternalDataEngine(String serverName, String userId, String qualifiedName)
serverName - name of the service to route the request touserId - identifier of calling userqualifiedName - qualified name of the external data enginepublic VoidResponse deleteExternalDataEngine(String userId, String serverName, DeleteRequestBody requestBody)
serverName - name of the service to route the request touserId - identifier of calling userrequestBody - properties of the external data enginepublic void deleteExternalDataEngine(String userId, String serverName, String externalSourceName, String guid, String qualifiedName, DeleteSemantic deleteSemantic) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException, FunctionNotSupportedException
serverName - name of server instance to calluserId - the name of the calling userexternalSourceName - the unique name of the external sourceguid - the unique identifier of the schema typequalifiedName - the qualified name of the schema typedeleteSemantic - the delete semanticInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverFunctionNotSupportedException - the repository does not support this call.public Optional<String> getProcessGUID(String serverName, String userId, String qualifiedName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
serverName - name of the service to route the request touserId - identifier of calling userqualifiedName - qualified name of the processInvalidParameterExceptionPropertyServerExceptionUserNotAuthorizedExceptionpublic Optional<String> getPortGUID(String serverName, String userId, String qualifiedName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
serverName - name of the service to route the request touserId - identifier of calling userqualifiedName - qualified name of the portInvalidParameterExceptionPropertyServerExceptionUserNotAuthorizedExceptionpublic Optional<String> getSchemaTypeGUID(String serverName, String userId, String qualifiedName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
serverName - name of the service to route the request touserId - identifier of calling userqualifiedName - qualified name of the portInvalidParameterExceptionPropertyServerExceptionUserNotAuthorizedExceptionpublic GUIDResponse upsertSchemaType(String userId, String serverName, SchemaTypeRequestBody schemaTypeRequestBody)
serverName - name of server instance to calluserId - the name of the calling userschemaTypeRequestBody - properties of the schema typepublic VoidResponse deleteSchemaType(String userId, String serverName, DeleteRequestBody requestBody)
serverName - name of server instance to calluserId - the name of the calling userrequestBody - properties of the schema typepublic void deleteSchemaType(String userId, String serverName, String externalSourceName, String guid, String qualifiedName, DeleteSemantic deleteSemantic) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException, FunctionNotSupportedException, EntityNotDeletedException
serverName - name of server instance to calluserId - the name of the calling userexternalSourceName - the unique name of the external sourceguid - the unique identifier of the schema typequalifiedName - the qualified name of the schema typedeleteSemantic - the delete semanticInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverFunctionNotSupportedException - the repository does not support this call.EntityNotDeletedExceptionpublic GUIDResponse upsertPortImplementation(String userId, String serverName, PortImplementationRequestBody portImplementationRequestBody)
serverName - name of server instance to calluserId - the name of the calling userportImplementationRequestBody - properties of the portpublic GUIDResponse upsertPortAlias(String userId, String serverName, PortAliasRequestBody portAliasRequestBody)
serverName - name of server instance to calluserId - the name of the calling userportAliasRequestBody - properties of the portpublic VoidResponse deletePort(String userId, String serverName, DeleteRequestBody requestBody, String portType)
serverName - name of server instance to calluserId - the name of the calling userrequestBody - properties of the portportType - the type of the portpublic void deletePort(String userId, String serverName, String externalSourceName, String guid, String qualifiedName, String portType, DeleteSemantic deleteSemantic) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException, FunctionNotSupportedException, EntityNotDeletedException
serverName - name of server instance to calluserId - the name of the calling userexternalSourceName - the unique name of the external sourceguid - the unique identifier of the portqualifiedName - the qualified name of the portportType - the port typedeleteSemantic - the delete semanticInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverFunctionNotSupportedException - the repository does not support this call.EntityNotDeletedExceptionpublic GUIDResponse addProcessHierarchy(String userId, String serverName, ProcessHierarchyRequestBody processHierarchyRequestBody)
serverName - name of server instance to calluserId - the name of the calling userprocessHierarchyRequestBody - properties of the process hierarchypublic ProcessListResponse upsertProcesses(String userId, String serverName, ProcessesRequestBody processesRequestBody)
userId - the name of the calling userserverName - name of server instance to callprocessesRequestBody - properties of the processespublic VoidResponse deleteProcesses(String userId, String serverName, ProcessesDeleteRequestBody requestBody)
userId - the name of the calling userserverName - name of server instance to callrequestBody - properties of the processespublic void deleteProcesses(String userId, String serverName, String externalSourceName, List<String> guids, List<String> qualifiedNames, DeleteSemantic deleteSemantic) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, FunctionNotSupportedException, EntityNotDeletedException
userId - the name of the calling userexternalSourceName - the unique name of the external sourceguids - the unique identifiers of the processesqualifiedNames - the qualified names of the processesdeleteSemantic - the delete semanticInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverFunctionNotSupportedException - the repository does not support this call.EntityNotDeletedExceptionpublic String upsertPortAliasWithDelegation(String userId, String serverName, PortAlias portAlias, String processGUID, String externalSourceName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling userserverName - name of server instance to callportAlias - the port alias valuesexternalSourceName - the unique name of the external sourceInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic String addProcessHierarchyToProcess(String userId, String serverName, ProcessHierarchy processHierarchy, String externalSourceName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling userserverName - name of server instance to callprocessHierarchy - the process hierarchy valuesexternalSourceName - the unique name of the external sourceInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic String upsertPortImplementation(String userId, String serverName, PortImplementation portImplementation, String processGUID, String externalSourceName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, FunctionNotSupportedException
userId - the name of the calling userserverName - name of server instance to callportImplementation - the port implementation valuesexternalSourceName - the unique name of the external sourceInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverFunctionNotSupportedExceptionpublic String createExternalDataEngine(String userId, String serverName, SoftwareServerCapability softwareServerCapability) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling userserverName - name of server instance to callsoftwareServerCapability - the software server valuesInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic void addLineageMappings(String userId, String serverName, List<LineageMapping> lineageMappings, FFDCResponseBase response, String externalSourceName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling userserverName - name of server instance to calllineageMappings - the list of lineage mappings to be createdresponse - the response object that will capture the exceptions that might occur during
parallel processingexternalSourceName - the unique name of the external sourceInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic ProcessListResponse upsertProcesses(String userId, String serverName, List<Process> processes, String externalSourceName)
userId - the name of the calling userserverName - name of server instance to callprocesses - list of processes to be createdexternalSourceName - the unique name of the external sourcepublic VoidResponse addLineageMappings(String userId, String serverName, LineageMappingsRequestBody lineageMappingsRequestBody)
userId - the name of the calling userserverName - ame of server instance to calllineageMappingsRequestBody - list of lineage mappingspublic ConnectionResponse getInTopicConnection(String serverName, String userId)
serverName - the name of server instance to calluserId - the name/identifier of the calling userpublic String upsertSchemaType(String userId, String serverName, String portImplementationGUID, SchemaType schemaType, String externalSourceName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
userId - the name of the calling userserverName - name of server instance to callportImplementationGUID - the unique identifier of the port implementationschemaType - the schema type valuesexternalSourceName - the unique name of the external sourceInvalidParameterException - the bean properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic GUIDResponse upsertDatabase(String userId, String serverName, DatabaseRequestBody databaseRequestBody)
serverName - name of server instance to calluserId - the name of the calling userdatabaseRequestBody - properties of the databasepublic GUIDResponse upsertRelationalTable(String userId, String serverName, RelationalTableRequestBody relationalTableRequestBody)
serverName - name of server instance to calluserId - the name of the calling userrelationalTableRequestBody - properties of the relational tablepublic GUIDResponse upsertDataFile(String serverName, String userId, DataFileRequestBody dataFileRequestBody)
serverName - server nameuserId - user iddataFileRequestBody - request bodyCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.