[ https://issues.apache.org/jira/browse/SLING-7975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16637829#comment-16637829 ]
Konrad Windszus commented on SLING-7975: ---------------------------------------- Please be aware that {{AbstractPostOperation}} is deprecated (SLING-6722) for the reason that it binds to the JCR API. Since the resource provider SPI does not support an explicit reorder operation ([https://github.com/apache/sling-org-apache-sling-api/blob/master/src/main/java/org/apache/sling/spi/resource/provider/ResourceProvider.java)] exposing such a method must either be a NOOP or throw an exception for all ResourceProviders but the JcrResourceProvider. > Add a Java API for ordering resources > ------------------------------------- > > Key: SLING-7975 > URL: https://issues.apache.org/jira/browse/SLING-7975 > Project: Sling > Issue Type: New Feature > Components: API > Reporter: Jean-Christophe Kautzmann > Priority: Major > > Sling should provide an API (e.g. in Resource, ResourceResolver or > ResourceUtil) to order resources, similar to what the JCR API provides: > [https://docs.adobe.com/docs/en/spec/javax.jcr/javadocs/jcr-2.0/javax/jcr/Node.html#orderBefore(java.lang.String,%20java.lang.String]) > > This would help avoid having to use the JCR API. > > The implementation is already available at: > [https://github.com/apache/sling-old-svn-mirror/blob/trunk/bundles/servlets/post/src/main/java/org/apache/sling/servlets/post/AbstractPostOperation.java#L411] > > It is only a matter of exposing it as part of the Sling API. -- This message was sent by Atlassian JIRA (v7.6.3#76005)