Created
October 25, 2012 08:33
-
-
Save cqsupport/3951436 to your computer and use it in GitHub Desktop.
Getting a ResourceResolver in CQ5.5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Reference | |
private ResourceResolverFactory resolverFactory; | |
private ResourceResolver getResourceResolver(Session session) | |
throws LoginException | |
{ | |
Map authInfo = new HashMap(); | |
authInfo.put(JcrResourceConstants.AUTHENTICATION_INFO_SESSION, session); | |
return resolverFactory.getResourceResolver(authInfo); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment