You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Marcel Reutegger (JIRA)" <ji...@apache.org> on 2012/10/04 11:11:07 UTC

[jira] [Commented] (OAK-169) Support orderable nodes

    [ https://issues.apache.org/jira/browse/OAK-169?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13469235#comment-13469235 ] 

Marcel Reutegger commented on OAK-169:
--------------------------------------

>From an offline discussion with Jukka:

Access control can only be implemented properly in oak-core. Exposing the childOrder through the Oak API leaks information that may not be visible to a ContentSession.

Our consensus was to push down the current functionality to oak-core. The childOrder becomes a hidden property and will not be visible through the Oak nor the JCR API. To make that work we have to introduce something like orderBefore() to the Oak API. Calling this method will enforce orderability of child nodes (i.e. the hidden property is created and populated). From now on oak-core will maintain that property whenever a node is added/removed/re-ordered.

We may still need a validator or editor to make sure orderBefore() was called when the node type of the parent node defines child nodes as orderable.
                
> Support orderable nodes
> -----------------------
>
>                 Key: OAK-169
>                 URL: https://issues.apache.org/jira/browse/OAK-169
>             Project: Jackrabbit Oak
>          Issue Type: New Feature
>          Components: jcr
>            Reporter: Jukka Zitting
>
> There are JCR clients that depend on the ability to explicitly specify the order of child nodes. That functionality is not included in the MicroKernel tree model, so we need to implement it either in oak-core or oak-jcr using something like an extra (hidden) {{oak:childOrder}} property that records the specified ordering of child nodes. A multi-valued string property is probably good enough for this.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira