org.apache.lenya.cms.repository
Class SourceNodeHistory

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.lenya.cms.repository.SourceNodeHistory
All Implemented Interfaces:
org.apache.avalon.framework.logger.LogEnabled, org.apache.lenya.cms.repository.History

public class SourceNodeHistory
extends org.apache.avalon.framework.logger.AbstractLogEnabled
implements org.apache.lenya.cms.repository.History

Revision history implementation.


Constructor Summary
SourceNodeHistory(SourceNode node, org.apache.avalon.framework.service.ServiceManager manager, org.apache.avalon.framework.logger.Logger logger)
          Ctor.
 
Method Summary
 org.apache.lenya.cms.repository.Revision getLatestRevision()
           
 org.apache.lenya.cms.repository.Revision getRevision(int number)
           
 int[] getRevisionNumbers()
           
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SourceNodeHistory

public SourceNodeHistory(SourceNode node,
                         org.apache.avalon.framework.service.ServiceManager manager,
                         org.apache.avalon.framework.logger.Logger logger)
Ctor.

Parameters:
node - The node which the history belongs to.
manager - The service manager.
logger - The logger.
Method Detail

getLatestRevision

public org.apache.lenya.cms.repository.Revision getLatestRevision()
Specified by:
getLatestRevision in interface org.apache.lenya.cms.repository.History

getRevision

public org.apache.lenya.cms.repository.Revision getRevision(int number)
                                                     throws org.apache.lenya.cms.repository.RepositoryException
Specified by:
getRevision in interface org.apache.lenya.cms.repository.History
Throws:
org.apache.lenya.cms.repository.RepositoryException

getRevisionNumbers

public int[] getRevisionNumbers()
Specified by:
getRevisionNumbers in interface org.apache.lenya.cms.repository.History


Copyright $ Apache Software Foundation. All Rights Reserved.