org.jboss.shotoku
Interface History


public interface History

An interface that should be implemented by classes which represent a node's history.

Author:
Adam Warski (adamw@aster.pl), Damon Sicore (damon@sicore.com)

Method Summary
 NodeList getAllRevisions()
          Gets a list of all nodes in this history.
 Node getNodeAtRevision(int revision)
          Gets a node with a given revision.
 int getRevisionsCount()
          Gets the number of revisions of this node's history.
 

Method Detail

getRevisionsCount

int getRevisionsCount()
                      throws RepositoryException
Gets the number of revisions of this node's history.

Returns:
Number of revisions of this node's history.
Throws:
RepositoryException

getNodeAtRevision

Node getNodeAtRevision(int revision)
                       throws ResourceDoesNotExist,
                              RepositoryException
Gets a node with a given revision. Revisions are numbered from 0.

Parameters:
revision - Revision number to get.
Returns:
A node at the given revision.
Throws:
ResourceDoesNotExist
RepositoryException

getAllRevisions

NodeList getAllRevisions()
                         throws RepositoryException
Gets a list of all nodes in this history.

Returns:
A list of all nodes in this history.
Throws:
RepositoryException


Copyright © -2006 . All Rights Reserved.