Package org.apache.jackrabbit.core.state
Interface NodeStateListener
-
- All Superinterfaces:
ItemStateListener
- All Known Implementing Classes:
CachingHierarchyManager
,LocalItemStateManager
,SessionItemStateManager
,XAItemStateManager
public interface NodeStateListener extends ItemStateListener
Extends theItemStateListener
allowing a client to be additionally informed about changes on aNodeState
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
nodeAdded(NodeState state, Name name, int index, NodeId id)
Called when a child node has been addedvoid
nodeModified(NodeState state)
Called when a node has been modified, typically as a result of removal or addition of a child node.void
nodeRemoved(NodeState state, Name name, int index, NodeId id)
Called when a child node has been removedvoid
nodesReplaced(NodeState state)
Called when the children nodes were replaced by other nodes, typically as result of a reorder operation.-
Methods inherited from interface org.apache.jackrabbit.core.state.ItemStateListener
stateCreated, stateDestroyed, stateDiscarded, stateModified
-
-
-
-
Method Detail
-
nodeAdded
void nodeAdded(NodeState state, Name name, int index, NodeId id)
Called when a child node has been added- Parameters:
state
- node state that changedname
- name of node that was addedindex
- index of new nodeid
- id of new node
-
nodeModified
void nodeModified(NodeState state)
Called when a node has been modified, typically as a result of removal or addition of a child node.Please note, that this method is not called if
ItemStateListener.stateModified(ItemState)
was called.- Parameters:
state
- node state that changed
-
nodesReplaced
void nodesReplaced(NodeState state)
Called when the children nodes were replaced by other nodes, typically as result of a reorder operation.- Parameters:
state
- node state that changed
-
-