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(forRemoval=true) public class ClientVersionHistory extends ClientNode implements VersionHistory
Deprecated, for removal: This API element is subject to removal in a future version.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
RemoteVersionHistory
interface. This class makes a remote version history locally available using the JCRVersionHistory
interface.- 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, for removal: This API element is subject to removal in a future version.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 void
addVersionLabel(String versionName, String label, boolean moveLabel)
Deprecated, for removal: This API element is subject to removal in a future version.NodeIterator
getAllFrozenNodes()
Deprecated, for removal: This API element is subject to removal in a future version.NodeIterator
getAllLinearFrozenNodes()
Deprecated, for removal: This API element is subject to removal in a future version.VersionIterator
getAllLinearVersions()
Deprecated, for removal: This API element is subject to removal in a future version.VersionIterator
getAllVersions()
Deprecated, for removal: This API element is subject to removal in a future version.Version
getRootVersion()
Deprecated, for removal: This API element is subject to removal in a future version.Version
getVersion(String versionName)
Deprecated, for removal: This API element is subject to removal in a future version.String
getVersionableIdentifier()
Deprecated, for removal: This API element is subject to removal in a future version.String
getVersionableUUID()
Deprecated.As of JCR 2.0,getVersionableIdentifier()
should be used instead.Version
getVersionByLabel(String label)
Deprecated, for removal: This API element is subject to removal in a future version.String[]
getVersionLabels()
Deprecated, for removal: This API element is subject to removal in a future version.String[]
getVersionLabels(Version version)
Deprecated, for removal: This API element is subject to removal in a future version.boolean
hasVersionLabel(String label)
Deprecated, for removal: This API element is subject to removal in a future version.boolean
hasVersionLabel(Version version, String label)
Deprecated, for removal: This API element is subject to removal in a future version.void
removeVersion(String versionName)
Deprecated, for removal: This API element is subject to removal in a future version.void
removeVersionLabel(String label)
Deprecated, for removal: This API element is subject to removal in a future version.-
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, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.- Specified by:
getRootVersion
in interfaceVersionHistory
- Throws:
RepositoryException
-
getAllVersions
public VersionIterator getAllVersions() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAllVersions
in interfaceVersionHistory
- Throws:
RepositoryException
-
getVersion
public Version getVersion(String versionName) throws VersionException, RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getVersion
in interfaceVersionHistory
- Throws:
VersionException
RepositoryException
-
getVersionByLabel
public Version getVersionByLabel(String label) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getVersionByLabel
in interfaceVersionHistory
- Throws:
RepositoryException
-
addVersionLabel
public void addVersionLabel(String versionName, String label, boolean moveLabel) throws VersionException, RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
addVersionLabel
in interfaceVersionHistory
- Throws:
VersionException
RepositoryException
-
removeVersionLabel
public void removeVersionLabel(String label) throws VersionException, RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
removeVersionLabel
in interfaceVersionHistory
- Throws:
VersionException
RepositoryException
-
hasVersionLabel
public boolean hasVersionLabel(String label) throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
hasVersionLabel
in interfaceVersionHistory
- Throws:
RepositoryException
-
hasVersionLabel
public boolean hasVersionLabel(Version version, String label) throws VersionException, RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
hasVersionLabel
in interfaceVersionHistory
- Throws:
VersionException
RepositoryException
-
getVersionLabels
public String[] getVersionLabels() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getVersionLabels
in interfaceVersionHistory
- Throws:
RepositoryException
-
getVersionLabels
public String[] getVersionLabels(Version version) throws VersionException, RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getVersionLabels
in interfaceVersionHistory
- Throws:
VersionException
RepositoryException
-
removeVersion
public void removeVersion(String versionName) throws UnsupportedRepositoryOperationException, VersionException, RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
removeVersion
in interfaceVersionHistory
- Throws:
UnsupportedRepositoryOperationException
VersionException
RepositoryException
-
getVersionableUUID
public String getVersionableUUID() throws RepositoryException
Deprecated.As of JCR 2.0,getVersionableIdentifier()
should be used instead.- Specified by:
getVersionableUUID
in interfaceVersionHistory
- Throws:
RepositoryException
-
getAllFrozenNodes
public NodeIterator getAllFrozenNodes() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAllFrozenNodes
in interfaceVersionHistory
- Throws:
RepositoryException
-
getAllLinearFrozenNodes
public NodeIterator getAllLinearFrozenNodes() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAllLinearFrozenNodes
in interfaceVersionHistory
- Throws:
RepositoryException
-
getAllLinearVersions
public VersionIterator getAllLinearVersions() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getAllLinearVersions
in interfaceVersionHistory
- Throws:
RepositoryException
-
getVersionableIdentifier
public String getVersionableIdentifier() throws RepositoryException
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
getVersionableIdentifier
in interfaceVersionHistory
- Throws:
RepositoryException
-
-