org.apache.jackrabbit.ocm.nodemanagement.impl
Class NodeTypeManagerImpl

java.lang.Object
  extended by org.apache.jackrabbit.ocm.nodemanagement.impl.NodeTypeManagerImpl
All Implemented Interfaces:
NodeTypeManager

public class NodeTypeManagerImpl
extends Object
implements NodeTypeManager


Constructor Summary
NodeTypeManagerImpl()
           
 
Method Summary
 void createNamespace(javax.jcr.Session session, String namespace, String namespaceUri)
          Creates a new namespace in the repository.
 void createNodeTypes(javax.jcr.Session session, ClassDescriptor[] classDescriptors)
          This method creates JCR node types based on ClassDescriptor objects which are created by a jcr-mapping Mapper implementation.
 void createNodeTypes(javax.jcr.Session session, MappingDescriptor mappingDescriptor)
          This method creates JCR node types based on the MappingDescriptor object which is created by a jcr-mapping Mapper implementation.
 void createSingleNodeType(javax.jcr.Session session, ClassDescriptor classDescriptor)
          This method creates a single JCR node type identified by its ClassDescriptor read from the jcr mapping file.
 String[] getJcrSuperTypes(String superTypes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeTypeManagerImpl

public NodeTypeManagerImpl()
Method Detail

createNamespace

public void createNamespace(javax.jcr.Session session,
                            String namespace,
                            String namespaceUri)
                     throws NamespaceCreationException
Description copied from interface: NodeTypeManager
Creates a new namespace in the repository.

Specified by:
createNamespace in interface NodeTypeManager
namespace - Namespace
namespaceUri - Full namespace URI
Throws:
NamespaceCreationException

createNodeTypes

public void createNodeTypes(javax.jcr.Session session,
                            MappingDescriptor mappingDescriptor)
                     throws NodeTypeCreationException
Description copied from interface: NodeTypeManager
This method creates JCR node types based on the MappingDescriptor object which is created by a jcr-mapping Mapper implementation. A Mapper reads one to many jcr mapping XML File.

Specified by:
createNodeTypes in interface NodeTypeManager
Parameters:
session - Repository session
mappingDescriptor - Mapping descriptor object created by jcr-mapping
Throws:
NodeTypeCreationException - NodeTypeCreationException

createNodeTypes

public void createNodeTypes(javax.jcr.Session session,
                            ClassDescriptor[] classDescriptors)
                     throws NodeTypeCreationException
Description copied from interface: NodeTypeManager
This method creates JCR node types based on ClassDescriptor objects which are created by a jcr-mapping Mapper implementation. A Mapper reads one to many jcr mapping XML File.

Specified by:
createNodeTypes in interface NodeTypeManager
Parameters:
session - Repository session
classDescriptors - Array of ClassDescriptor objects created by jcr-mapping
Throws:
NodeTypeCreationException - NodeTypeCreationException

createSingleNodeType

public void createSingleNodeType(javax.jcr.Session session,
                                 ClassDescriptor classDescriptor)
                          throws NodeTypeCreationException
Description copied from interface: NodeTypeManager
This method creates a single JCR node type identified by its ClassDescriptor read from the jcr mapping file.

Specified by:
createSingleNodeType in interface NodeTypeManager
Parameters:
session - Repository session
classDescriptor - ClassDescriptor object created by jcr-mapping
Throws:
NodeTypeCreationException - NodeTypeCreationException

getJcrSuperTypes

public String[] getJcrSuperTypes(String superTypes)


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