Package org.apache.jackrabbit.rmi.client
Class ClientVersionHistory
- java.lang.Object
-
- org.apache.jackrabbit.rmi.client.ClientObject
-
- org.apache.jackrabbit.rmi.client.ClientItem
-
- org.apache.jackrabbit.rmi.client.ClientNode
-
- org.apache.jackrabbit.rmi.client.ClientVersionHistory
-
- All Implemented Interfaces:
Item,Node,VersionHistory
@Deprecated public class ClientVersionHistory extends ClientNode implements VersionHistory
Deprecated.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Local adapter for the JCR-RMI
RemoteVersionHistoryinterface. This class makes a remote version history locally available using the JCRVersionHistoryinterface.- See Also:
VersionHistory,RemoteVersionHistory
-
-
Field Summary
-
Fields inherited from interface javax.jcr.Node
JCR_CHILD_NODE_DEFINITION, JCR_CONTENT, JCR_FROZEN_NODE, JCR_PROPERTY_DEFINITION, JCR_ROOT_VERSION, JCR_VERSION_LABELS
-
-
Constructor Summary
Constructors Constructor Description ClientVersionHistory(Session session, RemoteVersionHistory remote, LocalAdapterFactory factory)Deprecated.Creates a local adapter for the given remote version history.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddVersionLabel(String versionName, String label, boolean moveLabel)Deprecated.NodeIteratorgetAllFrozenNodes()Deprecated.NodeIteratorgetAllLinearFrozenNodes()Deprecated.VersionIteratorgetAllLinearVersions()Deprecated.VersionIteratorgetAllVersions()Deprecated.VersiongetRootVersion()Deprecated.VersiongetVersion(String versionName)Deprecated.StringgetVersionableIdentifier()Deprecated.StringgetVersionableUUID()Deprecated.As of JCR 2.0,getVersionableIdentifier()should be used instead.VersiongetVersionByLabel(String label)Deprecated.String[]getVersionLabels()Deprecated.String[]getVersionLabels(Version version)Deprecated.booleanhasVersionLabel(String label)Deprecated.booleanhasVersionLabel(Version version, String label)Deprecated.voidremoveVersion(String versionName)Deprecated.voidremoveVersionLabel(String label)Deprecated.-
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientNode
accept, addMixin, addNode, addNode, canAddMixin, cancelMerge, checkin, checkout, doneMerge, followLifecycleTransition, getAllowedLifecycleTransistions, getBaseVersion, getCorrespondingNodePath, getDefinition, getIdentifier, getIndex, getLock, getMixinNodeTypes, getNode, getNodes, getNodes, getNodes, getPrimaryItem, getPrimaryNodeType, getProperties, getProperties, getProperties, getProperty, getReferences, getReferences, getSharedSet, getUUID, getVersionHistory, getWeakReferences, getWeakReferences, hasNode, hasNodes, hasProperties, hasProperty, holdsLock, isCheckedOut, isLocked, isNode, isNodeType, lock, merge, orderBefore, removeMixin, removeShare, removeSharedSet, restore, restore, restore, restoreByLabel, setPrimaryType, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, unlock, update
-
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientItem
getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isSame, refresh, remove, save
-
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientObject
getFactory, getItem, getNode, getNodeTypeArray
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.jcr.Item
accept, getAncestor, getDepth, getName, getParent, getPath, getSession, isModified, isNew, isNode, isSame, refresh, remove, save
-
Methods inherited from interface javax.jcr.Node
addMixin, addNode, addNode, canAddMixin, cancelMerge, checkin, checkout, doneMerge, followLifecycleTransition, getAllowedLifecycleTransistions, getBaseVersion, getCorrespondingNodePath, getDefinition, getIdentifier, getIndex, getLock, getMixinNodeTypes, getNode, getNodes, getNodes, getNodes, getPrimaryItem, getPrimaryNodeType, getProperties, getProperties, getProperties, getProperty, getReferences, getReferences, getSharedSet, getUUID, getVersionHistory, getWeakReferences, getWeakReferences, hasNode, hasNodes, hasProperties, hasProperty, holdsLock, isCheckedOut, isLocked, isNodeType, lock, merge, orderBefore, removeMixin, removeShare, removeSharedSet, restore, restore, restore, restoreByLabel, setPrimaryType, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, unlock, update
-
-
-
-
Constructor Detail
-
ClientVersionHistory
public ClientVersionHistory(Session session, RemoteVersionHistory remote, LocalAdapterFactory factory)
Deprecated.Creates a local adapter for the given remote version history.- Parameters:
session- current sessionremote- remote version historyfactory- local adapter factory
-
-
Method Detail
-
getRootVersion
public Version getRootVersion() throws RepositoryException
Deprecated.- Specified by:
getRootVersionin interfaceVersionHistory- Throws:
RepositoryException
-
getAllVersions
public VersionIterator getAllVersions() throws RepositoryException
Deprecated.- Specified by:
getAllVersionsin interfaceVersionHistory- Throws:
RepositoryException
-
getVersion
public Version getVersion(String versionName) throws VersionException, RepositoryException
Deprecated.- Specified by:
getVersionin interfaceVersionHistory- Throws:
VersionExceptionRepositoryException
-
getVersionByLabel
public Version getVersionByLabel(String label) throws RepositoryException
Deprecated.- Specified by:
getVersionByLabelin interfaceVersionHistory- Throws:
RepositoryException
-
addVersionLabel
public void addVersionLabel(String versionName, String label, boolean moveLabel) throws VersionException, RepositoryException
Deprecated.- Specified by:
addVersionLabelin interfaceVersionHistory- Throws:
VersionExceptionRepositoryException
-
removeVersionLabel
public void removeVersionLabel(String label) throws VersionException, RepositoryException
Deprecated.- Specified by:
removeVersionLabelin interfaceVersionHistory- Throws:
VersionExceptionRepositoryException
-
hasVersionLabel
public boolean hasVersionLabel(String label) throws RepositoryException
Deprecated.- Specified by:
hasVersionLabelin interfaceVersionHistory- Throws:
RepositoryException
-
hasVersionLabel
public boolean hasVersionLabel(Version version, String label) throws VersionException, RepositoryException
Deprecated.- Specified by:
hasVersionLabelin interfaceVersionHistory- Throws:
VersionExceptionRepositoryException
-
getVersionLabels
public String[] getVersionLabels() throws RepositoryException
Deprecated.- Specified by:
getVersionLabelsin interfaceVersionHistory- Throws:
RepositoryException
-
getVersionLabels
public String[] getVersionLabels(Version version) throws VersionException, RepositoryException
Deprecated.- Specified by:
getVersionLabelsin interfaceVersionHistory- Throws:
VersionExceptionRepositoryException
-
removeVersion
public void removeVersion(String versionName) throws UnsupportedRepositoryOperationException, VersionException, RepositoryException
Deprecated.- Specified by:
removeVersionin interfaceVersionHistory- Throws:
UnsupportedRepositoryOperationExceptionVersionExceptionRepositoryException
-
getVersionableUUID
public String getVersionableUUID() throws RepositoryException
Deprecated.As of JCR 2.0,getVersionableIdentifier()should be used instead.- Specified by:
getVersionableUUIDin interfaceVersionHistory- Throws:
RepositoryException
-
getAllFrozenNodes
public NodeIterator getAllFrozenNodes() throws RepositoryException
Deprecated.- Specified by:
getAllFrozenNodesin interfaceVersionHistory- Throws:
RepositoryException
-
getAllLinearFrozenNodes
public NodeIterator getAllLinearFrozenNodes() throws RepositoryException
Deprecated.- Specified by:
getAllLinearFrozenNodesin interfaceVersionHistory- Throws:
RepositoryException
-
getAllLinearVersions
public VersionIterator getAllLinearVersions() throws RepositoryException
Deprecated.- Specified by:
getAllLinearVersionsin interfaceVersionHistory- Throws:
RepositoryException
-
getVersionableIdentifier
public String getVersionableIdentifier() throws RepositoryException
Deprecated.- Specified by:
getVersionableIdentifierin interfaceVersionHistory- Throws:
RepositoryException
-
-