Package org.apache.jackrabbit.rmi.server
Class ServerProperty
- 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.ServerProperty
-
- All Implemented Interfaces:
Serializable,Remote,RemoteItem,RemoteProperty
@Deprecated public class ServerProperty extends ServerItem implements RemoteProperty
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
Propertyinterface. This class makes a local property available as an RMI service using theRemotePropertyinterface.- See Also:
Property,RemoteProperty, Serialized Form
-
-
Field Summary
-
Fields inherited from class java.rmi.server.RemoteObject
ref
-
-
Constructor Summary
Constructors Constructor Description ServerProperty(Property property, RemoteAdapterFactory factory)Deprecated.Creates a remote adapter for the given local property.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RemotePropertyDefinitiongetDefinition()Deprecated.Remote version of theProperty.getDefinition()method.longgetLength()Deprecated.Remote version of theProperty.getLength()method.long[]getLengths()Deprecated.Remote version of theProperty.getLengths()method.intgetType()Deprecated.Remote version of theProperty.getType()method.ValuegetValue()Deprecated.Remote version of theProperty.getValue()method.Value[]getValues()Deprecated.Remote version of theProperty.getValues()method.voidsetValue(Value value)Deprecated.Remote version of theProperty.setValue(Value)method.voidsetValue(Value[] values)Deprecated.Remote version of theProperty.setValue(Value[])method.-
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
-
-
-
-
Constructor Detail
-
ServerProperty
public ServerProperty(Property property, RemoteAdapterFactory factory) throws RemoteException
Deprecated.Creates a remote adapter for the given local property.- Parameters:
property- local propertyfactory- remote adapter factory- Throws:
RemoteException- on RMI errors
-
-
Method Detail
-
getValue
public Value getValue() throws RepositoryException, RemoteException
Deprecated.Remote version of theProperty.getValue()method.- Specified by:
getValuein interfaceRemoteProperty- Returns:
- property value
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getValues
public Value[] getValues() throws RepositoryException, RemoteException
Deprecated.Remote version of theProperty.getValues()method.- Specified by:
getValuesin interfaceRemoteProperty- Returns:
- property values
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
setValue
public void setValue(Value value) throws RepositoryException, RemoteException
Deprecated.Remote version of theProperty.setValue(Value)method.- Specified by:
setValuein interfaceRemoteProperty- Parameters:
value- property value- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
setValue
public void setValue(Value[] values) throws RepositoryException, RemoteException
Deprecated.Remote version of theProperty.setValue(Value[])method.- Specified by:
setValuein interfaceRemoteProperty- Parameters:
values- property values- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getLength
public long getLength() throws RepositoryException, RemoteExceptionDeprecated.Remote version of theProperty.getLength()method.- Specified by:
getLengthin interfaceRemoteProperty- Returns:
- value length
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getLengths
public long[] getLengths() throws RepositoryException, RemoteExceptionDeprecated.Remote version of theProperty.getLengths()method.- Specified by:
getLengthsin interfaceRemoteProperty- Returns:
- value lengths
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getDefinition
public RemotePropertyDefinition getDefinition() throws RepositoryException, RemoteException
Deprecated.Remote version of theProperty.getDefinition()method.- Specified by:
getDefinitionin interfaceRemoteProperty- Returns:
- property definition
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getType
public int getType() throws RepositoryException, RemoteExceptionDeprecated.Remote version of theProperty.getType()method.- Specified by:
getTypein interfaceRemoteProperty- Returns:
- property type
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
-