Add ResourceResolver.copy(Map) method
--------------------------------------
Key: SLING-1640
URL: https://issues.apache.org/jira/browse/SLING-1640
Project: Sling
Issue Type: New Feature
Reporter: Felix Meschberger
Assignee: Felix Meschberger
Fix For: JCR Resource 2.0.8, API 2.1.0
As discussed on the list the ResourceResolver interface should be extended with
a new method:
ResourceResolver copy(Map credentials);
This method creates a new ResourceResolver as follows:
// start with original credentials
Map newCredentials = new HashMap(current resolver credentials);
// overlay with provided credentials
newCredentials.addAll(credentials);
// return a new ResourceResolver
return resourceResolverFactory.login(newCredentials);
This new method allows for the removal of the AuthenticationInfo object from
the request attributes (as discussed in SLING-1445) and allows for a better
implementation of the background servlet execution.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.