|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.virtual.AbstractVISProvider
org.apache.jackrabbit.core.nodetype.virtual.VirtualNodeTypeStateProvider
public class VirtualNodeTypeStateProvider
This Class implements a virtual item state provider that exposes the registered nodetypes.
Field Summary |
---|
Fields inherited from class org.apache.jackrabbit.core.virtual.AbstractVISProvider |
---|
ntReg, rootNodeId |
Constructor Summary | |
---|---|
VirtualNodeTypeStateProvider(NodeTypeRegistry ntReg,
NodeId rootNodeId,
NodeId parentId)
|
Method Summary | |
---|---|
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 |
onNodeTypeRemoved(Name ntName)
|
boolean |
setNodeReferences(ChangeLog references)
Informs this provider that the node references to some of its states have changed. |
Methods inherited from class org.apache.jackrabbit.core.virtual.AbstractVISProvider |
---|
addListener, cache, createNodeState, createPropertyState, evict, getApplicableChildNodeDef, getApplicablePropertyDef, getEffectiveNodeType, getItemState, getNodeReferences, getNodeTypeRegistry, getRootState, getVirtualRootId, getVirtualRootIds, hasItemState, hasNodeReferences, internalGetPropertyState, internalHasPropertyState, invalidateItem, isVirtualRoot, removeListener, stateCreated, stateDestroyed, stateDiscarded, stateModified |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VirtualNodeTypeStateProvider(NodeTypeRegistry ntReg, NodeId rootNodeId, NodeId parentId)
ntReg
- rootNodeId
- parentId
- Method Detail |
---|
protected VirtualNodeState createRootNodeState() throws RepositoryException
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) throws RepositoryException
RepositoryException
public void onNodeTypeModified(Name ntName) throws RepositoryException
RepositoryException
public void onNodeTypeRemoved(Name ntName) throws RepositoryException
RepositoryException
public boolean setNodeReferences(ChangeLog references)
VirtualItemStateProvider
references
- collection of NodeReferences
instances
true
if the reference target is one of its items.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |