[
https://issues.apache.org/jira/browse/JCR-3836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14267498#comment-14267498
]
angela commented on JCR-3836:
-----------------------------
[~marett], thanks for the effort. as commented on github i am not totally sure
if we really should the extra method for all variants of getAuthorizable or
whether we shouldn't limit it to lookup by ID in the initial iteration and only
add the other 2 methods if they are actually needed by someone. wdyt?
> 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
> Assignee: angela
> 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)