You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by GitBox <gi...@apache.org> on 2021/11/05 22:14:03 UTC

[GitHub] [sling-org-apache-sling-servlets-post] joerghoh commented on a change in pull request #16: SLING-7975 use resource reorder API

joerghoh commented on a change in pull request #16:
URL: https://github.com/apache/sling-org-apache-sling-servlets-post/pull/16#discussion_r744003565



##########
File path: src/main/java/org/apache/sling/servlets/post/impl/operations/AbstractPostOperation.java
##########
@@ -313,6 +311,102 @@ protected String getResourcePath(SlingHttpServletRequest request) {
         return request.getResource().getPath();
     }
 
+
+    /**
+     * Orders the given node according to the specified command. The following
+     * syntax is supported: &lt;xmp&gt; | first | before all child nodes | before A |
+     * before child node A | after A | after child node A | last | after all
+     * nodes | N | at a specific position, N being an integer &lt;/xmp&gt;
+     *
+     * @param request The http request
+     * @param resource the resource to order
+     * @param changes the list of modifications
+     * @throws PersistenceException in case the operation is not successful 
+     */
+    protected void orderNode(final SlingHttpServletRequest request,

Review comment:
       I think that ```orderResource``` is more appropriate now.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@sling.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org