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 void
cancelMerge(String absPath, Version version)
Version
checkin(String absPath)
void
checkout(String absPath)
Version
checkpoint(String absPath)
Node
createActivity(String title)
Node
createConfiguration(String absPath)
void
doneMerge(String absPath, Version version)
Node
getActivity()
Version
getBaseVersion(String absPath)
VersionHistory
getVersionHistory(String absPath)
boolean
isCheckedOut(@NotNull NodeDelegate nodeDelegate)
boolean
isCheckedOut(String absPath)
NodeIterator
merge(String absPath, String srcWorkspace, boolean bestEffort)
NodeIterator
merge(String absPath, String srcWorkspace, boolean bestEffort, boolean isShallow)
NodeIterator
merge(Node activityNode)
void
removeActivity(Node activityNode)
void
restore(String absPath, String versionName, boolean removeExisting)
void
restore(String absPath, Version version, boolean removeExisting)
void
restore(Version[] versions, boolean removeExisting)
void
restore(Version version, boolean removeExisting)
void
restoreByLabel(String absPath, String versionLabel, boolean removeExisting)
Node
setActivity(Node activity)
-
-
-
Constructor Detail
-
VersionManagerImpl
public VersionManagerImpl(SessionContext sessionContext)
-
-
Method Detail
-
setActivity
public Node setActivity(Node activity) throws RepositoryException
- Specified by:
setActivity
in interfaceVersionManager
- Throws:
RepositoryException
-
restoreByLabel
public void restoreByLabel(String absPath, String versionLabel, boolean removeExisting) throws RepositoryException
- Specified by:
restoreByLabel
in interfaceVersionManager
- Throws:
RepositoryException
-
restore
public void restore(String absPath, Version version, boolean removeExisting) throws RepositoryException
- Specified by:
restore
in interfaceVersionManager
- Throws:
RepositoryException
-
restore
public void restore(String absPath, String versionName, boolean removeExisting) throws RepositoryException
- Specified by:
restore
in interfaceVersionManager
- Throws:
RepositoryException
-
restore
public void restore(Version version, boolean removeExisting) throws RepositoryException
- Specified by:
restore
in interfaceVersionManager
- Throws:
RepositoryException
-
restore
public void restore(Version[] versions, boolean removeExisting) throws ItemExistsException, UnsupportedRepositoryOperationException, VersionException, LockException, InvalidItemStateException, RepositoryException
- Specified by:
restore
in interfaceVersionManager
- Throws:
ItemExistsException
UnsupportedRepositoryOperationException
VersionException
LockException
InvalidItemStateException
RepositoryException
-
removeActivity
public void removeActivity(Node activityNode) throws RepositoryException
- Specified by:
removeActivity
in interfaceVersionManager
- Throws:
RepositoryException
-
merge
public NodeIterator merge(String absPath, String srcWorkspace, boolean bestEffort, boolean isShallow) throws RepositoryException
- Specified by:
merge
in interfaceVersionManager
- Throws:
RepositoryException
-
merge
public NodeIterator merge(String absPath, String srcWorkspace, boolean bestEffort) throws RepositoryException
- Specified by:
merge
in interfaceVersionManager
- Throws:
RepositoryException
-
merge
public NodeIterator merge(Node activityNode) throws RepositoryException
- Specified by:
merge
in interfaceVersionManager
- Throws:
RepositoryException
-
isCheckedOut
public boolean isCheckedOut(String absPath) throws RepositoryException
- Specified by:
isCheckedOut
in interfaceVersionManager
- Throws:
RepositoryException
-
getVersionHistory
public VersionHistory getVersionHistory(String absPath) throws RepositoryException
- Specified by:
getVersionHistory
in interfaceVersionManager
- Throws:
RepositoryException
-
getBaseVersion
public Version getBaseVersion(String absPath) throws RepositoryException
- Specified by:
getBaseVersion
in interfaceVersionManager
- Throws:
RepositoryException
-
getActivity
public Node getActivity() throws RepositoryException
- Specified by:
getActivity
in interfaceVersionManager
- Throws:
RepositoryException
-
doneMerge
public void doneMerge(String absPath, Version version) throws RepositoryException
- Specified by:
doneMerge
in interfaceVersionManager
- Throws:
RepositoryException
-
createConfiguration
public Node createConfiguration(String absPath) throws RepositoryException
- Specified by:
createConfiguration
in interfaceVersionManager
- Throws:
RepositoryException
-
createActivity
public Node createActivity(String title) throws RepositoryException
- Specified by:
createActivity
in interfaceVersionManager
- Throws:
RepositoryException
-
checkpoint
public Version checkpoint(String absPath) throws RepositoryException
- Specified by:
checkpoint
in interfaceVersionManager
- Throws:
RepositoryException
-
checkout
public void checkout(String absPath) throws RepositoryException
- Specified by:
checkout
in interfaceVersionManager
- Throws:
RepositoryException
-
checkin
public Version checkin(String absPath) throws RepositoryException
- Specified by:
checkin
in interfaceVersionManager
- Throws:
RepositoryException
-
cancelMerge
public void cancelMerge(String absPath, Version version) throws RepositoryException
- Specified by:
cancelMerge
in interfaceVersionManager
- Throws:
RepositoryException
-
isCheckedOut
public boolean isCheckedOut(@NotNull @NotNull NodeDelegate nodeDelegate) throws RepositoryException
- Throws:
RepositoryException
-
-