Package org.apache.jackrabbit.rmi.server
Class ServerVersion
-
- All Implemented Interfaces:
Serializable,Remote,RemoteItem,RemoteNode,RemoteVersion
@Deprecated public class ServerVersion extends ServerNode implements RemoteVersion
Deprecated.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Remote adapter for the JCR
Versioninterface. This class makes a local version available as an RMI service using theRemoteVersioninterface.- See Also:
Version,RemoteVersion, Serialized Form
-
-
Field Summary
-
Fields inherited from class java.rmi.server.RemoteObject
ref
-
-
Constructor Summary
Constructors Constructor Description ServerVersion(Version version, RemoteAdapterFactory factory)Deprecated.Creates a remote adapter for the given local version.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RemoteVersionHistorygetContainingHistory()Deprecated.Remote version of theVersion.getContainingHistory()method.CalendargetCreated()Deprecated.Remote version of theVersion.getCreated()method.RemoteNodegetFrozenNode()Deprecated.Remote version of theVersion.getFrozenNode()method.RemoteVersiongetLinearPredecessor()Deprecated.Remote version of theVersion.getLinearPredecessor()method.RemoteVersiongetLinearSuccessor()Deprecated.Remote version of theVersion.getLinearSuccessor()method.RemoteVersion[]getPredecessors()Deprecated.Remote version of theVersion.getPredecessors()method.RemoteVersion[]getSuccessors()Deprecated.Remote version of theVersion.getSuccessors()method.-
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerNode
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, getVersionByUUID, getVersionHistory, getWeakReferences, getWeakReferences, hasNode, hasNodes, hasProperties, hasProperty, holdsLock, isCheckedOut, isLocked, isNodeType, lock, merge, orderBefore, removeMixin, removeShare, removeSharedSet, restore, restore, restoreByLabel, restoreByUUID, setPrimaryType, setProperty, setProperty, setProperty, setProperty, unlock, update
-
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerItem
getAncestor, getDepth, getName, getParent, getPath, isModified, isNew, refresh, remove, save
-
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerObject
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException, getSerialValue, getSerialValues
-
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
-
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
-
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.jackrabbit.rmi.remote.RemoteItem
getAncestor, getDepth, getName, getParent, getPath, isModified, isNew, refresh, remove, save
-
Methods inherited from interface org.apache.jackrabbit.rmi.remote.RemoteNode
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, restoreByLabel, restoreByUUID, setPrimaryType, setProperty, setProperty, setProperty, setProperty, unlock, update
-
-
-
-
Constructor Detail
-
ServerVersion
public ServerVersion(Version version, RemoteAdapterFactory factory) throws RemoteException
Deprecated.Creates a remote adapter for the given local version.- Parameters:
version- local versionfactory- remote adapter factory- Throws:
RemoteException- on RMI errors
-
-
Method Detail
-
getContainingHistory
public RemoteVersionHistory getContainingHistory() throws RepositoryException, RemoteException
Deprecated.Remote version of theVersion.getContainingHistory()method.- Specified by:
getContainingHistoryin interfaceRemoteVersion- Returns:
- a
RemoteVersionHistoryobject. - Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getCreated
public Calendar getCreated() throws RepositoryException
Deprecated.Remote version of theVersion.getCreated()method.- Specified by:
getCreatedin interfaceRemoteVersion- Returns:
- a
Calendarobject. - Throws:
RepositoryException- on repository errors
-
getLinearSuccessor
public RemoteVersion getLinearSuccessor() throws RepositoryException, RemoteException
Deprecated.Remote version of theVersion.getLinearSuccessor()method.- Specified by:
getLinearSuccessorin interfaceRemoteVersion- Returns:
- a
RemoteVersionornullif no linear successor exists. - Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors- See Also:
RemoteVersionHistory.getAllLinearVersions()
-
getSuccessors
public RemoteVersion[] getSuccessors() throws RepositoryException, RemoteException
Deprecated.Remote version of theVersion.getSuccessors()method.- Specified by:
getSuccessorsin interfaceRemoteVersion- Returns:
- a
RemoteVersionarray. - Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getLinearPredecessor
public RemoteVersion getLinearPredecessor() throws RepositoryException, RemoteException
Deprecated.Remote version of theVersion.getLinearPredecessor()method.- Specified by:
getLinearPredecessorin interfaceRemoteVersion- Returns:
- a
RemoteVersionornullif no linear predecessor exists. - Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors- See Also:
RemoteVersionHistory.getAllLinearVersions()
-
getPredecessors
public RemoteVersion[] getPredecessors() throws RepositoryException, RemoteException
Deprecated.Remote version of theVersion.getPredecessors()method.- Specified by:
getPredecessorsin interfaceRemoteVersion- Returns:
- a
RemoteVersionarray. - Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getFrozenNode
public RemoteNode getFrozenNode() throws RepositoryException, RemoteException
Deprecated.Remote version of theVersion.getFrozenNode()method.- Specified by:
getFrozenNodein interfaceRemoteVersion- Returns:
- a
RemoteNodeobject. - Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
-