[
https://issues.apache.org/jira/browse/SLING-7975?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17434717#comment-17434717
]
Konrad Windszus edited comment on SLING-7975 at 10/27/21, 2:57 PM:
-------------------------------------------------------------------
I proposed some API for that in
[https://github.com/apache/sling-org-apache-sling-api/pull/36]
In addition some implementation changes in
# [https://github.com/apache/sling-org-apache-sling-resourceresolver/pull/51]
(necessary changes for the resource resolver implementation)
# [https://github.com/apache/sling-org-apache-sling-jcr-resource/pull/18]
(optional change to implement reordering of resources provided by the JCR
provider)
#
[https://github.com/apache/sling-org-apache-sling-resourceaccesssecurity/pulls/1]
(optional change to be able to implement a ResourceAccessGate with dedicated
checks for resource ordering
#
[https://github.com/apache/sling-org-apache-sling-jcr-resourcesecurity/pull/1]
(optional change to implement the check for reordering resources on the
ResourceAccessGate implementation)
Still outstanding:
# Documentation changes in
[https://sling.apache.org/documentation/the-sling-engine/sling-api-crud-support.html]
# Documentation changes in
https://sling.apache.org/documentation/bundles/resource-access-security.html
was (Author: kwin):
I proposed some API for that in
[https://github.com/apache/sling-org-apache-sling-api/pull/36]
In addition some implementation changes in
# [https://github.com/apache/sling-org-apache-sling-resourceresolver/pull/51]
(necessary changes for the resource resolver implementation)
# [https://github.com/apache/sling-org-apache-sling-jcr-resource/pull/18]
(optional change to implement reordering of resources provided by the JCR
provider)
#
[https://github.com/apache/sling-org-apache-sling-resourceaccesssecurity/pulls]
(optional changes to be able to implement a ResourceAccessGate with dedicated
checks for resource ordering
#
[https://github.com/apache/sling-org-apache-sling-resourceaccesssecurity/pull/1]
(optional change to implement the check for reordering resources on the
ResourceAccessGate implementation)
Still outstanding:
# Documentation changes in
[https://sling.apache.org/documentation/the-sling-engine/sling-api-crud-support.html]
# Documentation changes in
https://sling.apache.org/documentation/bundles/resource-access-security.html
> 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
> Assignee: Konrad Windszus
> Priority: Major
> Time Spent: 3h 20m
> Remaining Estimate: 0h
>
> 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
(v8.3.4#803005)