Class LineageGraphDisplayService
- java.lang.Object
-
- org.odpi.openmetadata.userinterface.uichassis.springboot.service.LineageGraphDisplayService
-
@Service @ConfigurationProperties(prefix="lineage-display-config") public class LineageGraphDisplayService extends Object
This component matches the properties provided under lineage-display-config which provide rules based on which the edge's direction will be inverted
-
-
Constructor Summary
Constructors Constructor Description LineageGraphDisplayService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyRules(Graph graph, String queriedNodeGUID)This method applies the rules defined in the properties file on the graph.RulesgetRules()voidsetNodesLevel(List<Node> startNodes, List<Node> listNodes, List<Edge> listEdges)sets the level field for the nodes, in order to be displayed on levels Stars from a start list of nodes and sets a the level+1 for the nodes on the ends of "to" edges and legel -1 for the nodes from the "from" end of it's edges once an edge or node is processed is removed from the list.voidsetRules(Rules rules)StringtoString()
-
-
-
Method Detail
-
getRules
public Rules getRules()
-
setRules
public void setRules(Rules rules)
-
applyRules
public void applyRules(Graph graph, String queriedNodeGUID)
This method applies the rules defined in the properties file on the graph.- Parameters:
graph- graph processed from the response from open lineagequeriedNodeGUID- the GUID of the queried node
-
setNodesLevel
public void setNodesLevel(List<Node> startNodes, List<Node> listNodes, List<Edge> listEdges)
sets the level field for the nodes, in order to be displayed on levels Stars from a start list of nodes and sets a the level+1 for the nodes on the ends of "to" edges and legel -1 for the nodes from the "from" end of it's edges once an edge or node is processed is removed from the list.- Parameters:
startNodes- the starting nodeslistNodes- the list of nodeslistEdges- the list of edges
-
-