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

ASF GitHub Bot commented on JCR-3836:
-------------------------------------

GitHub user tmaret opened a pull request:

    https://github.com/apache/jackrabbit/pull/26

    JCR-3836 - Add AuthorizableTypeException in user security API package

    

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

    $ git pull https://github.com/tmaret/jackrabbit JCR-3836

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

    https://github.com/apache/jackrabbit/pull/26.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 #26
    
----
commit 8395e5a9b7fc23708c1aa62d34dde43668f74c26
Author: tmaret <[email protected]>
Date:   2014-12-04T14:38:23Z

    JCR-3837 - Add AuthorizableTypeException in user security API package

commit b972062e344949670032d5d5980622cb13ec2152
Author: tmaret <[email protected]>
Date:   2014-12-04T16:17:46Z

    JCR-3836 - Allow to get an Authorizable of a given type
    
    * Extend UserManager API to allow getting typed authorizable
    * Increase the package version according to the API change

commit 8079280ce80764096a5f06c38165daa189f7cf06
Author: tmaret <[email protected]>
Date:   2014-12-04T16:18:30Z

    JCR-3836 - Allow to get an Authorizable of a given type
    
    * Implement new API
    * Cover the implementation with unit tests

----


> Allow to get an Authorizable of a given type 
> ---------------------------------------------
>
>                 Key: JCR-3836
>                 URL: https://issues.apache.org/jira/browse/JCR-3836
>             Project: Jackrabbit Content Repository
>          Issue Type: Bug
>          Components: security
>    Affects Versions: 2.9
>            Reporter: Timothee Maret
>              Labels: security
>             Fix For: 2.9
>
>         Attachments: JCR-3836.patch
>
>
> As discussed in [0], API users would benefit from being able to get an 
> Authorizable of a given type.
> In order to allow this, we may add
> {code}
> <T> T getAuthorizable(@Nonnull String id, Class<T> authorizableClass) throws 
> AuthorizableTypeException
> {code}
> [0] 
> http://jackrabbit.markmail.org/message/iq7zpdxwh5laalfi?q=Adding+AuthorizableMissmatchException+to+jackrabbit+security+API



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to