We are currently using a ServiceResourceResolver which works fine, but noticed that the ThreadResourceResolver allows me to read from the JCR without issue - but I've not found documentation around its limits/permissions/etc, only that it's the last unclosed ResourceResolver created on the current thread.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
I assume you are referring to https://docs.adobe.com/docs/en/aem/6-0/develop/ref/javadoc/com/adobe/granite/resourceresolverhelper/.... If so, this really only works in a request context in which case it will be the ResourceResolver associated with the current request.
So:
1) Yes it will always be non-null in a request context.
2) The permissions of the current user.
3) Depends upon the permissions of the current user.
Regards,
Justin
Views
Replies
Total Likes
Hi,
I assume you are referring to https://docs.adobe.com/docs/en/aem/6-0/develop/ref/javadoc/com/adobe/granite/resourceresolverhelper/.... If so, this really only works in a request context in which case it will be the ResourceResolver associated with the current request.
So:
1) Yes it will always be non-null in a request context.
2) The permissions of the current user.
3) Depends upon the permissions of the current user.
Regards,
Justin
Views
Replies
Total Likes
I was referring to https://sling.apache.org/apidocs/sling7/org/apache/sling/api/resource/ResourceResolverFactory.html#g... but would probably be a safe bet that your answer is correct for this one as well.
Thanks,
Joshua
Views
Replies
Total Likes
Views
Likes
Replies