Package org.apache.jackrabbit.rmi.server
Class ServerItemDefinition
- 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.ServerItemDefinition
-
- All Implemented Interfaces:
Serializable,Remote,RemoteItemDefinition
- Direct Known Subclasses:
ServerNodeDefinition,ServerPropertyDefinition
@Deprecated public class ServerItemDefinition extends ServerObject implements RemoteItemDefinition
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
ItemDefinitioninterface. This class makes a local item definition available as an RMI service using theRemoteItemDefinitioninterface. Used mainly as the base class for theServerPropertyDefinitionandServerNodeDefinitionadapters.- See Also:
ItemDefinition,RemoteItemDefinition, Serialized Form
-
-
Field Summary
-
Fields inherited from class java.rmi.server.RemoteObject
ref
-
-
Constructor Summary
Constructors Constructor Description ServerItemDefinition(ItemDefinition def, RemoteAdapterFactory factory)Deprecated.Creates a remote adapter for the given local item definition.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RemoteNodeTypegetDeclaringNodeType()Deprecated.Remote version of theItemDef.getDeclaringNodeType()method.StringgetName()Deprecated.Remote version of theItemDef.getName()method.intgetOnParentVersion()Deprecated.Remote version of theItemDef.getOnParentVersion()method.booleanisAutoCreated()Deprecated.Remote version of theItemDef.isAutoCreate()method.booleanisMandatory()Deprecated.Remote version of theItemDef.isMandatory()method.booleanisProtected()Deprecated.Remote version of theItemDef.isProtected()method.-
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
-
-
-
-
Constructor Detail
-
ServerItemDefinition
public ServerItemDefinition(ItemDefinition def, RemoteAdapterFactory factory) throws RemoteException
Deprecated.Creates a remote adapter for the given local item definition.- Parameters:
def- local item definitionfactory- remote adapter factory- Throws:
RemoteException- on RMI errors
-
-
Method Detail
-
getDeclaringNodeType
public RemoteNodeType getDeclaringNodeType() throws RemoteException
Deprecated.Remote version of theItemDef.getDeclaringNodeType()method.- Specified by:
getDeclaringNodeTypein interfaceRemoteItemDefinition- Returns:
- declaring node type
- Throws:
RemoteException- on RMI errors
-
getName
public String getName() throws RemoteException
Deprecated.Remote version of theItemDef.getName()method.- Specified by:
getNamein interfaceRemoteItemDefinition- Returns:
- item name
- Throws:
RemoteException- on RMI errors
-
isAutoCreated
public boolean isAutoCreated() throws RemoteExceptionDeprecated.Remote version of theItemDef.isAutoCreate()method.- Specified by:
isAutoCreatedin interfaceRemoteItemDefinition- Returns:
trueif the item is automatically created,falseotherwise- Throws:
RemoteException- on RMI errors
-
isMandatory
public boolean isMandatory() throws RemoteExceptionDeprecated.Remote version of theItemDef.isMandatory()method.- Specified by:
isMandatoryin interfaceRemoteItemDefinition- Returns:
trueif the item is mandatory,falseotherwise- Throws:
RemoteException- on RMI errors
-
getOnParentVersion
public int getOnParentVersion() throws RemoteExceptionDeprecated.Remote version of theItemDef.getOnParentVersion()method.- Specified by:
getOnParentVersionin interfaceRemoteItemDefinition- Returns:
- parent version behaviour
- Throws:
RemoteException- on RMI errors
-
isProtected
public boolean isProtected() throws RemoteExceptionDeprecated.Remote version of theItemDef.isProtected()method.- Specified by:
isProtectedin interfaceRemoteItemDefinition- Returns:
trueif the item is protected,falseotherwise- Throws:
RemoteException- on RMI errors
-
-