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, stateModifiedpublic 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 AbstractVISProviderRepositoryExceptionprotected boolean internalHasNodeState(NodeId id)
internalHasNodeState in class AbstractVISProvidertrue if it has the node stateprotected VirtualNodeState internalGetNodeState(NodeId id) throws NoSuchItemStateException, ItemStateException
internalGetNodeState in class AbstractVISProviderNoSuchItemStateExceptionItemStateExceptionpublic 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–2020 The Apache Software Foundation. All rights reserved.