Class LineageLinkerResource
java.lang.Object
org.odpi.openmetadata.viewservices.lineagelinker.server.spring.LineageLinkerResource
@RestController
@RequestMapping("/servers/{serverName}/api/open-metadata/{urlMarker}")
public class LineageLinkerResource
extends Object
The LineageLinkerResource provides part of the server-side implementation of the Lineage Linker OMVS.
=
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondetachLineage
(String serverName, String urlMarker, String lineageRelationshipGUID, DeleteRequestBody requestBody) Remove a lineage relationship between two elements.linkLineage
(String serverName, String urlMarker, String elementOneGUID, String relationshipTypeName, String elementTwoGUID, NewRelationshipRequestBody requestBody) Create a lineage relationship between two elements that indicates that data is flowing from one element to another.updateLineage
(String serverName, String urlMarker, String lineageRelationshipGUID, UpdateRelationshipRequestBody requestBody) Update the lineage relationship.
-
Constructor Details
-
LineageLinkerResource
public LineageLinkerResource()Default constructor
-
-
Method Details
-
linkLineage
@PostMapping(path="/elements/{elementOneGUID}/{relationshipTypeName}/{elementTwoGUID}/attach") public GUIDResponse linkLineage(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String elementOneGUID, @PathVariable String relationshipTypeName, @PathVariable String elementTwoGUID, @RequestBody NewRelationshipRequestBody requestBody) Create a lineage relationship between two elements that indicates that data is flowing from one element to another.- Parameters:
serverName
- name of the server instance to connect tourlMarker
- view service URL markerelementOneGUID
- unique identifier of the element at end oneelementTwoGUID
- unique identifier of the element at end tworelationshipTypeName
- lineage relationship namerequestBody
- the properties of the relationship- Returns:
- relationship guid or InvalidParameterException one of the properties is invalid PropertyServerException problem accessing property server UserNotAuthorizedException security access problem
-
updateLineage
@PostMapping(path="/relationships/{lineageRelationshipGUID}/update") public VoidResponse updateLineage(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String lineageRelationshipGUID, @RequestBody UpdateRelationshipRequestBody requestBody) Update the lineage relationship.- Parameters:
serverName
- name of the server instance to connect tourlMarker
- view service URL markerlineageRelationshipGUID
- unique identifier for the relationshiprequestBody
- the properties of the relationship- Returns:
- void or InvalidParameterException one of the properties is invalid PropertyServerException problem accessing property server UserNotAuthorizedException security access problem
-
detachLineage
@PostMapping(path="/relationships/{lineageRelationshipGUID}/detach") public VoidResponse detachLineage(@PathVariable String serverName, @PathVariable String urlMarker, @PathVariable String lineageRelationshipGUID, @RequestBody DeleteRequestBody requestBody) Remove a lineage relationship between two elements.- Parameters:
serverName
- name of the server instance to connect tourlMarker
- view service URL markerlineageRelationshipGUID
- unique identifier of the lineage relationshiprequestBody
- external source information.- Returns:
- void or InvalidParameterException one of the properties is invalid PropertyServerException problem accessing property server UserNotAuthorizedException security access problem
-