org.apache.jackrabbit.rmi.server
Class ServerProperty

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.apache.jackrabbit.rmi.server.ServerObject
                  extended by org.apache.jackrabbit.rmi.server.ServerItem
                      extended by org.apache.jackrabbit.rmi.server.ServerProperty
All Implemented Interfaces:
Serializable, Remote, RemoteItem, RemoteProperty

public class ServerProperty
extends ServerItem
implements RemoteProperty

Remote adapter for the JCR Property interface. This class makes a local property available as an RMI service using the RemoteProperty interface.

See Also:
Property, RemoteProperty, Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
ServerProperty(Property property, RemoteAdapterFactory factory)
          Creates a remote adapter for the given local property.
 
Method Summary
 RemotePropertyDefinition getDefinition()
          Remote version of the Property.getDefinition() method.
 long getLength()
          Remote version of the Property.getLength() method.
 long[] getLengths()
          Remote version of the Property.getLengths() method.
 int getType()
          Remote version of the Property.getType() method.
 Value getValue()
          Remote version of the Property.getValue() method.
 Value[] getValues()
          Remote version of the Property.getValues() method.
 void setValue(Value value)
          Remote version of the Property.setValue(Value) method.
 void setValue(Value[] values)
          Remote version of the Property.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
Creates a remote adapter for the given local property.

Parameters:
property - local property
factory - remote adapter factory
Throws:
RemoteException - on RMI errors
Method Detail

getValue

public Value getValue()
               throws RepositoryException,
                      RemoteException
Remote version of the Property.getValue() method.

Specified by:
getValue in interface RemoteProperty
Returns:
property value
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors

getValues

public Value[] getValues()
                  throws RepositoryException,
                         RemoteException
Remote version of the Property.getValues() method.

Specified by:
getValues in interface RemoteProperty
Returns:
property values
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors

setValue

public void setValue(Value value)
              throws RepositoryException,
                     RemoteException
Remote version of the Property.setValue(Value) method.

Specified by:
setValue in interface RemoteProperty
Parameters:
value - property value
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors

setValue

public void setValue(Value[] values)
              throws RepositoryException,
                     RemoteException
Remote version of the Property.setValue(Value[]) method.

Specified by:
setValue in interface RemoteProperty
Parameters:
values - property values
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors

getLength

public long getLength()
               throws RepositoryException,
                      RemoteException
Remote version of the Property.getLength() method.

Specified by:
getLength in interface RemoteProperty
Returns:
value length
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors

getLengths

public long[] getLengths()
                  throws RepositoryException,
                         RemoteException
Remote version of the Property.getLengths() method.

Specified by:
getLengths in interface RemoteProperty
Returns:
value lengths
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors

getDefinition

public RemotePropertyDefinition getDefinition()
                                       throws RepositoryException,
                                              RemoteException
Remote version of the Property.getDefinition() method.

Specified by:
getDefinition in interface RemoteProperty
Returns:
property definition
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors

getType

public int getType()
            throws RepositoryException,
                   RemoteException
Remote version of the Property.getType() method.

Specified by:
getType in interface RemoteProperty
Returns:
property type
Throws:
RepositoryException - on repository errors
RemoteException - on RMI errors


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.