|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NodeTypeManager
This interface defines the API for JCR Node Type Management implementations. It does not contain any JCR vendor specific methods. Classes that implement this interface are used to create custom node types in a JCR repository. Each JCR repository has its own way of doing this as it is not defined by the JSR-170 spec. The default implementation of jcr-nodemanagement is Jackrabbit. In order to create JCR custom node types you need to provide an established session to a JCR repository. The user that is logged into has to have the necessary permissions to create nodes (user has to have "superuser" rights). The JCR Node Type Management tools are an extension to the jcr-mapping tools. NodeTypeManager implementations depend on the jcr-mapping xml file and the object model defined by jcr-mapping.
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. |
Method Detail |
---|
void createNamespace(javax.jcr.Session session, String namespace, String namespaceUri) throws NamespaceCreationException
namespace
- NamespacenamespaceUri
- Full namespace URI
NamespaceCreationException
void createNodeTypes(javax.jcr.Session session, MappingDescriptor mappingDescriptor) throws NodeTypeCreationException
session
- Repository sessionmappingDescriptor
- Mapping descriptor object created by
jcr-mapping
NodeTypeCreationException
- NodeTypeCreationExceptionvoid createNodeTypes(javax.jcr.Session session, ClassDescriptor[] classDescriptors) throws NodeTypeCreationException
session
- Repository sessionclassDescriptors
- Array of ClassDescriptor objects created by
jcr-mapping
NodeTypeCreationException
- NodeTypeCreationExceptionvoid createSingleNodeType(javax.jcr.Session session, ClassDescriptor classDescriptor) throws NodeTypeCreationException
session
- Repository sessionclassDescriptor
- ClassDescriptor object created by jcr-mapping
NodeTypeCreationException
- NodeTypeCreationException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |