Class OpenLineageController
- java.lang.Object
-
- org.odpi.openmetadata.userinterface.uichassis.springboot.api.lineage.OpenLineageController
-
@RestController @RequestMapping("/api/lineage") public class OpenLineageController extends ObjectThis controller serves all requests for retrieving lineage details, both vertical and horizontal
-
-
Constructor Summary
Constructors Constructor Description OpenLineageController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphendToEndLineage(String guid, boolean includeProcesses)LineageVertexgetEntityDetails(String guid)List<String>getNodes(String type, String searchValue, int limit)Gets nodes names of certain type with display name containing a certain value.List<String>getTypes()Gets available entities types from lineage repository.voidinitBinder(org.springframework.web.bind.WebDataBinder webdataBinder)This method is registering a custom converter for View and Scope enums in order to be able to use in url the text of the enum and not the actual nameList<LineageVertex>search(LineageSearchRequest searchRequest)GraphultimateDestination(String guid, boolean includeProcesses)GraphultimateSourceGraph(String guid, boolean includeProcesses)GraphverticalLineage(String guid, boolean includeProcesses)
-
-
-
Method Detail
-
ultimateSourceGraph
@GetMapping("/entities/{guid}/ultimate-source") public Graph ultimateSourceGraph(@PathVariable("guid") String guid, @RequestParam boolean includeProcesses) throws InvalidParameterException, PropertyServerException, OpenLineageException- Parameters:
guid- unique identifier of the assetincludeProcesses- if true Process nodes will be included- Returns:
- graph of nodes and edges describing the ultimate sources of the asset
- Throws:
InvalidParameterException- from the underlying servicePropertyServerException- from the underlying serviceOpenLineageException- from the underlying service
-
endToEndLineage
@GetMapping("/entities/{guid}/end2end") @ResponseBody public Graph endToEndLineage(@PathVariable("guid") String guid, @RequestParam boolean includeProcesses) throws InvalidParameterException, PropertyServerException, OpenLineageException- Parameters:
guid- unique identifier of the assetincludeProcesses- if true Process nodes will be included- Returns:
- graph of nodes and edges describing the end to end flow
- Throws:
InvalidParameterException- from the underlying servicePropertyServerException- from the underlying serviceOpenLineageException- from the underlying service
-
ultimateDestination
@GetMapping("/entities/{guid}/ultimate-destination") public Graph ultimateDestination(@PathVariable("guid") String guid, @RequestParam boolean includeProcesses) throws InvalidParameterException, PropertyServerException, OpenLineageException- Parameters:
guid- unique identifier of the assetincludeProcesses- if true Process nodes will be included- Returns:
- graph of nodes and edges describing the ultimate destination of the asset
- Throws:
InvalidParameterException- from the underlying servicePropertyServerException- from the underlying serviceOpenLineageException- from the underlying service
-
verticalLineage
@GetMapping("/entities/{guid}/vertical-lineage") public Graph verticalLineage(@PathVariable("guid") String guid, @RequestParam boolean includeProcesses) throws InvalidParameterException, PropertyServerException, OpenLineageException- Parameters:
guid- unique identifier of the glossary termincludeProcesses- if true Process nodes will be included- Returns:
- graph of nodes and edges describing the assets linked to the glossary term
- Throws:
InvalidParameterException- from the underlying servicePropertyServerException- from the underlying serviceOpenLineageException- from the underlying service
-
getEntityDetails
@GetMapping("entities/{guid}/details") public LineageVertex getEntityDetails(@PathVariable("guid") String guid) throws InvalidParameterException, PropertyServerException, OpenLineageException- Parameters:
guid- of the Entity to be retrieved- Returns:
- the entity details
- Throws:
InvalidParameterException- from the underlying servicePropertyServerException- from the underlying serviceOpenLineageException- from the underlying service
-
getTypes
@GetMapping("types") public List<String> getTypes()Gets available entities types from lineage repository.- Returns:
- the available entities types
-
getNodes
@GetMapping("nodes") public List<String> getNodes(@RequestParam("type") String type, @RequestParam("name") String searchValue, @RequestParam("limit") int limit)Gets nodes names of certain type with display name containing a certain value.- Parameters:
type- the type of the nodes name to search forsearchValue- the string to be contained in the qualified name of the node - case insensitivelimit- the maximum number of node names to retrieve- Returns:
- the list of node names
-
search
@PostMapping("entities/search") public List<LineageVertex> search(@RequestBody LineageSearchRequest searchRequest) throws InvalidParameterException, PropertyServerException, OpenLineageException- Parameters:
searchRequest- filtering details for the search- Returns:
- the entity details
- Throws:
InvalidParameterException- from the underlying servicePropertyServerException- from the underlying serviceOpenLineageException- from the underlying service
-
initBinder
@InitBinder public void initBinder(org.springframework.web.bind.WebDataBinder webdataBinder)
This method is registering a custom converter for View and Scope enums in order to be able to use in url the text of the enum and not the actual name- Parameters:
webdataBinder- DataBinder for data binding from web request parameters to JavaBean objects
-
-