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 Modifier and Type Class Description class
TreeStorageNodeInstance.WithEntity
-
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
Constructors Constructor Description TreeStorageNodeInstance(KeycloakSession session, TreeStorageNodeInstance<V> original)
TreeStorageNodeInstance(KeycloakSession session, TreeStorageNodePrescription prescription)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TreeStorageNodeInstance<V>
cloneNodeOnly()
String
getId()
Returns ID of the node, which could match e.g.TreeStorageNodePrescription.FieldContainedStatus
isCacheFor(EntityField<V> field, Object parameter)
TreeStorageNodePrescription.FieldContainedStatus
isPrimarySourceFor(Enum<? extends EntityField<V>> field, Object parameter)
boolean
isReadOnly()
-
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 Detail
-
TreeStorageNodeInstance
public TreeStorageNodeInstance(KeycloakSession session, TreeStorageNodeInstance<V> original)
-
TreeStorageNodeInstance
public TreeStorageNodeInstance(KeycloakSession session, TreeStorageNodePrescription prescription)
-
-
Method Detail
-
cloneNodeOnly
public TreeStorageNodeInstance<V> cloneNodeOnly()
-
getId
public String 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)
-
-