Class EntityLinkTree
java.lang.Object
com.flowable.platform.common.entitylink.EntityLinkTree
- Author:
- Filip Hrisafov
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classprotected static class -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map<String,EntityLinkInfo> protected booleanprotected final Map<EntityLinkTree.Scope,EntityLinkTree.EntityLinkNode> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEntityLink(EntityLinkInfo entityLink) Add an entity link to the treeprotected static Map<EntityLinkTree.Scope,EntityLinkTree.EntityLinkNode> createNodeMap(Collection<? extends EntityLinkInfo> entityLinks) static EntityLinkTreecreateTree(Collection<? extends EntityLinkInfo> entityLinks) Create an entity link tree from the givenentityLinks.Get the node with the given scope parametersprotected Map<EntityLinkTree.Scope,EntityLinkTree.EntityLinkNode> getRoot()Get the root of the tree.booleanCheck if the tree has a node for the given scope parameters
-
Field Details
-
entityLinks
-
nodeMap
-
needsRefresh
protected boolean needsRefresh
-
-
Constructor Details
-
EntityLinkTree
-
-
Method Details
-
get
Get the node with the given scope parameters- Parameters:
scopeId- the scope idscopeType- the scope type- Returns:
- the node in the tree representing the given scope
-
hasNode
Check if the tree has a node for the given scope parameters- Parameters:
scopeId- the scope idscopeType- the scope type- Returns:
trueif the true has a node for the given tree
-
addEntityLink
Add an entity link to the tree- Parameters:
entityLink- the entity link to be added
-
getRoot
Get the root of the tree.- Returns:
- the root of the tree
-
getNodeMap
-
createNodeMap
protected static Map<EntityLinkTree.Scope,EntityLinkTree.EntityLinkNode> createNodeMap(Collection<? extends EntityLinkInfo> entityLinks) -
createTree
Create an entity link tree from the givenentityLinks. The links should represent all links for the same root scope. i.e. retrieved viaEntityLinkService.findEntityLinksWithSameRootScopeForScopeIdAndScopeType(String, String, String)- Parameters:
entityLinks- all entity links with the same root scope- Returns:
- the entity link tree for the given entity links
-