Class TreeStorageNodeInstance<V extends AbstractEntity>
java.lang.Object
org.keycloak.models.map.storage.tree.DefaultTreeNode<TreeStorageNodeInstance<V>>
org.keycloak.models.map.storage.tree.TreeStorageNodeInstance<V>
- All Implemented Interfaces:
TreeNode<TreeStorageNodeInstance<V>>
public class TreeStorageNodeInstance<V extends AbstractEntity>
extends DefaultTreeNode<TreeStorageNodeInstance<V>>
Instance of the tree storage that is based on a prescription (
TreeStorageNodePrescription
),
i.e. it provides a map storage instance that can be used for accessing data.- Author:
- hmlnarik
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.models.map.storage.tree.TreeNode
TreeNode.PathOrientation
-
Field Summary
Fields inherited from class org.keycloak.models.map.storage.tree.DefaultTreeNode
edgeProperties, nodeProperties, treeProperties
-
Constructor Summary
ConstructorDescriptionTreeStorageNodeInstance
(KeycloakSession session, TreeStorageNodeInstance<V> original) TreeStorageNodeInstance
(KeycloakSession session, TreeStorageNodePrescription prescription) -
Method Summary
Modifier and TypeMethodDescriptiongetId()
Returns ID of the node, which could match e.g.isCacheFor
(EntityField<V> field, Object parameter) isPrimarySourceFor
(Enum<? extends EntityField<V>> field, Object parameter) boolean
Methods inherited from class org.keycloak.models.map.storage.tree.DefaultTreeNode
addChild, addChild, cloneTree, equals, findFirstBfs, findFirstBottommostDfs, findFirstDfs, forEachParent, getChild, getChildren, getEdgeProperties, getEdgeProperty, getLabel, getNodeProperties, getNodeProperty, getParent, getParentsStream, getPathToRoot, getTreeProperties, getTreeProperty, hasChildren, hashCode, hasNoChildren, removeChild, removeChild, setEdgeProperty, setId, setNodeProperty, setParent, toString, walkBfs, walkDfs
-
Constructor Details
-
TreeStorageNodeInstance
-
TreeStorageNodeInstance
-
-
Method Details
-
cloneNodeOnly
-
getId
Description copied from interface:TreeNode
Returns ID of the node, which could match e.g. ID of the component with storage definition.- Specified by:
getId
in interfaceTreeNode<V extends AbstractEntity>
- Overrides:
getId
in classDefaultTreeNode<TreeStorageNodeInstance<V extends AbstractEntity>>
- Returns:
- Node ID
-
isReadOnly
public boolean isReadOnly() -
isCacheFor
public TreeStorageNodePrescription.FieldContainedStatus isCacheFor(EntityField<V> field, Object parameter) -
isPrimarySourceFor
public TreeStorageNodePrescription.FieldContainedStatus isPrimarySourceFor(Enum<? extends EntityField<V>> field, Object parameter)
-