Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-1640

Add ResourceResolver.clone(Map) method

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • JCR Resource 2.0.8, API 2.1.0
    • API, JCR
    • None

    Description

      As discussed on the list the ResourceResolver interface should be extended with a new method:

      ResourceResolver clone(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.

      Attachments

        Issue Links

          Activity

            People

              fmeschbe Felix Meschberger
              fmeschbe Felix Meschberger
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: