Class VersionManagerImpl
- java.lang.Object
-
- org.apache.jackrabbit.oak.jcr.version.VersionManagerImpl
-
- All Implemented Interfaces:
VersionManager
public class VersionManagerImpl extends Object implements VersionManager
-
-
Constructor Summary
Constructors Constructor Description VersionManagerImpl(SessionContext sessionContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelMerge(String absPath, Version version)Versioncheckin(String absPath)voidcheckout(String absPath)Versioncheckpoint(String absPath)NodecreateActivity(String title)NodecreateConfiguration(String absPath)voiddoneMerge(String absPath, Version version)NodegetActivity()VersiongetBaseVersion(String absPath)VersionHistorygetVersionHistory(String absPath)booleanisCheckedOut(@NotNull NodeDelegate nodeDelegate)booleanisCheckedOut(String absPath)NodeIteratormerge(String absPath, String srcWorkspace, boolean bestEffort)NodeIteratormerge(String absPath, String srcWorkspace, boolean bestEffort, boolean isShallow)NodeIteratormerge(Node activityNode)voidremoveActivity(Node activityNode)voidrestore(String absPath, String versionName, boolean removeExisting)voidrestore(String absPath, Version version, boolean removeExisting)voidrestore(Version[] versions, boolean removeExisting)voidrestore(Version version, boolean removeExisting)voidrestoreByLabel(String absPath, String versionLabel, boolean removeExisting)NodesetActivity(Node activity)
-
-
-
Constructor Detail
-
VersionManagerImpl
public VersionManagerImpl(SessionContext sessionContext)
-
-
Method Detail
-
setActivity
public Node setActivity(Node activity) throws RepositoryException
- Specified by:
setActivityin interfaceVersionManager- Throws:
RepositoryException
-
restoreByLabel
public void restoreByLabel(String absPath, String versionLabel, boolean removeExisting) throws RepositoryException
- Specified by:
restoreByLabelin interfaceVersionManager- Throws:
RepositoryException
-
restore
public void restore(String absPath, Version version, boolean removeExisting) throws RepositoryException
- Specified by:
restorein interfaceVersionManager- Throws:
RepositoryException
-
restore
public void restore(String absPath, String versionName, boolean removeExisting) throws RepositoryException
- Specified by:
restorein interfaceVersionManager- Throws:
RepositoryException
-
restore
public void restore(Version version, boolean removeExisting) throws RepositoryException
- Specified by:
restorein interfaceVersionManager- Throws:
RepositoryException
-
restore
public void restore(Version[] versions, boolean removeExisting) throws ItemExistsException, UnsupportedRepositoryOperationException, VersionException, LockException, InvalidItemStateException, RepositoryException
- Specified by:
restorein interfaceVersionManager- Throws:
ItemExistsExceptionUnsupportedRepositoryOperationExceptionVersionExceptionLockExceptionInvalidItemStateExceptionRepositoryException
-
removeActivity
public void removeActivity(Node activityNode) throws RepositoryException
- Specified by:
removeActivityin interfaceVersionManager- Throws:
RepositoryException
-
merge
public NodeIterator merge(String absPath, String srcWorkspace, boolean bestEffort, boolean isShallow) throws RepositoryException
- Specified by:
mergein interfaceVersionManager- Throws:
RepositoryException
-
merge
public NodeIterator merge(String absPath, String srcWorkspace, boolean bestEffort) throws RepositoryException
- Specified by:
mergein interfaceVersionManager- Throws:
RepositoryException
-
merge
public NodeIterator merge(Node activityNode) throws RepositoryException
- Specified by:
mergein interfaceVersionManager- Throws:
RepositoryException
-
isCheckedOut
public boolean isCheckedOut(String absPath) throws RepositoryException
- Specified by:
isCheckedOutin interfaceVersionManager- Throws:
RepositoryException
-
getVersionHistory
public VersionHistory getVersionHistory(String absPath) throws RepositoryException
- Specified by:
getVersionHistoryin interfaceVersionManager- Throws:
RepositoryException
-
getBaseVersion
public Version getBaseVersion(String absPath) throws RepositoryException
- Specified by:
getBaseVersionin interfaceVersionManager- Throws:
RepositoryException
-
getActivity
public Node getActivity() throws RepositoryException
- Specified by:
getActivityin interfaceVersionManager- Throws:
RepositoryException
-
doneMerge
public void doneMerge(String absPath, Version version) throws RepositoryException
- Specified by:
doneMergein interfaceVersionManager- Throws:
RepositoryException
-
createConfiguration
public Node createConfiguration(String absPath) throws RepositoryException
- Specified by:
createConfigurationin interfaceVersionManager- Throws:
RepositoryException
-
createActivity
public Node createActivity(String title) throws RepositoryException
- Specified by:
createActivityin interfaceVersionManager- Throws:
RepositoryException
-
checkpoint
public Version checkpoint(String absPath) throws RepositoryException
- Specified by:
checkpointin interfaceVersionManager- Throws:
RepositoryException
-
checkout
public void checkout(String absPath) throws RepositoryException
- Specified by:
checkoutin interfaceVersionManager- Throws:
RepositoryException
-
checkin
public Version checkin(String absPath) throws RepositoryException
- Specified by:
checkinin interfaceVersionManager- Throws:
RepositoryException
-
cancelMerge
public void cancelMerge(String absPath, Version version) throws RepositoryException
- Specified by:
cancelMergein interfaceVersionManager- Throws:
RepositoryException
-
isCheckedOut
public boolean isCheckedOut(@NotNull @NotNull NodeDelegate nodeDelegate) throws RepositoryException- Throws:
RepositoryException
-
-