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