You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Chaitanya Atreya (Created) (JIRA)" <ji...@apache.org> on 2012/02/10 02:07:59 UTC

[jira] [Created] (SLING-2415) Ability to delete child nodes, without deleting the parent node in SlingPostServlet

Ability to delete child nodes, without deleting the parent node in SlingPostServlet
-----------------------------------------------------------------------------------

                 Key: SLING-2415
                 URL: https://issues.apache.org/jira/browse/SLING-2415
             Project: Sling
          Issue Type: New Feature
          Components: Servlets
            Reporter: Chaitanya Atreya


Provide a way to delete all the child nodes of a given node in the SlingPostServlet, without deleting the parent node itself.

There are many situations where one might want to delete only the child nodes, while keeping the parent node intact. 

One way to do this now is to use the :applyTo request parameter for each child node. However, this requires first fetching all the child nodes, which can be avoided with this feature.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (SLING-2415) Ability to delete child nodes, without deleting the parent node in SlingPostServlet

Posted by "Eric Norman (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-2415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13231706#comment-13231706 ] 

Eric Norman commented on SLING-2415:
------------------------------------

A wildcard as the last segment of the applyTo value makes sense to me.  I'll implement and add a few tests.
                
> Ability to delete child nodes, without deleting the parent node in SlingPostServlet
> -----------------------------------------------------------------------------------
>
>                 Key: SLING-2415
>                 URL: https://issues.apache.org/jira/browse/SLING-2415
>             Project: Sling
>          Issue Type: New Feature
>          Components: Servlets
>            Reporter: Chaitanya Atreya
>            Assignee: Eric Norman
>
> Provide a way to delete all the child nodes of a given node in the SlingPostServlet, without deleting the parent node itself.
> There are many situations where one might want to delete only the child nodes, while keeping the parent node intact. 
> One way to do this now is to use the :applyTo request parameter for each child node. However, this requires first fetching all the child nodes, which can be avoided with this feature.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (SLING-2415) Ability to delete child nodes, without deleting the parent node in SlingPostServlet

Posted by "Eric Norman (Assigned) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-2415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Norman reassigned SLING-2415:
----------------------------------

    Assignee: Eric Norman
    
> Ability to delete child nodes, without deleting the parent node in SlingPostServlet
> -----------------------------------------------------------------------------------
>
>                 Key: SLING-2415
>                 URL: https://issues.apache.org/jira/browse/SLING-2415
>             Project: Sling
>          Issue Type: New Feature
>          Components: Servlets
>            Reporter: Chaitanya Atreya
>            Assignee: Eric Norman
>
> Provide a way to delete all the child nodes of a given node in the SlingPostServlet, without deleting the parent node itself.
> There are many situations where one might want to delete only the child nodes, while keeping the parent node intact. 
> One way to do this now is to use the :applyTo request parameter for each child node. However, this requires first fetching all the child nodes, which can be avoided with this feature.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (SLING-2415) Ability to delete child nodes, without deleting the parent node in SlingPostServlet

Posted by "Justin Edelson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-2415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13205138#comment-13205138 ] 

Justin Edelson commented on SLING-2415:
---------------------------------------

Is this really a common requirement?
                
> Ability to delete child nodes, without deleting the parent node in SlingPostServlet
> -----------------------------------------------------------------------------------
>
>                 Key: SLING-2415
>                 URL: https://issues.apache.org/jira/browse/SLING-2415
>             Project: Sling
>          Issue Type: New Feature
>          Components: Servlets
>            Reporter: Chaitanya Atreya
>
> Provide a way to delete all the child nodes of a given node in the SlingPostServlet, without deleting the parent node itself.
> There are many situations where one might want to delete only the child nodes, while keeping the parent node intact. 
> One way to do this now is to use the :applyTo request parameter for each child node. However, this requires first fetching all the child nodes, which can be avoided with this feature.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (SLING-2415) Ability to delete child nodes, without deleting the parent node in SlingPostServlet

Posted by "Justin Edelson (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-2415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13205945#comment-13205945 ] 

Justin Edelson commented on SLING-2415:
---------------------------------------

I was just asking if this comes up a lot.

How about :applyTo=* = delete all children?
                
> Ability to delete child nodes, without deleting the parent node in SlingPostServlet
> -----------------------------------------------------------------------------------
>
>                 Key: SLING-2415
>                 URL: https://issues.apache.org/jira/browse/SLING-2415
>             Project: Sling
>          Issue Type: New Feature
>          Components: Servlets
>            Reporter: Chaitanya Atreya
>
> Provide a way to delete all the child nodes of a given node in the SlingPostServlet, without deleting the parent node itself.
> There are many situations where one might want to delete only the child nodes, while keeping the parent node intact. 
> One way to do this now is to use the :applyTo request parameter for each child node. However, this requires first fetching all the child nodes, which can be avoided with this feature.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (SLING-2415) Ability to delete child nodes, without deleting the parent node in SlingPostServlet

Posted by "Eric Norman (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-2415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Eric Norman resolved SLING-2415.
--------------------------------

       Resolution: Fixed
    Fix Version/s: Servlets Post 2.1.2

Added ability to match all child nodes for the :applyTo parameter by using '*' as the last segment of the value.  This applies to the delete, move and copy operations.

Please verify this does what you need.
                
> Ability to delete child nodes, without deleting the parent node in SlingPostServlet
> -----------------------------------------------------------------------------------
>
>                 Key: SLING-2415
>                 URL: https://issues.apache.org/jira/browse/SLING-2415
>             Project: Sling
>          Issue Type: New Feature
>          Components: Servlets
>            Reporter: Chaitanya Atreya
>            Assignee: Eric Norman
>             Fix For: Servlets Post 2.1.2
>
>
> Provide a way to delete all the child nodes of a given node in the SlingPostServlet, without deleting the parent node itself.
> There are many situations where one might want to delete only the child nodes, while keeping the parent node intact. 
> One way to do this now is to use the :applyTo request parameter for each child node. However, this requires first fetching all the child nodes, which can be avoided with this feature.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (SLING-2415) Ability to delete child nodes, without deleting the parent node in SlingPostServlet

Posted by "Chaitanya Atreya (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-2415?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13205143#comment-13205143 ] 

Chaitanya Atreya commented on SLING-2415:
-----------------------------------------

In general, a RESTful parent node could have a sling:resourceType or other useful metadata that one wouldn't want to lose. However, in order to delete all its children, the only way is to delete the parent node as well (thus losing the sling:resourceType and a possible rendering of this parent page), which will then have to be recreated to bring the system back to normalcy. There surely must be a better way than this.

                
> Ability to delete child nodes, without deleting the parent node in SlingPostServlet
> -----------------------------------------------------------------------------------
>
>                 Key: SLING-2415
>                 URL: https://issues.apache.org/jira/browse/SLING-2415
>             Project: Sling
>          Issue Type: New Feature
>          Components: Servlets
>            Reporter: Chaitanya Atreya
>
> Provide a way to delete all the child nodes of a given node in the SlingPostServlet, without deleting the parent node itself.
> There are many situations where one might want to delete only the child nodes, while keeping the parent node intact. 
> One way to do this now is to use the :applyTo request parameter for each child node. However, this requires first fetching all the child nodes, which can be avoided with this feature.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira