jackrabbit-oak-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "angela (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OAK-7994) Principal Management APIs don't allow for search pagination
Date Thu, 07 Feb 2019 08:22:00 GMT

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

angela commented on OAK-7994:
-----------------------------

[~stillalex], just another random idea: what about introducing a new interface {{SeachingPrincipalProvider
extends PrincipalProvider}} instead of extending the {{PrincipalProvider}} itself? Then each
implementation can decide if they can or wish to implement the searching functionality in
the first place. Also existing implementations would not break upon upgrade. In theory only
the {{CompositePrincipalProvider}} needed to support the extension and would then verify for
each aggregated implementation if they implement the extension and only call those. wdyt?

I was recently working on a POC where I had the need to lookup a principal by path (i.e. the
lookup corresponding to {{ItemBasedPrincipal}}), which obviously does only make sense if a
given impl exposes {{ItemBasedPrincipal}}.... there i thought about a similar pattern instead
of extending {{PrincipalProvider}} directly... and it simplified things a lot :)

> Principal Management APIs don't allow for search pagination
> -----------------------------------------------------------
>
>                 Key: OAK-7994
>                 URL: https://issues.apache.org/jira/browse/OAK-7994
>             Project: Jackrabbit Oak
>          Issue Type: Improvement
>          Components: security, security-spi
>            Reporter: Alex Deparvu
>            Assignee: Alex Deparvu
>            Priority: Major
>         Attachments: oak-7994.patch
>
>
> Current apis are limited to passing a search token, I'd like to also add range (offset,
limit).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message