Map<String, Object> resolverImpersonationConfig = new HashMap<String, Object>(0);resolverImpersonationConfig.put(ResourceResolverFactory.USER_IMPERSONATION, userId);return resourceResolverFactory.getServiceResourceResolver(resolverImpersonationConfig);
This does not work under AEM 6.1!!!!!!!!!!!!!!!!!!!!!!
Solved! Go to Solution.
Views
Replies
Total Likes
Views
Replies
Total Likes
For AEM 6.1, you need to use a System user. See this article to learn how:
http://scottsdigitalcommunity.blogspot.ca/2015/11/using-java-query-object-model-within.html
Views
Replies
Total Likes
What 'Query Object Model' to do with it?
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies