Package org.apache.jackrabbit.rmi.server
Class ServerNodeType
- 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.ServerNodeType
-
- All Implemented Interfaces:
Serializable
,Remote
,RemoteNodeType
@Deprecated(forRemoval=true) public class ServerNodeType extends ServerObject implements RemoteNodeType
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
NodeType
interface. This class makes a local node type available as an RMI service using theRemoteNodeType
interface.- See Also:
NodeType
,RemoteNodeType
, Serialized Form
-
-
Field Summary
-
Fields inherited from class java.rmi.server.RemoteObject
ref
-
-
Constructor Summary
Constructors Constructor Description ServerNodeType(NodeType type, RemoteAdapterFactory factory)
Deprecated, for removal: This API element is subject to removal in a future version.Creates a remote adapter for the given local node type.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
canAddChildNode(String name)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.canAddChildNode(String)
method.boolean
canAddChildNode(String name, String type)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.canAddChildNode(String,String)
method.boolean
canRemoveItem(String name)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.canRemoveItem(String)
method.boolean
canRemoveNode(String nodeName)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.canRemoveNode()
method.boolean
canRemoveProperty(String propertyName)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.canRemoveProperty()
method.boolean
canSetProperty(String name, Value value)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.canSetProperty(String,Value)
method.boolean
canSetProperty(String name, Value[] values)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.canSetProperty(String,Value[])
method.RemoteNodeDefinition[]
getChildNodeDefs()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.getChildNodeDefinitions()
method.RemoteNodeDefinition[]
getDeclaredChildNodeDefs()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.getDeclaredChildNodeDefinitions()
method.RemotePropertyDefinition[]
getDeclaredPropertyDefs()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.getDeclaredPropertyDefinitions()
method.RemoteIterator
getDeclaredSubtypes()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.getDeclaredSubtypes()
method.String[]
getDeclaredSupertypeNames()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.getDeclaredSupertypeNames()
method.RemoteNodeType[]
getDeclaredSupertypes()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.getDeclaredSupertypes()
method.String
getName()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.getName()
method.String
getPrimaryItemName()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.getPrimaryItemName()
method.RemotePropertyDefinition[]
getPropertyDefs()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.getPropertyDefinitions()
method.RemoteIterator
getSubtypes()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.getSubtypes()
method.RemoteNodeType[]
getSupertypes()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.getSupertypes()
method.boolean
hasOrderableChildNodes()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.hasOrderableChildNodes()
method.boolean
isAbstract()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.isAbstract()
method.boolean
isMixin()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.isMixin()
method.boolean
isNodeType(String type)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.isNodeType(String)
method.boolean
isQueryable()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.isQueryable()
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
-
ServerNodeType
public ServerNodeType(NodeType type, 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 node type.- Parameters:
type
- local node typefactory
- remote adapter factory- Throws:
RemoteException
- on RMI errors
-
-
Method Detail
-
getName
public String getName() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.getName()
method.- Specified by:
getName
in interfaceRemoteNodeType
- Returns:
- node type name
- Throws:
RemoteException
- on RMI errors
-
isMixin
public boolean isMixin() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.isMixin()
method.- Specified by:
isMixin
in interfaceRemoteNodeType
- Returns:
true
if this is a mixin type,false
otherwise- Throws:
RemoteException
- on RMI errors
-
isAbstract
public boolean isAbstract() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.isAbstract()
method.- Specified by:
isAbstract
in interfaceRemoteNodeType
- Returns:
true
if this is an abstract type,false
otherwise- Throws:
RemoteException
- on RMI errors
-
hasOrderableChildNodes
public boolean hasOrderableChildNodes() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.hasOrderableChildNodes()
method.- Specified by:
hasOrderableChildNodes
in interfaceRemoteNodeType
- Returns:
true
if nodes of this type has orderable child nodes,false
otherwise- Throws:
RemoteException
- on RMI errors
-
getSupertypes
public RemoteNodeType[] getSupertypes() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.getSupertypes()
method.- Specified by:
getSupertypes
in interfaceRemoteNodeType
- Returns:
- supertypes
- Throws:
RemoteException
- on RMI errors
-
getDeclaredSupertypes
public RemoteNodeType[] getDeclaredSupertypes() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.getDeclaredSupertypes()
method.- Specified by:
getDeclaredSupertypes
in interfaceRemoteNodeType
- Returns:
- declared supertypes
- Throws:
RemoteException
- on RMI errors
-
isNodeType
public boolean isNodeType(String type) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.isNodeType(String)
method.- Specified by:
isNodeType
in interfaceRemoteNodeType
- Parameters:
type
- node type name- Returns:
true
if this node type is or extends the given node type,false
otherwise- Throws:
RemoteException
- on RMI errors
-
getPropertyDefs
public RemotePropertyDefinition[] getPropertyDefs() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.getPropertyDefinitions()
method.- Specified by:
getPropertyDefs
in interfaceRemoteNodeType
- Returns:
- property definitions
- Throws:
RemoteException
- on RMI errors
-
getDeclaredPropertyDefs
public RemotePropertyDefinition[] getDeclaredPropertyDefs() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.getDeclaredPropertyDefinitions()
method.- Specified by:
getDeclaredPropertyDefs
in interfaceRemoteNodeType
- Returns:
- declared property definitions
- Throws:
RemoteException
- on RMI errors
-
getChildNodeDefs
public RemoteNodeDefinition[] getChildNodeDefs() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.getChildNodeDefinitions()
method.- Specified by:
getChildNodeDefs
in interfaceRemoteNodeType
- Returns:
- child node definitions
- Throws:
RemoteException
- on RMI errors
-
getDeclaredChildNodeDefs
public RemoteNodeDefinition[] getDeclaredChildNodeDefs() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.getDeclaredChildNodeDefinitions()
method.- Specified by:
getDeclaredChildNodeDefs
in interfaceRemoteNodeType
- Returns:
- declared child node definitions
- Throws:
RemoteException
- on RMI errors
-
canSetProperty
public boolean canSetProperty(String name, Value value) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.canSetProperty(String,Value)
method.- Specified by:
canSetProperty
in interfaceRemoteNodeType
- Parameters:
name
- property namevalue
- property value- Returns:
true
if the property can be set,false
otherwise- Throws:
RemoteException
- on RMI errors
-
canSetProperty
public boolean canSetProperty(String name, Value[] values) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.canSetProperty(String,Value[])
method.- Specified by:
canSetProperty
in interfaceRemoteNodeType
- Parameters:
name
- property namevalues
- property values- Returns:
true
if the property can be set,false
otherwise- Throws:
RemoteException
- on RMI errors
-
canAddChildNode
public boolean canAddChildNode(String name) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.canAddChildNode(String)
method.- Specified by:
canAddChildNode
in interfaceRemoteNodeType
- Parameters:
name
- child node name- Returns:
true
if the child node can be added,false
otherwise- Throws:
RemoteException
- on RMI errors
-
canAddChildNode
public boolean canAddChildNode(String name, String type) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.canAddChildNode(String,String)
method.- Specified by:
canAddChildNode
in interfaceRemoteNodeType
- Parameters:
name
- child node nametype
- child node type- Returns:
true
if the child node can be added,false
otherwise- Throws:
RemoteException
- on RMI errors
-
canRemoveItem
public boolean canRemoveItem(String name) throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.canRemoveItem(String)
method.- Specified by:
canRemoveItem
in interfaceRemoteNodeType
- Parameters:
name
- item name- Returns:
true
if the item can be removed,false
otherwise- Throws:
RemoteException
- on RMI errors
-
getPrimaryItemName
public String getPrimaryItemName() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.getPrimaryItemName()
method.- Specified by:
getPrimaryItemName
in interfaceRemoteNodeType
- Returns:
- primary item name
- Throws:
RemoteException
- on RMI errors
-
canRemoveNode
public boolean canRemoveNode(String nodeName)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.canRemoveNode()
method.- Specified by:
canRemoveNode
in interfaceRemoteNodeType
- Returns:
- boolean
-
canRemoveProperty
public boolean canRemoveProperty(String propertyName)
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.canRemoveProperty()
method.- Specified by:
canRemoveProperty
in interfaceRemoteNodeType
- Returns:
- boolean
-
getDeclaredSupertypeNames
public String[] getDeclaredSupertypeNames()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.getDeclaredSupertypeNames()
method.- Specified by:
getDeclaredSupertypeNames
in interfaceRemoteNodeType
- Returns:
- a String[]
-
isQueryable
public boolean isQueryable()
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.isQueryable()
method.- Specified by:
isQueryable
in interfaceRemoteNodeType
- Returns:
- boolean
-
getDeclaredSubtypes
public RemoteIterator getDeclaredSubtypes() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.getDeclaredSubtypes()
method.- Specified by:
getDeclaredSubtypes
in interfaceRemoteNodeType
- Returns:
- RemoteIterator
- Throws:
RemoteException
- on RMI errors
-
getSubtypes
public RemoteIterator getSubtypes() throws RemoteException
Deprecated, for removal: This API element is subject to removal in a future version.Remote version of theNodeType.getSubtypes()
method.- Specified by:
getSubtypes
in interfaceRemoteNodeType
- Returns:
- RemoteIterator
- Throws:
RemoteException
- on RMI errors
-
-