org.apache.jackrabbit.mk.model.tree
Interface NodeStore

All Known Subinterfaces:
RevisionProvider, RevisionStore
All Known Implementing Classes:
DefaultRevisionStore

public interface NodeStore

Storage abstraction for content trees. At any given point in time the stored content tree is rooted at a single immutable node state.

This is a low-level interface that doesn't cover functionality like merging concurrent changes or rejecting new tree states based on some higher-level consistency constraints.


Method Summary
 void compare(NodeState before, NodeState after, NodeStateDiff diff)
          Compares the given two node states.
 NodeState getRoot()
          Returns the latest state of the content tree.
 

Method Detail

getRoot

NodeState getRoot()
Returns the latest state of the content tree.

Returns:
root node state

compare

void compare(NodeState before,
             NodeState after,
             NodeStateDiff diff)
Compares the given two node states. Any found differences are reported by calling the relevant added, changed or deleted methods of the given handler.

Parameters:
before - node state before changes
after - node state after changes
diff - handler of node state differences


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.