[dna-issues] [JBoss JIRA] Created: (DNA-294) Define a custom node type for the root node in a repository

Randall Hauch (JIRA) jira-events at lists.jboss.org
Thu Mar 5 16:00:23 EST 2009


Define a custom node type for the root node in a repository
-----------------------------------------------------------

                 Key: DNA-294
                 URL: https://jira.jboss.org/jira/browse/DNA-294
             Project: DNA
          Issue Type: Task
          Components: JCR
    Affects Versions: 0.3
            Reporter: Randall Hauch
             Fix For: 0.4


The JCR Specification says (at least in Section 6.7.10):

    "Which NodeType is returned when this method is called on the root node of a workspace is up to the implementation, 
    though the returned type must, of course, be consistent with the child nodes and properties of the root node."

Although some of the examples (e.g, Section 6.6.1) show the primary type for the root node being "nt:unstructured".  While this is probably a good simple example, defining a DNA-specific node type would allow us to say the following:
1) the root node is autocreated
2) the root node is not autoprotected
3) the root node can have any properties
4) the root node is mix:referenceable (which says the "jcr:uuid" property is mandatory, autocreated and protected)
5) the root node allows any children, including allowing same-name-siblings
6) the root node always has a "jcr:system" child node that does not allow same-name-siblings, and that has its own type (again the spec says the type is implementation specific) that also is auto-created and protected

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the dna-issues mailing list