org.apache.jackrabbit.rmi.server
Class ServerNodeDefinition

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by org.apache.jackrabbit.rmi.server.ServerObject
                  extended by org.apache.jackrabbit.rmi.server.ServerItemDefinition
                      extended by org.apache.jackrabbit.rmi.server.ServerNodeDefinition
All Implemented Interfaces:
Serializable, Remote, RemoteItemDefinition, RemoteNodeDefinition

public class ServerNodeDefinition
extends ServerItemDefinition
implements RemoteNodeDefinition

Remote adapter for the JCR NodeDefinition interface. This class makes a local node definition available as an RMI service using the RemoteNodeDefinition interface.

See Also:
NodeDefinition, RemoteNodeDefinition, Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
ServerNodeDefinition(NodeDefinition def, RemoteAdapterFactory factory)
          Creates a remote adapter for the given local node definition.
 
Method Summary
 boolean allowsSameNameSiblings()
          Remote version of the NodeDef.allowSameNameSibs() method.
 RemoteNodeType getDefaultPrimaryType()
          Remote version of the NodeDef.getDefaultPrimaryType() method.
 RemoteNodeType[] getRequiredPrimaryTypes()
          Remote version of the NodeDef.getRequiredPrimaryTypes() method.
 
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerItemDefinition
getDeclaringNodeType, getName, getOnParentVersion, isAutoCreated, isMandatory, isProtected
 
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
 
Methods inherited from interface org.apache.jackrabbit.rmi.remote.RemoteItemDefinition
getDeclaringNodeType, getName, getOnParentVersion, isAutoCreated, isMandatory, isProtected
 

Constructor Detail

ServerNodeDefinition

public ServerNodeDefinition(NodeDefinition def,
                            RemoteAdapterFactory factory)
                     throws RemoteException
Creates a remote adapter for the given local node definition.

Parameters:
def - local node definition
factory - remote adapter factory
Throws:
RemoteException - on RMI errors
Method Detail

getRequiredPrimaryTypes

public RemoteNodeType[] getRequiredPrimaryTypes()
                                         throws RemoteException
Remote version of the NodeDef.getRequiredPrimaryTypes() method.

Specified by:
getRequiredPrimaryTypes in interface RemoteNodeDefinition
Returns:
required primary node types
Throws:
RemoteException - on RMI errors

getDefaultPrimaryType

public RemoteNodeType getDefaultPrimaryType()
                                     throws RemoteException
Remote version of the NodeDef.getDefaultPrimaryType() method.

Specified by:
getDefaultPrimaryType in interface RemoteNodeDefinition
Returns:
default primary node type
Throws:
RemoteException - on RMI errors

allowsSameNameSiblings

public boolean allowsSameNameSiblings()
                               throws RemoteException
Remote version of the NodeDef.allowSameNameSibs() method.

Specified by:
allowsSameNameSiblings in interface RemoteNodeDefinition
Returns:
true if same name siblings are allowed, false otherwise
Throws:
RemoteException - on RMI errors


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.