Class DataEngineResource
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.dataengine.server.spring.DataEngineResource
-
@RestController @RequestMapping("/servers/{serverName}/open-metadata/access-services/data-engine/users/{userId}") public class DataEngineResource extends ObjectThe DataEngineResource provides the server-side implementation of the Data Engine Open Metadata Assess Service (OMAS). This interface facilitates the creation of processes, ports and schema types, with all the needed relationships.
-
-
Constructor Summary
Constructors Constructor Description DataEngineResource()Default Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VoidResponseaddLineageMappings(String userId, String serverName, LineageMappingsRequestBody lineageMappingsRequestBody)Add LineageMapping relationshipsGUIDResponseaddProcessHierarchy(String userId, String serverName, ProcessHierarchyRequestBody processHierarchyRequestBody)Add a ProcessHierarchy relationship between Process entitiesGUIDResponsecreateExternalDataEngine(String serverName, String userId, DataEngineRegistrationRequestBody requestBody)Register external data engine as source of metadata by creating a software server capability entityGUIDResponsecreateOrUpdatePortAlias(String userId, String serverName, PortAliasRequestBody portAliasRequestBody)Create the PortAlias entityGUIDResponsecreateOrUpdatePortImplementation(String userId, String serverName, PortImplementationRequestBody portImplementationRequestBody)Create the PortImplementation entityGUIDResponsecreateOrUpdateProcess(String userId, String serverName, ProcessRequestBody processRequestBody)Create or update the Process entity with ports, schema types and all needed relationshipsGUIDResponsecreateOrUpdateSchemaType(String userId, String serverName, SchemaTypeRequestBody requestBody)Create a SchemaType entity with schema attributes and relationshipsVoidResponsedeleteConnection(String userId, String serverName, DeleteRequestBody requestBody)Deletes the connectionVoidResponsedeleteDatabase(String userId, String serverName, DeleteRequestBody requestBody)Deletes the databaseVoidResponsedeleteDataFile(String userId, String serverName, DeleteRequestBody requestBody)Deletes the data file with columnsVoidResponsedeleteEndpoint(String userId, String serverName, DeleteRequestBody requestBody)Deletes the connectionVoidResponsedeleteExternalDataEngine(String userId, String serverName, DeleteRequestBody requestBody)Delete the external data engineVoidResponsedeleteFolder(String userId, String serverName, DeleteRequestBody requestBody)Deletes the folderVoidResponsedeletePortAliases(String userId, String serverName, DeleteRequestBody requestBody)Delete the PortAlias entityVoidResponsedeletePortImplementation(String userId, String serverName, DeleteRequestBody requestBody)Delete the PortImplementation entityVoidResponsedeleteProcess(String userId, String serverName, DeleteRequestBody requestBody)Delete the ProcessVoidResponsedeleteRelationalTable(String userId, String serverName, DeleteRequestBody requestBody)Deletes the relational table with columnsVoidResponsedeleteSchemaType(String userId, String serverName, DeleteRequestBody requestBody)Remove a SchemaType entity with all the needed relationshipsGUIDResponsegetExternalDataEngineByQualifiedName(String serverName, String userId, String qualifiedName)Return the unique identifier of an external data engine from a software server capability definition.ConnectionResponsegetInTopicConnection(String serverName, String userId)Get connection details used to access Data Engine OMAS input topicGUIDResponseupsertDatabase(String userId, String serverName, DatabaseRequestBody requestBody)Create a Database entity with all the needed relationshipsGUIDResponseupsertDataFile(String serverName, String userId, DataFileRequestBody dataFileRequestBody)Add a DataFile asset or any of its subtypeGUIDResponseupsertRelationalTable(String userId, String serverName, RelationalTableRequestBody requestBody)Create a RelationalTable entity with all the needed relationships
-
-
-
Method Detail
-
createExternalDataEngine
@PostMapping(path="/registration") public GUIDResponse createExternalDataEngine(@PathVariable("serverName") String serverName, @PathVariable("userId") String userId, @RequestBody DataEngineRegistrationRequestBody requestBody)
Register external data engine as source of metadata by creating a software server capability entity- Parameters:
serverName- name of server instance to calluserId- the name of the calling userrequestBody- properties of the entity- Returns:
- unique identifier of the software server capability
-
getExternalDataEngineByQualifiedName
@GetMapping(path="/registration/{qualifiedName}") public GUIDResponse getExternalDataEngineByQualifiedName(@PathVariable String serverName, @PathVariable String userId, @PathVariable String qualifiedName)Return the unique identifier of an external data engine from a software server capability definition.- Parameters:
serverName- name of server instance to calluserId- identifier of calling userqualifiedName- qualified name of the software server capability- Returns:
- unique identified of the software server capability
-
deleteExternalDataEngine
@DeleteMapping(path="/registration") public VoidResponse deleteExternalDataEngine(@PathVariable("userId") String userId, @PathVariable("serverName") String serverName, @RequestBody DeleteRequestBody requestBody)
Delete the external data engine- Parameters:
serverName- name of server instance to calluserId- the name of the calling userrequestBody- properties of the data engine- Returns:
- void response
-
createOrUpdateSchemaType
@PostMapping(path="/schema-types") public GUIDResponse createOrUpdateSchemaType(@PathVariable("userId") String userId, @PathVariable("serverName") String serverName, @RequestBody SchemaTypeRequestBody requestBody)
Create a SchemaType entity with schema attributes and relationships- Parameters:
serverName- name of server instance to calluserId- the name of the calling userrequestBody- properties for the schema type- Returns:
- unique identifier of the created entity
-
deleteSchemaType
@DeleteMapping(path="/schema-types") public VoidResponse deleteSchemaType(@PathVariable("userId") String userId, @PathVariable("serverName") String serverName, @RequestBody DeleteRequestBody requestBody)
Remove a SchemaType entity with all the needed relationships- Parameters:
serverName- name of server instance to calluserId- the name of the calling userrequestBody- properties for the schema type- Returns:
- void response
-
createOrUpdatePortImplementation
@PostMapping(path="/port-implementations") public GUIDResponse createOrUpdatePortImplementation(@PathVariable("userId") String userId, @PathVariable("serverName") String serverName, @RequestBody PortImplementationRequestBody portImplementationRequestBody)
Create the PortImplementation entity- Parameters:
serverName- name of server instance to calluserId- the name of the calling userportImplementationRequestBody- properties of the port implementation- Returns:
- unique identifier of the created port implementation
-
deletePortImplementation
@DeleteMapping(path="/port-implementations") public VoidResponse deletePortImplementation(@PathVariable("userId") String userId, @PathVariable("serverName") String serverName, @RequestBody DeleteRequestBody requestBody)
Delete the PortImplementation entity- Parameters:
serverName- name of server instance to calluserId- the name of the calling userrequestBody- properties of the port implementation- Returns:
- void response
-
createOrUpdatePortAlias
@PostMapping(path="/port-aliases") public GUIDResponse createOrUpdatePortAlias(@PathVariable("userId") String userId, @PathVariable("serverName") String serverName, @RequestBody PortAliasRequestBody portAliasRequestBody)
Create the PortAlias entity- Parameters:
serverName- name of server instance to calluserId- the name of the calling userportAliasRequestBody- properties of the port alias- Returns:
- unique identifier of the created port alias
-
deletePortAliases
@DeleteMapping(path="/port-aliases") public VoidResponse deletePortAliases(@PathVariable("userId") String userId, @PathVariable("serverName") String serverName, @RequestBody DeleteRequestBody requestBody)
Delete the PortAlias entity- Parameters:
serverName- name of server instance to calluserId- the name of the calling userrequestBody- properties of the port implementation- Returns:
- void response
-
addProcessHierarchy
@PostMapping(path="/process-hierarchies") public GUIDResponse addProcessHierarchy(@PathVariable("userId") String userId, @PathVariable("serverName") String serverName, @RequestBody ProcessHierarchyRequestBody processHierarchyRequestBody)
Add a ProcessHierarchy relationship between Process entities- Parameters:
serverName- name of server instance to calluserId- the name of the calling userprocessHierarchyRequestBody- properties of the process hierarchy- Returns:
- the unique identifier (guid) of the child of the process hierarchy that was updated
-
createOrUpdateProcess
@PostMapping(path="/processes") public GUIDResponse createOrUpdateProcess(@PathVariable("userId") String userId, @PathVariable("serverName") String serverName, @RequestBody ProcessRequestBody processRequestBody)
Create or update the Process entity with ports, schema types and all needed relationships- Parameters:
serverName- name of server instance to calluserId- the name of the calling userprocessRequestBody- properties of the process- Returns:
- unique identifier of the created process
-
deleteProcess
@DeleteMapping(path="/processes") public VoidResponse deleteProcess(@PathVariable("userId") String userId, @PathVariable("serverName") String serverName, @RequestBody DeleteRequestBody requestBody)
Delete the Process- Parameters:
serverName- name of server instance to calluserId- the name of the calling userrequestBody- properties of the process- Returns:
- void response
-
addLineageMappings
@PostMapping(path="/lineage-mappings") public VoidResponse addLineageMappings(@PathVariable("userId") String userId, @PathVariable("serverName") String serverName, @RequestBody LineageMappingsRequestBody lineageMappingsRequestBody)
Add LineageMapping relationships- Parameters:
serverName- name of server instance to calluserId- the name of the calling userlineageMappingsRequestBody- properties of the mappings- Returns:
- unique identifier of the created entity
-
getInTopicConnection
@GetMapping(path="/topics/in-topic-connection") public ConnectionResponse getInTopicConnection(@PathVariable String serverName, @PathVariable String userId)
Get connection details used to access Data Engine OMAS input topic- Parameters:
serverName- name of server instance to calluserId- name of the calling user- Returns:
- OCF API ConnectionResponse object describing the details for the in topic connection used or * InvalidParameterException one of the parameters is null or invalid or * UserNotAuthorizedException user not authorized to issue this request or * PropertyServerException problem retrieving the discovery engine definition
-
upsertDatabase
@PostMapping(path="/databases") public GUIDResponse upsertDatabase(@PathVariable("userId") String userId, @PathVariable("serverName") String serverName, @RequestBody DatabaseRequestBody requestBody)
Create a Database entity with all the needed relationships- Parameters:
serverName- name of server instance to calluserId- the name of the calling userrequestBody- properties for the database- Returns:
- unique identifier of the created entity
-
deleteDatabase
@DeleteMapping(path="/databases") public VoidResponse deleteDatabase(@PathVariable("userId") String userId, @PathVariable("serverName") String serverName, @RequestBody DeleteRequestBody requestBody)
Deletes the database- Parameters:
serverName- name of server instance to calluserId- the name of the calling userrequestBody- properties for the database- Returns:
- void response
-
upsertRelationalTable
@PostMapping(path="/relational-tables") public GUIDResponse upsertRelationalTable(@PathVariable("userId") String userId, @PathVariable("serverName") String serverName, @RequestBody RelationalTableRequestBody requestBody)
Create a RelationalTable entity with all the needed relationships- Parameters:
serverName- name of server instance to calluserId- the name of the calling userrequestBody- properties for the relational table- Returns:
- unique identifier of the created entity
-
deleteRelationalTable
@DeleteMapping(path="/relational-tables") public VoidResponse deleteRelationalTable(@PathVariable("userId") String userId, @PathVariable("serverName") String serverName, @RequestBody DeleteRequestBody requestBody)
Deletes the relational table with columns- Parameters:
serverName- name of server instance to calluserId- the name of the calling userrequestBody- properties for the relational table- Returns:
- void response
-
upsertDataFile
@PostMapping(path="/data-files") public GUIDResponse upsertDataFile(@PathVariable String serverName, @PathVariable String userId, @RequestBody DataFileRequestBody dataFileRequestBody)
Add a DataFile asset or any of its subtype- Parameters:
serverName- name of server instance to calluserId- name of the calling userdataFileRequestBody- properties of data file- Returns:
- unique identifier of the created entity
-
deleteDataFile
@DeleteMapping(path="/data-files") public VoidResponse deleteDataFile(@PathVariable("userId") String userId, @PathVariable("serverName") String serverName, @RequestBody DeleteRequestBody requestBody)
Deletes the data file with columns- Parameters:
serverName- name of server instance to calluserId- the name of the calling userrequestBody- properties for the data file- Returns:
- void response
-
deleteFolder
@DeleteMapping(path="/folders") public VoidResponse deleteFolder(@PathVariable("userId") String userId, @PathVariable("serverName") String serverName, @RequestBody DeleteRequestBody requestBody)
Deletes the folder- Parameters:
serverName- name of server instance to calluserId- the name of the calling userrequestBody- properties for the folder- Returns:
- void response
-
deleteConnection
@DeleteMapping(path="/connections") public VoidResponse deleteConnection(@PathVariable("userId") String userId, @PathVariable("serverName") String serverName, @RequestBody DeleteRequestBody requestBody)
Deletes the connection- Parameters:
serverName- name of server instance to calluserId- the name of the calling userrequestBody- properties for the connection- Returns:
- void response
-
deleteEndpoint
@DeleteMapping(path="/endpoints") public VoidResponse deleteEndpoint(@PathVariable("userId") String userId, @PathVariable("serverName") String serverName, @RequestBody DeleteRequestBody requestBody)
Deletes the connection- Parameters:
serverName- name of server instance to calluserId- the name of the calling userrequestBody- properties for the connection- Returns:
- void response
-
-