public class JcrVersionManager extends Object implements javax.jcr.version.VersionManager
VersionManagerImpl
...Modifier | Constructor and Description |
---|---|
protected |
JcrVersionManager(SessionImpl session) |
Modifier and Type | Method and Description |
---|---|
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) |
protected JcrVersionManager(SessionImpl session)
public javax.jcr.version.Version checkin(String absPath) throws javax.jcr.version.VersionException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.InvalidItemStateException, javax.jcr.lock.LockException, javax.jcr.RepositoryException
checkin
in interface javax.jcr.version.VersionManager
javax.jcr.version.VersionException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.InvalidItemStateException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
VersionManager.checkin(String)
public void checkout(String absPath) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.lock.LockException, javax.jcr.RepositoryException
checkout
in interface javax.jcr.version.VersionManager
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
VersionManager.checkout(String)
public javax.jcr.version.Version checkpoint(String absPath) throws javax.jcr.version.VersionException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.InvalidItemStateException, javax.jcr.lock.LockException, javax.jcr.RepositoryException
checkpoint
in interface javax.jcr.version.VersionManager
javax.jcr.version.VersionException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.InvalidItemStateException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
VersionManager.checkpoint(String)
public boolean isCheckedOut(String absPath) throws javax.jcr.RepositoryException
isCheckedOut
in interface javax.jcr.version.VersionManager
javax.jcr.RepositoryException
VersionManager.isCheckedOut(String)
public javax.jcr.version.VersionHistory getVersionHistory(String absPath) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
getVersionHistory
in interface javax.jcr.version.VersionManager
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
VersionManager.getVersionHistory(String)
public javax.jcr.version.Version getBaseVersion(String absPath) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
getBaseVersion
in interface javax.jcr.version.VersionManager
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
VersionManager.getBaseVersion(String)
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
restore
in interface javax.jcr.version.VersionManager
javax.jcr.ItemExistsException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.InvalidItemStateException
javax.jcr.RepositoryException
VersionManager.restore(Version[], boolean)
public void restore(String absPath, String versionName, boolean removeExisting) throws javax.jcr.version.VersionException, javax.jcr.ItemExistsException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.lock.LockException, javax.jcr.InvalidItemStateException, javax.jcr.RepositoryException
restore
in interface javax.jcr.version.VersionManager
javax.jcr.version.VersionException
javax.jcr.ItemExistsException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.lock.LockException
javax.jcr.InvalidItemStateException
javax.jcr.RepositoryException
VersionManager.restore(String, String, boolean)
public void restore(javax.jcr.version.Version version, boolean removeExisting) throws javax.jcr.version.VersionException, javax.jcr.ItemExistsException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.lock.LockException, javax.jcr.RepositoryException
restore
in interface javax.jcr.version.VersionManager
javax.jcr.version.VersionException
javax.jcr.ItemExistsException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
VersionManager.restore(Version, boolean)
public void restore(String absPath, javax.jcr.version.Version version, boolean removeExisting) throws javax.jcr.PathNotFoundException, javax.jcr.ItemExistsException, javax.jcr.version.VersionException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.lock.LockException, javax.jcr.InvalidItemStateException, javax.jcr.RepositoryException
restore
in interface javax.jcr.version.VersionManager
javax.jcr.PathNotFoundException
javax.jcr.ItemExistsException
javax.jcr.version.VersionException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.lock.LockException
javax.jcr.InvalidItemStateException
javax.jcr.RepositoryException
VersionManager.restore(String, Version, boolean)
public void restoreByLabel(String absPath, String versionLabel, boolean removeExisting) throws javax.jcr.version.VersionException, javax.jcr.ItemExistsException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.lock.LockException, javax.jcr.InvalidItemStateException, javax.jcr.RepositoryException
restoreByLabel
in interface javax.jcr.version.VersionManager
javax.jcr.version.VersionException
javax.jcr.ItemExistsException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.lock.LockException
javax.jcr.InvalidItemStateException
javax.jcr.RepositoryException
VersionManager.restoreByLabel(String, String, boolean)
public javax.jcr.NodeIterator merge(String absPath, String srcWorkspace, boolean bestEffort) throws javax.jcr.NoSuchWorkspaceException, javax.jcr.AccessDeniedException, javax.jcr.MergeException, javax.jcr.lock.LockException, javax.jcr.InvalidItemStateException, javax.jcr.RepositoryException
merge
in interface javax.jcr.version.VersionManager
javax.jcr.NoSuchWorkspaceException
javax.jcr.AccessDeniedException
javax.jcr.MergeException
javax.jcr.lock.LockException
javax.jcr.InvalidItemStateException
javax.jcr.RepositoryException
VersionManager.merge(String, String, boolean)
public javax.jcr.NodeIterator merge(String absPath, String srcWorkspace, boolean bestEffort, boolean isShallow) throws javax.jcr.NoSuchWorkspaceException, javax.jcr.AccessDeniedException, javax.jcr.MergeException, javax.jcr.lock.LockException, javax.jcr.InvalidItemStateException, javax.jcr.RepositoryException
merge
in interface javax.jcr.version.VersionManager
javax.jcr.NoSuchWorkspaceException
javax.jcr.AccessDeniedException
javax.jcr.MergeException
javax.jcr.lock.LockException
javax.jcr.InvalidItemStateException
javax.jcr.RepositoryException
VersionManager.merge(String, String, boolean, boolean)
public void doneMerge(String absPath, javax.jcr.version.Version version) throws javax.jcr.version.VersionException, javax.jcr.InvalidItemStateException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
doneMerge
in interface javax.jcr.version.VersionManager
javax.jcr.version.VersionException
javax.jcr.InvalidItemStateException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
VersionManager.doneMerge(String, Version)
public void cancelMerge(String absPath, javax.jcr.version.Version version) throws javax.jcr.version.VersionException, javax.jcr.InvalidItemStateException, javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
cancelMerge
in interface javax.jcr.version.VersionManager
javax.jcr.version.VersionException
javax.jcr.InvalidItemStateException
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
VersionManager.cancelMerge(String, Version)
public javax.jcr.Node createConfiguration(String absPath) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
createConfiguration
in interface javax.jcr.version.VersionManager
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
VersionManager.createConfiguration(String)
public javax.jcr.Node setActivity(javax.jcr.Node activity) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
setActivity
in interface javax.jcr.version.VersionManager
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
VersionManager.setActivity(Node)
public javax.jcr.Node getActivity() throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
getActivity
in interface javax.jcr.version.VersionManager
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
VersionManager.getActivity()
public javax.jcr.Node createActivity(String title) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
createActivity
in interface javax.jcr.version.VersionManager
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
VersionManager.createActivity(String)
public void removeActivity(javax.jcr.Node activityNode) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
removeActivity
in interface javax.jcr.version.VersionManager
javax.jcr.UnsupportedRepositoryOperationException
javax.jcr.RepositoryException
VersionManager.removeActivity(Node)
public javax.jcr.NodeIterator merge(javax.jcr.Node activityNode) throws javax.jcr.version.VersionException, javax.jcr.AccessDeniedException, javax.jcr.MergeException, javax.jcr.lock.LockException, javax.jcr.InvalidItemStateException, javax.jcr.RepositoryException
merge
in interface javax.jcr.version.VersionManager
javax.jcr.version.VersionException
javax.jcr.AccessDeniedException
javax.jcr.MergeException
javax.jcr.lock.LockException
javax.jcr.InvalidItemStateException
javax.jcr.RepositoryException
VersionManager.merge(Node)
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.