org.apache.jackrabbit.rmi.jackrabbit
Class ServerJackrabbitNodeTypeManager

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.ServerNodeTypeManager
                      extended by org.apache.jackrabbit.rmi.jackrabbit.ServerJackrabbitNodeTypeManager
All Implemented Interfaces:
Serializable, Remote, RemoteJackrabbitNodeTypeManager, RemoteNodeTypeManager

public class ServerJackrabbitNodeTypeManager
extends ServerNodeTypeManager
implements RemoteJackrabbitNodeTypeManager

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
ServerJackrabbitNodeTypeManager(JackrabbitNodeTypeManager manager, RemoteAdapterFactory factory)
           
 
Method Summary
 boolean hasNodeType(String name)
          Checks if the named node type exists.
 RemoteNodeType[] registerNodeTypes(byte[] content, String type)
          Registers node types defined in the given node type definitions.
 
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerNodeTypeManager
getAllNodeTypes, getMixinNodeTypes, getNodeType, getPrimaryNodeTypes
 
Methods inherited from class org.apache.jackrabbit.rmi.server.ServerObject
getFactory, getRemoteItem, getRemoteNode, getRemoteNodeTypeArray, getRepositoryException
 
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.RemoteNodeTypeManager
getAllNodeTypes, getMixinNodeTypes, getNodeType, getPrimaryNodeTypes
 

Constructor Detail

ServerJackrabbitNodeTypeManager

public ServerJackrabbitNodeTypeManager(JackrabbitNodeTypeManager manager,
                                       RemoteAdapterFactory factory)
                                throws RemoteException
Throws:
RemoteException
Method Detail

hasNodeType

public boolean hasNodeType(String name)
                    throws RepositoryException
Description copied from interface: RemoteJackrabbitNodeTypeManager
Checks if the named node type exists.

Specified by:
hasNodeType in interface RemoteJackrabbitNodeTypeManager
Parameters:
name - node type name
Returns:
true if the named node type exists, false otherwise
Throws:
RepositoryException - if a repository error occurs

registerNodeTypes

public RemoteNodeType[] registerNodeTypes(byte[] content,
                                          String type)
                                   throws RepositoryException
Description copied from interface: RemoteJackrabbitNodeTypeManager
Registers node types defined in the given node type definitions.

Specified by:
registerNodeTypes in interface RemoteJackrabbitNodeTypeManager
Parameters:
content - node type definitions
type - type of the node type definitions
Returns:
registered node types
Throws:
RepositoryException - if a repository error occurs


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