Interface RemoteProperty
-
- All Superinterfaces:
Remote
,RemoteItem
- All Known Implementing Classes:
ServerProperty
@Deprecated(forRemoval=true) public interface RemoteProperty extends RemoteItem
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.Remote version of the JCR
Property
interface. Used by theServerProperty
andClientProperty
adapters 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
PropertyDef
return values are returned as remote references to the correspondingRemotePropertyDefinition
interface. 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
SerialValueFactory
class 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 RemotePropertyDefinition
getDefinition()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theProperty.getDefinition()
method.long
getLength()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theProperty.getLength()
method.long[]
getLengths()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theProperty.getLengths()
method.int
getType()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theProperty.getType()
method.Value
getValue()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theProperty.getValue()
method.Value[]
getValues()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theProperty.getValues()
method.void
setValue(Value value)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theProperty.setValue(Value)
method.void
setValue(Value[] values)
Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.Remote version of theProperty.getValue()
method.- Returns:
- property value
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
getValues
Value[] getValues() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.Remote version of theProperty.setValue(Value[])
method.- Parameters:
values
- property values- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
getLength
long getLength() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theProperty.getLength()
method.- Returns:
- value length
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
getLengths
long[] getLengths() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theProperty.getLengths()
method.- Returns:
- value lengths
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
getDefinition
RemotePropertyDefinition getDefinition() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theProperty.getDefinition()
method.- Returns:
- property definition
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
getType
int getType() throws RepositoryException, RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theProperty.getType()
method.- Returns:
- property type
- Throws:
RepositoryException
- on repository errorsRemoteException
- on RMI errors
-
-