org.apache.jackrabbit.mk.store
Interface RevisionProvider

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

public interface RevisionProvider

Read operations.


Method Summary
 ChildNodeEntriesMap getCNEMap(Id id)
           
 StoredCommit getCommit(Id id)
           
 StoredCommit getHeadCommit()
           
 Id getHeadCommitId()
           
 Id getId(NodeState node)
          Adapts the given NodeState to the corresponding identifier.
 StoredNode getNode(Id id)
           
 NodeState getNodeState(StoredNode node)
          Adapts the given StoredNode to a corresponding NodeState instance.
 StoredNode getRootNode(Id commitId)
           
 

Method Detail

getNodeState

NodeState getNodeState(StoredNode node)
Adapts the given StoredNode to a corresponding NodeState instance.

Parameters:
node - stored node instance
Returns:
node state adapter

getId

Id getId(NodeState node)
Adapts the given NodeState to the corresponding identifier.

Parameters:
node - node state
Returns:
node identifier

getNode

StoredNode getNode(Id id)
                   throws NotFoundException,
                          Exception
Throws:
NotFoundException
Exception

getCommit

StoredCommit getCommit(Id id)
                       throws NotFoundException,
                              Exception
Throws:
NotFoundException
Exception

getCNEMap

ChildNodeEntriesMap getCNEMap(Id id)
                              throws NotFoundException,
                                     Exception
Throws:
NotFoundException
Exception

getRootNode

StoredNode getRootNode(Id commitId)
                       throws NotFoundException,
                              Exception
Throws:
NotFoundException
Exception

getHeadCommit

StoredCommit getHeadCommit()
                           throws Exception
Throws:
Exception

getHeadCommitId

Id getHeadCommitId()
                   throws Exception
Throws:
Exception


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