[dna-issues] [JBoss JIRA] Commented: (DNA-376) Add request to change the order of a child node (or nodes) relative to the other children

Randall Hauch (JIRA) jira-events at lists.jboss.org
Fri May 29 09:47:58 EDT 2009


    [ https://jira.jboss.org/jira/browse/DNA-376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12469920#action_12469920 ] 

Randall Hauch commented on DNA-376:
-----------------------------------

Great idea.

> Add request to change the order of a child node (or nodes) relative to the other children
> -----------------------------------------------------------------------------------------
>
>                 Key: DNA-376
>                 URL: https://jira.jboss.org/jira/browse/DNA-376
>             Project: DNA
>          Issue Type: Feature Request
>          Components: API, Graph
>    Affects Versions: 0.3
>            Reporter: Randall Hauch
>            Assignee: Randall Hauch
>            Priority: Blocker
>             Fix For: 0.6
>
>         Attachments: DNA-376.patch
>
>
> The current DNA Graph model does support ordered children, and while rename can be used to change the order of same-name-siblings, there currently is no way to change the order of the child nodes.  This is required to fully implement the JCR API.
> JCR handles this functionality by provided a method that essentially changes the position of a single child node.  The "Node.orderBefore(String childNameToBeMoved, String nameOfChildAtPosition)" can be used by calling on the parent node and supplying the name (with SNS index if needed) of the child to be moved and the name of the child before which the other child is to be moved.
> This same model can be used for the graph request.  It also would allow adding in the future another optional request that would contain multiple reorders, and that could be implemented in RequestProcessor to break into multiple ReorderChildRequest instances.
> The existing (writable) connectors will all be affected, since this will be a new mandatory request.

-- 
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