org.apache.jackrabbit.rmi.client
Class ClientNodeTypeManager

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

public class ClientNodeTypeManager
extends ClientObject
implements NodeTypeManager

Local adapter for the JCR-RMI RemoteNodeTypeManager interface. This class makes a remote node type manager locally available using the JCR NodeTypeManager interface.

See Also:
NodeTypeManager, RemoteNodeTypeManager

Constructor Summary
ClientNodeTypeManager(RemoteNodeTypeManager remote, LocalAdapterFactory factory)
          Creates a local adapter for the given remote node type manager.
 
Method Summary
 NodeDefinitionTemplate createNodeDefinitionTemplate()
           
 NodeTypeTemplate createNodeTypeTemplate()
           
 NodeTypeTemplate createNodeTypeTemplate(NodeTypeDefinition ntd)
           
 PropertyDefinitionTemplate createPropertyDefinitionTemplate()
           
 NodeTypeIterator getAllNodeTypes()
          
 NodeTypeIterator getMixinNodeTypes()
          
 NodeType getNodeType(String name)
          
 NodeTypeIterator getPrimaryNodeTypes()
          
 boolean hasNodeType(String name)
           
 NodeType registerNodeType(NodeTypeDefinition ntd, boolean allowUpdate)
           
 NodeTypeIterator registerNodeTypes(NodeTypeDefinition[] ntds, boolean allowUpdate)
           
 void unregisterNodeType(String name)
           
 void unregisterNodeTypes(String[] names)
           
 
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
 

Constructor Detail

ClientNodeTypeManager

public ClientNodeTypeManager(RemoteNodeTypeManager remote,
                             LocalAdapterFactory factory)
Creates a local adapter for the given remote node type manager.

Parameters:
remote - remote node type manager
factory - local adapter factory
Method Detail

getNodeType

public NodeType getNodeType(String name)
                     throws RepositoryException

Specified by:
getNodeType in interface NodeTypeManager
Throws:
RepositoryException

getAllNodeTypes

public NodeTypeIterator getAllNodeTypes()
                                 throws RepositoryException

Specified by:
getAllNodeTypes in interface NodeTypeManager
Throws:
RepositoryException

getPrimaryNodeTypes

public NodeTypeIterator getPrimaryNodeTypes()
                                     throws RepositoryException

Specified by:
getPrimaryNodeTypes in interface NodeTypeManager
Throws:
RepositoryException

getMixinNodeTypes

public NodeTypeIterator getMixinNodeTypes()
                                   throws RepositoryException

Specified by:
getMixinNodeTypes in interface NodeTypeManager
Throws:
RepositoryException

createNodeDefinitionTemplate

public NodeDefinitionTemplate createNodeDefinitionTemplate()
                                                    throws RepositoryException
Specified by:
createNodeDefinitionTemplate in interface NodeTypeManager
Throws:
RepositoryException

createNodeTypeTemplate

public NodeTypeTemplate createNodeTypeTemplate()
                                        throws RepositoryException
Specified by:
createNodeTypeTemplate in interface NodeTypeManager
Throws:
RepositoryException

createNodeTypeTemplate

public NodeTypeTemplate createNodeTypeTemplate(NodeTypeDefinition ntd)
                                        throws RepositoryException
Specified by:
createNodeTypeTemplate in interface NodeTypeManager
Throws:
RepositoryException

createPropertyDefinitionTemplate

public PropertyDefinitionTemplate createPropertyDefinitionTemplate()
                                                            throws RepositoryException
Specified by:
createPropertyDefinitionTemplate in interface NodeTypeManager
Throws:
RepositoryException

hasNodeType

public boolean hasNodeType(String name)
                    throws RepositoryException
Specified by:
hasNodeType in interface NodeTypeManager
Throws:
RepositoryException

registerNodeType

public NodeType registerNodeType(NodeTypeDefinition ntd,
                                 boolean allowUpdate)
                          throws RepositoryException
Specified by:
registerNodeType in interface NodeTypeManager
Throws:
RepositoryException

registerNodeTypes

public NodeTypeIterator registerNodeTypes(NodeTypeDefinition[] ntds,
                                          boolean allowUpdate)
                                   throws RepositoryException
Specified by:
registerNodeTypes in interface NodeTypeManager
Throws:
RepositoryException

unregisterNodeType

public void unregisterNodeType(String name)
                        throws RepositoryException
Specified by:
unregisterNodeType in interface NodeTypeManager
Throws:
RepositoryException

unregisterNodeTypes

public void unregisterNodeTypes(String[] names)
                         throws RepositoryException
Specified by:
unregisterNodeTypes in interface NodeTypeManager
Throws:
RepositoryException


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