|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.ocm.nodemanagement.impl.jeceira.NodeTypeManagerImpl
public class NodeTypeManagerImpl
This is the NodeTypeManager implementation for Jeceira.
| Constructor Summary | |
|---|---|
NodeTypeManagerImpl()
Creates a new instance of NodeTypeManagerImpl. |
|
| Method Summary | |
|---|---|
void |
createNamespace(javax.jcr.Session session,
java.lang.String namespace,
java.lang.String namespaceUri)
Creates a new namespace in the repository. |
void |
createNodeTypeFromClass(javax.jcr.Session session,
java.lang.Class clazz,
java.lang.String jcrNodeType,
boolean reflectSuperClasses)
This method creates a JCR node type from a given Java Bean class by using reflection. |
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 |
createNodeTypesFromConfiguration(javax.jcr.Session session,
java.io.InputStream jcrRepositoryConfigurationFile)
This method creates JCR node types from a JCR vendor specific configuration file. |
void |
createNodeTypesFromMappingFiles(javax.jcr.Session session,
java.io.InputStream[] mappingXmlFiles)
This method creates JCR node types based on jcr-mapping xml files. |
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. |
void |
createSingleNodeTypeFromMappingFile(javax.jcr.Session session,
java.io.InputStream mappingXmlFile,
java.lang.String jcrNodeType)
This method creates a single JCR node type identified by its jcrNodeType name defined in a jcr-mapping xml file. |
java.util.List |
getAllPrimaryNodeTypeNames(javax.jcr.Session session)
Returns a list of all JCR node types. |
java.util.List |
getPrimaryNodeTypeNames(javax.jcr.Session session,
java.lang.String namespace)
Returns the names of all node types in the repository identified by a given namespace. |
void |
removeNodeTypes(javax.jcr.Session session,
java.io.InputStream[] mappingXmlFiles)
|
void |
removeNodeTypesFromConfiguration(javax.jcr.Session session,
java.io.InputStream jcrRepositoryConfigurationFile)
This method removes JCR node types from a JCR vendor specific configuration file |
void |
removeNodeTypesFromMappingFile(javax.jcr.Session session,
java.io.InputStream[] mappingXmlFiles)
This method removes all JCR node types that are defined in one to many jcr-mapping XML files. |
void |
removeSingleNodeType(javax.jcr.Session session,
java.lang.String jcrNodeType)
This method removes a single JCR node type identified by its jcrNodeType name. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NodeTypeManagerImpl()
| Method Detail |
|---|
public void createNamespace(javax.jcr.Session session,
java.lang.String namespace,
java.lang.String namespaceUri)
throws NamespaceCreationException
NodeTypeManager
createNamespace in interface NodeTypeManagernamespace - NamespacenamespaceUri - Full namespace URI
NamespaceCreationExceptionNodeTypeManager.createNamespace(javax.jcr.Session, java.lang.String, java.lang.String)
public void createNodeTypes(javax.jcr.Session session,
MappingDescriptor mappingDescriptor)
throws NodeTypeCreationException
NodeTypeManager
createNodeTypes in interface NodeTypeManagersession - Repository sessionmappingDescriptor - Mapping descriptor object created by
jcr-mapping
NodeTypeCreationException - NodeTypeCreationException
public void createNodeTypes(javax.jcr.Session session,
ClassDescriptor[] classDescriptors)
throws NodeTypeCreationException
NodeTypeManager
createNodeTypes in interface NodeTypeManagersession - Repository sessionclassDescriptors - Array of ClassDescriptor objects created by
jcr-mapping
NodeTypeCreationException - NodeTypeCreationException
public void createNodeTypesFromMappingFiles(javax.jcr.Session session,
java.io.InputStream[] mappingXmlFiles)
throws NodeTypeCreationException
NodeTypeManager
createNodeTypesFromMappingFiles in interface NodeTypeManagersession - Repository sessionmappingXmlFiles - InputStreams to jcr-mapping xml files
NodeTypeCreationException - NodeTypeCreationException
public void createSingleNodeType(javax.jcr.Session session,
ClassDescriptor classDescriptor)
throws NodeTypeCreationException
NodeTypeManager
createSingleNodeType in interface NodeTypeManagersession - Repository sessionclassDescriptor - ClassDescriptor object created by jcr-mapping
NodeTypeCreationException - NodeTypeCreationException
public void createSingleNodeTypeFromMappingFile(javax.jcr.Session session,
java.io.InputStream mappingXmlFile,
java.lang.String jcrNodeType)
throws NodeTypeCreationException
NodeTypeManager
createSingleNodeTypeFromMappingFile in interface NodeTypeManagersession - Repository sessionmappingXmlFile - InputStream to a jcr-mapping xml filejcrNodeType - Name of the class that needs to be created identified
by its jcrNodeType name
NodeTypeCreationException - NodeTypeCreationException
public void createNodeTypeFromClass(javax.jcr.Session session,
java.lang.Class clazz,
java.lang.String jcrNodeType,
boolean reflectSuperClasses)
throws NodeTypeCreationException
NodeTypeManager
createNodeTypeFromClass in interface NodeTypeManagersession - Repository sessionclazz - Java classjcrNodeType - Name of JCR node type (including namespace)reflectSuperClasses - If true, all base classes are also reflected
NodeTypeCreationException - NodeTypeCreationException
public void createNodeTypesFromConfiguration(javax.jcr.Session session,
java.io.InputStream jcrRepositoryConfigurationFile)
throws OperationNotSupportedException,
NodeTypeCreationException
NodeTypeManager
createNodeTypesFromConfiguration in interface NodeTypeManagersession - Repository session
OperationNotSupportedException - OperationNotSupportedException
NodeTypeCreationException - NodeTypeCreationExceptionNodeTypeManager.createNodeTypesFromConfiguration(javax.jcr.Session, java.io.InputStream)
public void removeNodeTypes(javax.jcr.Session session,
java.io.InputStream[] mappingXmlFiles)
throws NodeTypeRemovalException
NodeTypeRemovalException
public void removeSingleNodeType(javax.jcr.Session session,
java.lang.String jcrNodeType)
throws NodeTypeRemovalException
NodeTypeManager
removeSingleNodeType in interface NodeTypeManagersession - Repository session
NodeTypeRemovalException - NodeTypeRemovalException
public java.util.List getPrimaryNodeTypeNames(javax.jcr.Session session,
java.lang.String namespace)
NodeTypeManager
getPrimaryNodeTypeNames in interface NodeTypeManagernamespace - Name of nodetypes to return
public java.util.List getAllPrimaryNodeTypeNames(javax.jcr.Session session)
NodeTypeManager
getAllPrimaryNodeTypeNames in interface NodeTypeManager
public void removeNodeTypesFromConfiguration(javax.jcr.Session session,
java.io.InputStream jcrRepositoryConfigurationFile)
throws NodeTypeRemovalException
NodeTypeManager
removeNodeTypesFromConfiguration in interface NodeTypeManagersession - Repository sessionjcrRepositoryConfigurationFile - the file that contains the node type definition
NodeTypeRemovalException
public void removeNodeTypesFromMappingFile(javax.jcr.Session session,
java.io.InputStream[] mappingXmlFiles)
throws NodeTypeRemovalException
NodeTypeManager
removeNodeTypesFromMappingFile in interface NodeTypeManagersession - Repository sessionmappingXmlFiles - InputStreams to jcr-mapping xml file
NodeTypeRemovalException - NodeTypeRemovalException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||