[ 
https://issues.apache.org/jira/browse/SLING-514?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Carsten Ziegeler updated SLING-514:
-----------------------------------

          Component/s:     (was: Scripting)
                       JCR
    Affects Version/s:     (was: Scripting JavaScript 2.0.2)
                       JCR Resource 2.0.6
        Fix Version/s: JCR Resource 2.0.8
              Summary: Expose current session through currentSession binding  
(was: expose currentSession)

Moving this to the jcr resource bundle which now does adding the jcr based 
bindings

> Expose current session through currentSession binding
> -----------------------------------------------------
>
>                 Key: SLING-514
>                 URL: https://issues.apache.org/jira/browse/SLING-514
>             Project: Sling
>          Issue Type: New Feature
>          Components: JCR
>    Affects Versions: JCR Resource 2.0.6
>            Reporter: David Nuescheler
>            Assignee: Carsten Ziegeler
>            Priority: Minor
>             Fix For: JCR Resource 2.0.8
>
>
> i think it would be great to expose a currentSession variable in scripting 
> similar to the currentNode.
> in a usecase that i ran to recently i needed access to the session and tried 
> to go through currentNode.getSession() which didn't work because my 
> currentNode did not really exist since it was a synthetic resource that i 
> requested.
> of course one can go through the 
> request.getResourceResolver().adaptTo(Packages.javax.jcr.Session) to acquire 
> the session but i think a short-hand would be nice since this is a very 
> common case

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to