Re: Ordering nodes after initial import

2016-02-23 Thread Guillaume Lucazeau
Thank Marius, I didn't know this interface and it works well (event though my bundle seems to start twice by itself but the second time it works so it's ok). Regarding the changes not save, I used ResourceResolver.commit instead of Session.save() and it works. Thank you! Best regards, Guillaume

Re: Ordering nodes after initial import

2016-02-23 Thread Marius Petria
On 2/23/16, 12:51 PM, "Guillaume Lucazeau" wrote: >The second issue is that my service needs access to an administrative >session for this ordering. I mapped it to the admin user with >ServiceUserMapperImpl.amended in sling:OsgiConfig nodes, however this >configuration is fired after the bun

Ordering nodes after initial import

2016-02-23 Thread Guillaume Lucazeau
Hello, I'm loading content through a JSON file. I would like then to sort nodes (mostly page nodes under document nodes) with the JCR API. I'm calling my service in my bundle's activator, but i'm facing two issues. The first one is that no changes seems to be applied to the content tree. While m