Class EntityLinkTree
java.lang.Object
com.flowable.platform.common.entitylink.EntityLinkTree
- Author:
- Filip Hrisafov
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
protected static class
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Map<String,
EntityLinkInfo> protected boolean
protected final Map<EntityLinkTree.Scope,
EntityLinkTree.EntityLinkNode> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addEntityLink
(EntityLinkInfo entityLink) Add an entity link to the treeprotected static Map<EntityLinkTree.Scope,
EntityLinkTree.EntityLinkNode> createNodeMap
(Collection<? extends EntityLinkInfo> entityLinks) static EntityLinkTree
createTree
(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.boolean
Check 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:
true
if 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
-