org.apache.jackrabbit.rmi.client
Class ClientNodeTypeManager
java.lang.Object
org.apache.jackrabbit.rmi.client.ClientObject
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClientNodeTypeManager
public ClientNodeTypeManager(RemoteNodeTypeManager remote,
LocalAdapterFactory factory)
- Creates a local adapter for the given remote node type manager.
- Parameters:
remote
- remote node type managerfactory
- local adapter factory
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.