adobe / aem-core-wcm-components

Standardized components to build websites with AEM.
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/introduction.html
Apache License 2.0
726 stars 735 forks source link

[Architecture] Remove usage of JCR API in ChildrenEditorServlet #308

Open jckautzmann opened 5 years ago

jckautzmann commented 5 years ago

The Node#orderBefore JCR API is used in ChildrenEditorServlet: https://github.com/Adobe-Marketing-Cloud/aem-core-wcm-components/blob/development/bundles/core/src/main/java/com/adobe/cq/wcm/core/components/sandbox/internal/servlets/ChildrenEditorServlet.java#L100

We should get rid of all the JCR API usages in our code.

jckautzmann commented 5 years ago

Sling does not provide an API to order nodes. I created a Sling issue to fix this: SLING-7975 - Add a Java API for ordering resources https://issues.apache.org/jira/browse/SLING-7975

Once such an API is provided, we will update the code.

jckautzmann commented 5 years ago

(CQ-4254209)