org.jecars.version
Class CARS_JCRVersionManager

java.lang.Object
  extended by org.jecars.version.CARS_DefaultVersionManager
      extended by org.jecars.version.CARS_JCRVersionManager
All Implemented Interfaces:
CARS_VersionManager

public class CARS_JCRVersionManager
extends CARS_DefaultVersionManager

CARS_JCRVersionManager

Version:
$Id: CARS_JCRVersionManager.java,v 1.1 2007/10/19 14:31:50 weertj Exp $

Constructor Summary
CARS_JCRVersionManager()
           
 
Method Summary
 CARS_Version checkin(CARS_Main pMain, javax.jcr.Node pNode, java.lang.String pLabel)
          checkin the node
 javax.jcr.Node checkout(CARS_Main pMain, javax.jcr.Node pNode)
          checkout the node
 javax.jcr.Node restore(CARS_Main pMain, javax.jcr.Node pNode, java.lang.String pLabel)
          restore an version of a node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CARS_JCRVersionManager

public CARS_JCRVersionManager()
Method Detail

checkin

public CARS_Version checkin(CARS_Main pMain,
                            javax.jcr.Node pNode,
                            java.lang.String pLabel)
                     throws CARS_VersionException
checkin the node

Specified by:
checkin in interface CARS_VersionManager
Overrides:
checkin in class CARS_DefaultVersionManager
Parameters:
pNode - node which will be checked in
pLabel - optional label for the checked in version
Returns:
CARS_Version the result of the checkin
Throws:
CARS_VersionException - when an error occurs

checkout

public javax.jcr.Node checkout(CARS_Main pMain,
                               javax.jcr.Node pNode)
                        throws CARS_VersionException
checkout the node

Specified by:
checkout in interface CARS_VersionManager
Overrides:
checkout in class CARS_DefaultVersionManager
Parameters:
pMain - CARS_Main object
pNode - node which will be checked out
Returns:
The checkedout node
Throws:
CARS_VersionException - when an error occurs

restore

public javax.jcr.Node restore(CARS_Main pMain,
                              javax.jcr.Node pNode,
                              java.lang.String pLabel)
                       throws CARS_VersionException
restore an version of a node

Specified by:
restore in interface CARS_VersionManager
Overrides:
restore in class CARS_DefaultVersionManager
Parameters:
pMain - CARS_Main object
pNode - the node
pLabel - node with this label will be restored
Returns:
restored node
Throws:
CARS_VersionException - when an error occurs