org.apache.jackrabbit.rmi.server
Class ServerVersion
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.apache.jackrabbit.rmi.server.ServerObject
org.apache.jackrabbit.rmi.server.ServerItem
org.apache.jackrabbit.rmi.server.ServerNode
org.apache.jackrabbit.rmi.server.ServerVersion
- All Implemented Interfaces:
- Serializable, Remote, RemoteItem, RemoteNode, RemoteVersion
public class ServerVersion
- extends ServerNode
- implements RemoteVersion
Remote adapter for the JCR Version
interface.
This class makes a local version available as an RMI service using
the RemoteVersion
interface.
- See Also:
Version
,
RemoteVersion
,
Serialized Form
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerNode |
addMixin, addNode, addNode, canAddMixin, cancelMerge, checkin, checkout, doneMerge, getBaseVersion, getCorrespondingNodePath, getDefinition, getIdentifier, getIndex, getLock, getMixinNodeTypes, getNode, getNodes, getNodes, getNodes, getPrimaryItem, getPrimaryNodeType, getProperties, getProperties, getProperties, getProperty, getReferences, getReferences, getUUID, getVersionByUUID, getVersionHistory, hasNode, hasNodes, hasProperties, hasProperty, holdsLock, isCheckedOut, isLocked, isNodeType, lock, merge, orderBefore, removeMixin, restore, restore, restoreByLabel, restoreByUUID, setProperty, setProperty, setProperty, setProperty, unlock, update |
Methods inherited from interface org.apache.jackrabbit.rmi.remote.RemoteNode |
addMixin, addNode, addNode, canAddMixin, cancelMerge, checkin, checkout, doneMerge, getBaseVersion, getCorrespondingNodePath, getDefinition, getIdentifier, getIndex, getLock, getMixinNodeTypes, getNode, getNodes, getNodes, getNodes, getPrimaryItem, getPrimaryNodeType, getProperties, getProperties, getProperties, getProperty, getReferences, getReferences, getUUID, getVersionHistory, hasNode, hasNodes, hasProperties, hasProperty, holdsLock, isCheckedOut, isLocked, isNodeType, lock, merge, orderBefore, removeMixin, restore, restore, restoreByLabel, restoreByUUID, setProperty, setProperty, setProperty, setProperty, unlock, update |
ServerVersion
public ServerVersion(Version version,
RemoteAdapterFactory factory)
throws RemoteException
- Creates a remote adapter for the given local version.
- Parameters:
version
- local versionfactory
- remote adapter factory
- Throws:
RemoteException
- on RMI errors
getCreated
public Calendar getCreated()
throws RepositoryException
- Remote version of the
Version.getCreated()
method.
- Specified by:
getCreated
in interface RemoteVersion
- Returns:
- a
Calendar
object.
- Throws:
RepositoryException
- on repository errors
getSuccessors
public RemoteVersion[] getSuccessors()
throws RepositoryException,
RemoteException
- Remote version of the
Version.getSuccessors()
method.
- Specified by:
getSuccessors
in interface RemoteVersion
- Returns:
- a
RemoteVersion
array.
- Throws:
RepositoryException
- on repository errors
RemoteException
- on RMI errors
getPredecessors
public RemoteVersion[] getPredecessors()
throws RepositoryException,
RemoteException
- Remote version of the
Version.getPredecessors()
method.
- Specified by:
getPredecessors
in interface RemoteVersion
- Returns:
- a
RemoteVersion
array.
- Throws:
RepositoryException
- on repository errors
RemoteException
- on RMI errors
getContainingHistory
public RemoteVersionHistory getContainingHistory()
throws RepositoryException,
RemoteException
- Remote version of the
Version.getContainingHistory()
Version.getContainingHistory()} method.
- Specified by:
getContainingHistory
in interface RemoteVersion
- Returns:
- a
RemoteVersionHistory
.
- Throws:
RepositoryException
- on repository errors
RemoteException
- on RMI errors
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.