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(forRemoval=true) public class ServerItemDefinition extends ServerObject implements RemoteItemDefinition
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 adapter for the JCR
ItemDefinition
interface. This class makes a local item definition available as an RMI service using theRemoteItemDefinition
interface. Used mainly as the base class for theServerPropertyDefinition
andServerNodeDefinition
adapters.- 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, for removal: This API element is subject to removal in a future version.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 RemoteNodeType
getDeclaringNodeType()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItemDef.getDeclaringNodeType()
method.String
getName()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItemDef.getName()
method.int
getOnParentVersion()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItemDef.getOnParentVersion()
method.boolean
isAutoCreated()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItemDef.isAutoCreate()
method.boolean
isMandatory()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItemDef.isMandatory()
method.boolean
isProtected()
Deprecated, for removal: This API element is subject to removal in a future version.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, 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, for removal: This API element is subject to removal in a future version.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, for removal: This API element is subject to removal in a future version.Remote version of theItemDef.getDeclaringNodeType()
method.- Specified by:
getDeclaringNodeType
in interfaceRemoteItemDefinition
- Returns:
- declaring node type
- Throws:
RemoteException
- on RMI errors
-
getName
public String getName() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItemDef.getName()
method.- Specified by:
getName
in interfaceRemoteItemDefinition
- Returns:
- item name
- Throws:
RemoteException
- on RMI errors
-
isAutoCreated
public boolean isAutoCreated() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItemDef.isAutoCreate()
method.- Specified by:
isAutoCreated
in interfaceRemoteItemDefinition
- Returns:
true
if the item is automatically created,false
otherwise- Throws:
RemoteException
- on RMI errors
-
isMandatory
public boolean isMandatory() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItemDef.isMandatory()
method.- Specified by:
isMandatory
in interfaceRemoteItemDefinition
- Returns:
true
if the item is mandatory,false
otherwise- Throws:
RemoteException
- on RMI errors
-
getOnParentVersion
public int getOnParentVersion() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItemDef.getOnParentVersion()
method.- Specified by:
getOnParentVersion
in interfaceRemoteItemDefinition
- Returns:
- parent version behaviour
- Throws:
RemoteException
- on RMI errors
-
isProtected
public boolean isProtected() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theItemDef.isProtected()
method.- Specified by:
isProtected
in interfaceRemoteItemDefinition
- Returns:
true
if the item is protected,false
otherwise- Throws:
RemoteException
- on RMI errors
-
-