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(org.apache.jackrabbit.spi.Name ntName) |
void |
onNodeTypeModified(org.apache.jackrabbit.spi.Name ntName) |
void |
onNodeTypesRemoved(Collection<org.apache.jackrabbit.spi.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 javax.jcr.RepositoryException
currently we have no dynamic ones, we just recreate the entire nodetypes tree
createRootNodeState in class AbstractVISProviderjavax.jcr.RepositoryExceptionprotected 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(org.apache.jackrabbit.spi.Name ntName)
public void onNodeTypeModified(org.apache.jackrabbit.spi.Name ntName)
public void onNodeTypesRemoved(Collection<org.apache.jackrabbit.spi.Name> names)
public boolean setNodeReferences(ChangeLog references)
VirtualItemStateProviderreferences - collection of NodeReferences instancestrue if the reference target is one of its items.Copyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.