org.exoplatform.services.jcr.rmi.impl.server
Class ServerPropertyDefinition
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.exoplatform.services.jcr.rmi.impl.server.ServerObject
org.exoplatform.services.jcr.rmi.impl.server.ServerItemDefinition
org.exoplatform.services.jcr.rmi.impl.server.ServerPropertyDefinition
- All Implemented Interfaces:
- java.io.Serializable, java.rmi.Remote, RemoteItemDefinition, RemotePropertyDefinition
public class ServerPropertyDefinition
- extends ServerItemDefinition
- implements RemotePropertyDefinition
Remote adapter for the JCR PropertyDefinition
interface. This class makes a local property definition available as an RMI service using the
RemotePropertyDefinition interface.
- See Also:
PropertyDefinition,
rmi.api.remote.RemotePropertyDefinition,
Serialized Form
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
|
Method Summary |
javax.jcr.Value[] |
getDefaultValues()
Remote version of the PropertyDefinition.getDefaultValues() method. |
int |
getRequiredType()
Remote version of the PropertyDefinition.getRequiredType() method. |
java.lang.String[] |
getValueConstraints()
Remote version of the PropertyDefinition.getValueConstraints() method. |
boolean |
isMultiple()
Remote version of the PropertyDefinition.isMultiple() method. |
| 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 |
ServerPropertyDefinition
public ServerPropertyDefinition(javax.jcr.nodetype.PropertyDefinition def,
RemoteAdapterFactory factory)
throws java.rmi.RemoteException
- Creates a remote adapter for the given local property definition.
- Parameters:
def - local property definitionfactory - remote adapter factory
- Throws:
java.rmi.RemoteException - on RMI errors
getRequiredType
public int getRequiredType()
throws java.rmi.RemoteException
- Remote version of the
PropertyDefinition.getRequiredType() method.
- Specified by:
getRequiredType in interface RemotePropertyDefinition
- Returns:
- required type
- Throws:
java.rmi.RemoteException - on RMI errors
getValueConstraints
public java.lang.String[] getValueConstraints()
throws java.rmi.RemoteException
- Remote version of the
PropertyDefinition.getValueConstraints() method.
- Specified by:
getValueConstraints in interface RemotePropertyDefinition
- Returns:
- value constraints
- Throws:
java.rmi.RemoteException - on RMI errors
getDefaultValues
public javax.jcr.Value[] getDefaultValues()
throws java.rmi.RemoteException
- Remote version of the
PropertyDefinition.getDefaultValues() method.
- Specified by:
getDefaultValues in interface RemotePropertyDefinition
- Returns:
- default values
- Throws:
java.rmi.RemoteException - on RMI errors
isMultiple
public boolean isMultiple()
throws java.rmi.RemoteException
- Remote version of the
PropertyDefinition.isMultiple() method.
- Specified by:
isMultiple in interface RemotePropertyDefinition
- Returns:
true if the property is multi-valued, false otherwise
- Throws:
java.rmi.RemoteException - on RMI errors
Copyright © 2012 eXo Platform SAS. All Rights Reserved.