org.apache.jackrabbit.rmi.jackrabbit
Class ClientJackrabbitNodeTypeManager

java.lang.Object
  extended by org.apache.jackrabbit.rmi.client.ClientObject
      extended by org.apache.jackrabbit.rmi.client.ClientNodeTypeManager
          extended by org.apache.jackrabbit.rmi.jackrabbit.ClientJackrabbitNodeTypeManager
All Implemented Interfaces:
NodeTypeManager, JackrabbitNodeTypeManager

public class ClientJackrabbitNodeTypeManager
extends ClientNodeTypeManager
implements JackrabbitNodeTypeManager


Field Summary
 
Fields inherited from interface org.apache.jackrabbit.api.JackrabbitNodeTypeManager
TEXT_X_JCR_CND, TEXT_XML
 
Constructor Summary
ClientJackrabbitNodeTypeManager(RemoteJackrabbitNodeTypeManager remote, LocalAdapterFactory factory)
           
 
Method Summary
 boolean hasNodeType(String name)
          Checks if a node type with the given name is registered.
 NodeType[] registerNodeTypes(InputSource in)
          Registers node types from the given node type XML stream.
 NodeType[] registerNodeTypes(InputStream in, String contentType)
          Registers node types from the given input stream of the given type.
 
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientNodeTypeManager
getAllNodeTypes, getMixinNodeTypes, getNodeType, getPrimaryNodeTypes
 
Methods inherited from class org.apache.jackrabbit.rmi.client.ClientObject
getFactory, getItem, getNode, getNodeTypeArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jcr.nodetype.NodeTypeManager
getAllNodeTypes, getMixinNodeTypes, getNodeType, getPrimaryNodeTypes
 

Constructor Detail

ClientJackrabbitNodeTypeManager

public ClientJackrabbitNodeTypeManager(RemoteJackrabbitNodeTypeManager remote,
                                       LocalAdapterFactory factory)
Method Detail

hasNodeType

public boolean hasNodeType(String name)
                    throws RepositoryException
Description copied from interface: JackrabbitNodeTypeManager
Checks if a node type with the given name is registered.

Specified by:
hasNodeType in interface JackrabbitNodeTypeManager
Parameters:
name - node type name
Returns:
true if the named node type is registered false otherwise
Throws:
RepositoryException - if an error occurs

registerNodeTypes

public NodeType[] registerNodeTypes(InputSource in)
                             throws SAXException,
                                    RepositoryException
Description copied from interface: JackrabbitNodeTypeManager
Registers node types from the given node type XML stream.

Specified by:
registerNodeTypes in interface JackrabbitNodeTypeManager
Parameters:
in - node type XML stream
Returns:
registered node types
Throws:
SAXException - if the XML stream could not be read or parsed
RepositoryException - if the node types are invalid or another repository error occurs

registerNodeTypes

public NodeType[] registerNodeTypes(InputStream in,
                                    String contentType)
                             throws IOException,
                                    RepositoryException
Description copied from interface: JackrabbitNodeTypeManager
Registers node types from the given input stream of the given type.

Specified by:
registerNodeTypes in interface JackrabbitNodeTypeManager
Parameters:
in - node type stream
contentType - type of the input stream
Returns:
registered node types
Throws:
IOException - if the input stream could not be read or parsed
RepositoryException - if the node types are invalid or another repository error occurs


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