public class VirtualNodeTypeStateProvider extends AbstractVISProvider
ntReg, rootNodeId
Constructor and Description |
---|
VirtualNodeTypeStateProvider(NodeTypeRegistry ntReg,
NodeId rootNodeId,
NodeId parentId) |
Modifier and Type | Method and Description |
---|---|
protected VirtualNodeState |
createRootNodeState()
Creates the root node state.
|
protected VirtualNodeState |
internalGetNodeState(NodeId id)
Retrieves the node state with the given node id
|
protected boolean |
internalHasNodeState(NodeId id)
Checks if this provide has the node state of the given node id
|
void |
onNodeTypeAdded(Name ntName) |
void |
onNodeTypeModified(Name ntName) |
void |
onNodeTypesRemoved(Collection<Name> names) |
boolean |
setNodeReferences(ChangeLog references)
Informs this provider that the node references to some of its states
have changed.
|
addListener, cache, createNodeState, createPropertyState, discardAll, evict, getApplicableChildNodeDef, getApplicablePropertyDef, getEffectiveNodeType, getItemState, getNodeReferences, getNodeTypeRegistry, getRootState, getVirtualRootId, getVirtualRootIds, hasItemState, hasNodeReferences, internalGetPropertyState, internalHasPropertyState, invalidateItem, isVirtualRoot, removeListener, stateCreated, stateDestroyed, stateDiscarded, stateModified
public VirtualNodeTypeStateProvider(NodeTypeRegistry ntReg, NodeId rootNodeId, NodeId parentId)
ntReg
- rootNodeId
- parentId
- protected VirtualNodeState createRootNodeState() throws RepositoryException
currently we have no dynamic ones, we just recreate the entire nodetypes tree
createRootNodeState
in class AbstractVISProvider
RepositoryException
protected boolean internalHasNodeState(NodeId id)
internalHasNodeState
in class AbstractVISProvider
true
if it has the node stateprotected VirtualNodeState internalGetNodeState(NodeId id) throws NoSuchItemStateException, ItemStateException
internalGetNodeState
in class AbstractVISProvider
NoSuchItemStateException
ItemStateException
public void onNodeTypeAdded(Name ntName)
public void onNodeTypeModified(Name ntName)
public void onNodeTypesRemoved(Collection<Name> names)
public boolean setNodeReferences(ChangeLog references)
references
- collection of NodeReferences
instancestrue
if the reference target is one of its items.Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.