[ 
https://issues.apache.org/jira/browse/SLING-6504?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16057281#comment-16057281
 ] 

ASF GitHub Bot commented on SLING-6504:
---------------------------------------

GitHub user heervisscher opened a pull request:

    https://github.com/apache/sling/pull/243

    SLING-6504 implementing custom adaptable in Use-api

    Makes it possible to define your own adaptation for data-sly-use.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/heervisscher/sling SLING-6504

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/sling/pull/243.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #243
    
----
commit 22fadc22a71a843652bcb94cd276710d99bc44e4
Author: Feike Visser <[email protected]>
Date:   2017-06-21T09:56:59Z

    SLING-6504 implementing custom adaptable in Use-api

----


> Use-api to support more flexible way to adapt from different objects
> --------------------------------------------------------------------
>
>                 Key: SLING-6504
>                 URL: https://issues.apache.org/jira/browse/SLING-6504
>             Project: Sling
>          Issue Type: Improvement
>          Components: Scripting
>            Reporter: Feike Visser
>              Labels: Sightly
>
> The current implementation of the Use-api accept classes that are adaptable 
> from Request or Resource. 
> This issue is to make this mechanism more flexible, to be able to adapt from 
> different objects.
> Proposal:
> {code}
> <sly data-sly-use.user="${'javax.jcr.Session' @ adaptable = 
> resource.resourceResolver}" />
> ${user.userID}
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to