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

Randall Hauch (JIRA) jira-events at lists.jboss.org
Fri Mar 6 12:05:23 EST 2009


     [ https://jira.jboss.org/jira/browse/DNA-294?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Randall Hauch resolved DNA-294.
-------------------------------

    Resolution: Done
      Assignee: Randall Hauch


Marking as resolved, since we now have the node type(s).

> 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
>            Assignee: Randall Hauch
>             Fix For: 0.4
>
>         Attachments: DNA-294.patch
>
>
> 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