Interface RemoteProperty
-
- All Superinterfaces:
Remote,RemoteItem
- All Known Implementing Classes:
ServerProperty
@Deprecated public interface RemoteProperty extends RemoteItem
Deprecated.RMI support is deprecated and will be removed in a future version of Jackrabbit; see Jira ticket JCR-4972 for more information.Remote version of the JCR
Propertyinterface. Used by theServerPropertyandClientPropertyadapters to provide transparent RMI access to remote properties.The methods in this interface are documented only with a reference to a corresponding Property method. The remote object will simply forward the method call to the underlying Property instance. Argument and return values, as well as possible exceptions, are copied over the network. Complex
PropertyDefreturn values are returned as remote references to the correspondingRemotePropertyDefinitioninterface. RMI errors are signaled with RemoteExceptions.Note that only the generic getValue and setValue methods are included in this interface. Clients should implement the type-specific value getters and setters wrapping using the generic methods. Note also that the Value objects must be serializable and implemented using classes available on both the client and server side. The
SerialValueFactoryclass provides two convenience methods to satisfy these requirements.- See Also:
Property,ClientProperty,ServerProperty
-
-
Method Summary
All Methods Instance Methods Abstract 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 interface org.apache.jackrabbit.rmi.remote.RemoteItem
getAncestor, getDepth, getName, getParent, getPath, isModified, isNew, refresh, remove, save
-
-
-
-
Method Detail
-
getValue
Value getValue() throws RepositoryException, RemoteException
Deprecated.Remote version of theProperty.getValue()method.- Returns:
- property value
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getValues
Value[] getValues() throws RepositoryException, RemoteException
Deprecated.Remote version of theProperty.getValues()method.- Returns:
- property values
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
setValue
void setValue(Value value) throws RepositoryException, RemoteException
Deprecated.Remote version of theProperty.setValue(Value)method.- Parameters:
value- property value- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
setValue
void setValue(Value[] values) throws RepositoryException, RemoteException
Deprecated.Remote version of theProperty.setValue(Value[])method.- Parameters:
values- property values- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getLength
long getLength() throws RepositoryException, RemoteExceptionDeprecated.Remote version of theProperty.getLength()method.- Returns:
- value length
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getLengths
long[] getLengths() throws RepositoryException, RemoteExceptionDeprecated.Remote version of theProperty.getLengths()method.- Returns:
- value lengths
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getDefinition
RemotePropertyDefinition getDefinition() throws RepositoryException, RemoteException
Deprecated.Remote version of theProperty.getDefinition()method.- Returns:
- property definition
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
getType
int getType() throws RepositoryException, RemoteExceptionDeprecated.Remote version of theProperty.getType()method.- Returns:
- property type
- Throws:
RepositoryException- on repository errorsRemoteException- on RMI errors
-
-