public class ClientVersionManager extends ClientObject implements javax.jcr.version.VersionManager
Constructor and Description |
---|
ClientVersionManager(javax.jcr.Session session,
RemoteVersionManager remote,
LocalAdapterFactory factory) |
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) |
getFactory, getItem, getNode, getNodeTypeArray
public ClientVersionManager(javax.jcr.Session session, RemoteVersionManager remote, LocalAdapterFactory factory)
public void cancelMerge(String absPath, javax.jcr.version.Version version) throws javax.jcr.RepositoryException
cancelMerge
in interface javax.jcr.version.VersionManager
javax.jcr.RepositoryException
public javax.jcr.version.Version checkin(String absPath) throws javax.jcr.RepositoryException
checkin
in interface javax.jcr.version.VersionManager
javax.jcr.RepositoryException
public void checkout(String absPath) throws javax.jcr.RepositoryException
checkout
in interface javax.jcr.version.VersionManager
javax.jcr.RepositoryException
public javax.jcr.version.Version checkpoint(String absPath) throws javax.jcr.RepositoryException
checkpoint
in interface javax.jcr.version.VersionManager
javax.jcr.RepositoryException
public javax.jcr.Node createActivity(String title) throws javax.jcr.RepositoryException
createActivity
in interface javax.jcr.version.VersionManager
javax.jcr.RepositoryException
public javax.jcr.Node createConfiguration(String absPath) throws javax.jcr.RepositoryException
createConfiguration
in interface javax.jcr.version.VersionManager
javax.jcr.RepositoryException
public void doneMerge(String absPath, javax.jcr.version.Version version) throws javax.jcr.RepositoryException
doneMerge
in interface javax.jcr.version.VersionManager
javax.jcr.RepositoryException
public javax.jcr.Node getActivity() throws javax.jcr.RepositoryException
getActivity
in interface javax.jcr.version.VersionManager
javax.jcr.RepositoryException
public javax.jcr.version.Version getBaseVersion(String absPath) throws javax.jcr.RepositoryException
getBaseVersion
in interface javax.jcr.version.VersionManager
javax.jcr.RepositoryException
public javax.jcr.version.VersionHistory getVersionHistory(String absPath) throws javax.jcr.RepositoryException
getVersionHistory
in interface javax.jcr.version.VersionManager
javax.jcr.RepositoryException
public boolean isCheckedOut(String absPath) throws javax.jcr.RepositoryException
isCheckedOut
in interface javax.jcr.version.VersionManager
javax.jcr.RepositoryException
public javax.jcr.NodeIterator merge(javax.jcr.Node activityNode) throws javax.jcr.RepositoryException
merge
in interface javax.jcr.version.VersionManager
javax.jcr.RepositoryException
public javax.jcr.NodeIterator merge(String absPath, String srcWorkspace, boolean bestEffort) throws javax.jcr.RepositoryException
merge
in interface javax.jcr.version.VersionManager
javax.jcr.RepositoryException
public javax.jcr.NodeIterator merge(String absPath, String srcWorkspace, boolean bestEffort, boolean isShallow) throws javax.jcr.RepositoryException
merge
in interface javax.jcr.version.VersionManager
javax.jcr.RepositoryException
public void removeActivity(javax.jcr.Node activityNode) throws javax.jcr.RepositoryException
removeActivity
in interface javax.jcr.version.VersionManager
javax.jcr.RepositoryException
public void restore(javax.jcr.version.Version[] versions, boolean removeExisting) throws javax.jcr.RepositoryException
restore
in interface javax.jcr.version.VersionManager
javax.jcr.RepositoryException
public void restore(javax.jcr.version.Version version, boolean removeExisting) throws javax.jcr.RepositoryException
restore
in interface javax.jcr.version.VersionManager
javax.jcr.RepositoryException
public void restore(String absPath, String versionName, boolean removeExisting) throws javax.jcr.RepositoryException
restore
in interface javax.jcr.version.VersionManager
javax.jcr.RepositoryException
public void restore(String absPath, javax.jcr.version.Version version, boolean removeExisting) throws javax.jcr.RepositoryException
restore
in interface javax.jcr.version.VersionManager
javax.jcr.RepositoryException
public void restoreByLabel(String absPath, String versionLabel, boolean removeExisting) throws javax.jcr.RepositoryException
restoreByLabel
in interface javax.jcr.version.VersionManager
javax.jcr.RepositoryException
public javax.jcr.Node setActivity(javax.jcr.Node activity) throws javax.jcr.RepositoryException
setActivity
in interface javax.jcr.version.VersionManager
javax.jcr.RepositoryException
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.