|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
public class ServerNodeType
Remote adapter for the JCR NodeType
interface. This class makes a local node type available as an RMI service
using the
RemoteNodeType
interface.
NodeType
,
RemoteNodeType
,
Serialized FormField Summary |
---|
Fields inherited from class java.rmi.server.RemoteObject |
---|
ref |
Constructor Summary | |
---|---|
ServerNodeType(NodeType type,
RemoteAdapterFactory factory)
Creates a remote adapter for the given local node type. |
Method Summary | |
---|---|
boolean |
canAddChildNode(String name)
Remote version of the NodeType.canAddChildNode(String)
method. |
boolean |
canAddChildNode(String name,
String type)
Remote version of the NodeType.canAddChildNode(String,String)
method. |
boolean |
canRemoveItem(String name)
Remote version of the NodeType.canRemoveItem(String)
method. |
boolean |
canSetProperty(String name,
Value value)
Remote version of the NodeType.canSetProperty(String,Value)
method. |
boolean |
canSetProperty(String name,
Value[] values)
Remote version of the NodeType.canSetProperty(String,Value[])
method. |
RemoteNodeDefinition[] |
getChildNodeDefs()
Remote version of the NodeType.getChildNodeDefs()
method. |
RemoteNodeDefinition[] |
getDeclaredChildNodeDefs()
Remote version of the NodeType.getDeclaredChildNodeDefs()
method. |
RemotePropertyDefinition[] |
getDeclaredPropertyDefs()
Remote version of the NodeType.getDeclaredPropertyDefs()
method. |
RemoteNodeType[] |
getDeclaredSupertypes()
Remote version of the NodeType.getDeclaredSupertypes()
method. |
String |
getName()
Remote version of the NodeType.getName() method. |
String |
getPrimaryItemName()
Remote version of the NodeType.getPrimaryItemName()
method. |
RemotePropertyDefinition[] |
getPropertyDefs()
Remote version of the NodeType.getPropertyDefs()
method. |
RemoteNodeType[] |
getSupertypes()
Remote version of the NodeType.getSupertypes()
method. |
boolean |
hasOrderableChildNodes()
Remote version of the NodeType.hasOrderableChildNodes()
method. |
boolean |
isAbstract()
Remote version of the NodeType.isAbstract() method. |
boolean |
isMixin()
Remote version of the NodeType.isMixin() method. |
boolean |
isNodeType(String type)
Remote version of the NodeType.isNodeType(String)
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 |
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 |
Constructor Detail |
---|
public ServerNodeType(NodeType type, RemoteAdapterFactory factory) throws RemoteException
type
- local node typefactory
- remote adapter factory
RemoteException
- on RMI errorsMethod Detail |
---|
public String getName() throws RemoteException
NodeType.getName()
method.
getName
in interface RemoteNodeType
RemoteException
- on RMI errorspublic boolean isMixin() throws RemoteException
NodeType.isMixin()
method.
isMixin
in interface RemoteNodeType
true
if this is a mixin type,
false
otherwise
RemoteException
- on RMI errorspublic boolean isAbstract() throws RemoteException
NodeType.isAbstract()
method.
isAbstract
in interface RemoteNodeType
true
if this is an abstract type,
false
otherwise
RemoteException
- on RMI errorspublic boolean hasOrderableChildNodes() throws RemoteException
NodeType.hasOrderableChildNodes()
method.
hasOrderableChildNodes
in interface RemoteNodeType
true
if nodes of this type has orderable
child nodes, false
otherwise
RemoteException
- on RMI errorspublic RemoteNodeType[] getSupertypes() throws RemoteException
NodeType.getSupertypes()
method.
getSupertypes
in interface RemoteNodeType
RemoteException
- on RMI errorspublic RemoteNodeType[] getDeclaredSupertypes() throws RemoteException
NodeType.getDeclaredSupertypes()
method.
getDeclaredSupertypes
in interface RemoteNodeType
RemoteException
- on RMI errorspublic boolean isNodeType(String type) throws RemoteException
NodeType.isNodeType(String)
method.
isNodeType
in interface RemoteNodeType
type
- node type name
true
if this node type is or extends the
given node type, false
otherwise
RemoteException
- on RMI errorspublic RemotePropertyDefinition[] getPropertyDefs() throws RemoteException
NodeType.getPropertyDefs()
method.
getPropertyDefs
in interface RemoteNodeType
RemoteException
- on RMI errorspublic RemotePropertyDefinition[] getDeclaredPropertyDefs() throws RemoteException
NodeType.getDeclaredPropertyDefs()
method.
getDeclaredPropertyDefs
in interface RemoteNodeType
RemoteException
- on RMI errorspublic RemoteNodeDefinition[] getChildNodeDefs() throws RemoteException
NodeType.getChildNodeDefs()
method.
getChildNodeDefs
in interface RemoteNodeType
RemoteException
- on RMI errorspublic RemoteNodeDefinition[] getDeclaredChildNodeDefs() throws RemoteException
NodeType.getDeclaredChildNodeDefs()
method.
getDeclaredChildNodeDefs
in interface RemoteNodeType
RemoteException
- on RMI errorspublic boolean canSetProperty(String name, Value value) throws RemoteException
NodeType.canSetProperty(String,Value)
method.
canSetProperty
in interface RemoteNodeType
name
- property namevalue
- property value
true
if the property can be set,
false
otherwise
RemoteException
- on RMI errorspublic boolean canSetProperty(String name, Value[] values) throws RemoteException
NodeType.canSetProperty(String,Value[])
method.
canSetProperty
in interface RemoteNodeType
name
- property namevalues
- property values
true
if the property can be set,
false
otherwise
RemoteException
- on RMI errorspublic boolean canAddChildNode(String name) throws RemoteException
NodeType.canAddChildNode(String)
method.
canAddChildNode
in interface RemoteNodeType
name
- child node name
true
if the child node can be added,
false
otherwise
RemoteException
- on RMI errorspublic boolean canAddChildNode(String name, String type) throws RemoteException
NodeType.canAddChildNode(String,String)
method.
canAddChildNode
in interface RemoteNodeType
name
- child node nametype
- child node type
true
if the child node can be added,
false
otherwise
RemoteException
- on RMI errorspublic boolean canRemoveItem(String name) throws RemoteException
NodeType.canRemoveItem(String)
method.
canRemoveItem
in interface RemoteNodeType
name
- item name
true
if the item can be removed,
false
otherwise
RemoteException
- on RMI errorspublic String getPrimaryItemName() throws RemoteException
NodeType.getPrimaryItemName()
method.
getPrimaryItemName
in interface RemoteNodeType
RemoteException
- on RMI errors
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |