org.apache.jackrabbit.oak.jcr.version
Class VersionManagerImpl

java.lang.Object
  extended by org.apache.jackrabbit.oak.jcr.version.VersionManagerImpl
All Implemented Interfaces:
javax.jcr.version.VersionManager

public class VersionManagerImpl
extends Object
implements javax.jcr.version.VersionManager


Constructor Summary
VersionManagerImpl(SessionContext sessionContext)
           
 
Method Summary
 void cancelMerge(String absPath, javax.jcr.version.Version version)
           
 javax.jcr.version.Version checkin(String absPath)
           
 void checkout(String absPath)
           
 javax.jcr.version.Version checkpoint(String absPath)
           
 javax.jcr.Node createActivity(String title)
           
 javax.jcr.Node createConfiguration(String absPath)
           
 void doneMerge(String absPath, javax.jcr.version.Version version)
           
 javax.jcr.Node getActivity()
           
 javax.jcr.version.Version getBaseVersion(String absPath)
           
 javax.jcr.version.VersionHistory getVersionHistory(String absPath)
           
 boolean isCheckedOut(String absPath)
           
 javax.jcr.NodeIterator merge(javax.jcr.Node activityNode)
           
 javax.jcr.NodeIterator merge(String absPath, String srcWorkspace, boolean bestEffort)
           
 javax.jcr.NodeIterator merge(String absPath, String srcWorkspace, boolean bestEffort, boolean isShallow)
           
 void removeActivity(javax.jcr.Node activityNode)
           
 void restore(String absPath, String versionName, boolean removeExisting)
           
 void restore(String absPath, javax.jcr.version.Version version, boolean removeExisting)
           
 void restore(javax.jcr.version.Version[] versions, boolean removeExisting)
           
 void restore(javax.jcr.version.Version version, boolean removeExisting)
           
 void restoreByLabel(String absPath, String versionLabel, boolean removeExisting)
           
 javax.jcr.Node setActivity(javax.jcr.Node activity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VersionManagerImpl

public VersionManagerImpl(SessionContext sessionContext)
Method Detail

setActivity

public javax.jcr.Node setActivity(javax.jcr.Node activity)
                           throws javax.jcr.RepositoryException
Specified by:
setActivity in interface javax.jcr.version.VersionManager
Throws:
javax.jcr.RepositoryException

restoreByLabel

public void restoreByLabel(String absPath,
                           String versionLabel,
                           boolean removeExisting)
                    throws javax.jcr.RepositoryException
Specified by:
restoreByLabel in interface javax.jcr.version.VersionManager
Throws:
javax.jcr.RepositoryException

restore

public void restore(String absPath,
                    javax.jcr.version.Version version,
                    boolean removeExisting)
             throws javax.jcr.RepositoryException
Specified by:
restore in interface javax.jcr.version.VersionManager
Throws:
javax.jcr.RepositoryException

restore

public void restore(String absPath,
                    String versionName,
                    boolean removeExisting)
             throws javax.jcr.RepositoryException
Specified by:
restore in interface javax.jcr.version.VersionManager
Throws:
javax.jcr.RepositoryException

restore

public void restore(javax.jcr.version.Version version,
                    boolean removeExisting)
             throws javax.jcr.RepositoryException
Specified by:
restore in interface javax.jcr.version.VersionManager
Throws:
javax.jcr.RepositoryException

restore

public void restore(javax.jcr.version.Version[] versions,
                    boolean removeExisting)
             throws javax.jcr.ItemExistsException,
                    javax.jcr.UnsupportedRepositoryOperationException,
                    javax.jcr.version.VersionException,
                    javax.jcr.lock.LockException,
                    javax.jcr.InvalidItemStateException,
                    javax.jcr.RepositoryException
Specified by:
restore in interface javax.jcr.version.VersionManager
Throws:
javax.jcr.ItemExistsException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.InvalidItemStateException
javax.jcr.RepositoryException

removeActivity

public void removeActivity(javax.jcr.Node activityNode)
                    throws javax.jcr.RepositoryException
Specified by:
removeActivity in interface javax.jcr.version.VersionManager
Throws:
javax.jcr.RepositoryException

merge

public javax.jcr.NodeIterator merge(String absPath,
                                    String srcWorkspace,
                                    boolean bestEffort,
                                    boolean isShallow)
                             throws javax.jcr.RepositoryException
Specified by:
merge in interface javax.jcr.version.VersionManager
Throws:
javax.jcr.RepositoryException

merge

public javax.jcr.NodeIterator merge(String absPath,
                                    String srcWorkspace,
                                    boolean bestEffort)
                             throws javax.jcr.RepositoryException
Specified by:
merge in interface javax.jcr.version.VersionManager
Throws:
javax.jcr.RepositoryException

merge

public javax.jcr.NodeIterator merge(javax.jcr.Node activityNode)
                             throws javax.jcr.RepositoryException
Specified by:
merge in interface javax.jcr.version.VersionManager
Throws:
javax.jcr.RepositoryException

isCheckedOut

public boolean isCheckedOut(String absPath)
                     throws javax.jcr.RepositoryException
Specified by:
isCheckedOut in interface javax.jcr.version.VersionManager
Throws:
javax.jcr.RepositoryException

getVersionHistory

public javax.jcr.version.VersionHistory getVersionHistory(String absPath)
                                                   throws javax.jcr.RepositoryException
Specified by:
getVersionHistory in interface javax.jcr.version.VersionManager
Throws:
javax.jcr.RepositoryException

getBaseVersion

public javax.jcr.version.Version getBaseVersion(String absPath)
                                         throws javax.jcr.RepositoryException
Specified by:
getBaseVersion in interface javax.jcr.version.VersionManager
Throws:
javax.jcr.RepositoryException

getActivity

public javax.jcr.Node getActivity()
                           throws javax.jcr.RepositoryException
Specified by:
getActivity in interface javax.jcr.version.VersionManager
Throws:
javax.jcr.RepositoryException

doneMerge

public void doneMerge(String absPath,
                      javax.jcr.version.Version version)
               throws javax.jcr.RepositoryException
Specified by:
doneMerge in interface javax.jcr.version.VersionManager
Throws:
javax.jcr.RepositoryException

createConfiguration

public javax.jcr.Node createConfiguration(String absPath)
                                   throws javax.jcr.RepositoryException
Specified by:
createConfiguration in interface javax.jcr.version.VersionManager
Throws:
javax.jcr.RepositoryException

createActivity

public javax.jcr.Node createActivity(String title)
                              throws javax.jcr.RepositoryException
Specified by:
createActivity in interface javax.jcr.version.VersionManager
Throws:
javax.jcr.RepositoryException

checkpoint

public javax.jcr.version.Version checkpoint(String absPath)
                                     throws javax.jcr.RepositoryException
Specified by:
checkpoint in interface javax.jcr.version.VersionManager
Throws:
javax.jcr.RepositoryException

checkout

public void checkout(String absPath)
              throws javax.jcr.RepositoryException
Specified by:
checkout in interface javax.jcr.version.VersionManager
Throws:
javax.jcr.RepositoryException

checkin

public javax.jcr.version.Version checkin(String absPath)
                                  throws javax.jcr.RepositoryException
Specified by:
checkin in interface javax.jcr.version.VersionManager
Throws:
javax.jcr.RepositoryException

cancelMerge

public void cancelMerge(String absPath,
                        javax.jcr.version.Version version)
                 throws javax.jcr.RepositoryException
Specified by:
cancelMerge in interface javax.jcr.version.VersionManager
Throws:
javax.jcr.RepositoryException


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