Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-7975

Add a Java API for ordering resources

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              kwin Konrad Windszus
              jck Jean-Christophe Kautzmann
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 15.5h
                  15.5h