jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Reschke (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (JCR-3777) Add simple allow/deny/clear convenience methods to AccessControlUtils
Date Thu, 09 Feb 2017 14:45:41 GMT

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

Julian Reschke commented on JCR-3777:
-------------------------------------

trunk: [r1597806|http://svn.apache.org/r1597806] [r1597717|http://svn.apache.org/r1597717]
[r1592881|http://svn.apache.org/r1592881]
2.8: [r1597807|http://svn.apache.org/r1597807]


> Add simple allow/deny/clear convenience methods to AccessControlUtils
> ---------------------------------------------------------------------
>
>                 Key: JCR-3777
>                 URL: https://issues.apache.org/jira/browse/JCR-3777
>             Project: Jackrabbit Content Repository
>          Issue Type: Improvement
>          Components: jackrabbit-jcr-commons
>            Reporter: Alexander Klimetschek
>            Assignee: angela
>            Priority: Minor
>             Fix For: 2.9, 2.8.1
>
>         Attachments: JCR-3777.patch
>
>
> Add these short convenience methods:
> {code}
> AccessControlUtils.clear(node, "user");
> AccessControlUtils.allow(node, "user", Privilege.JCR_READ, Privilege.JCR_WRITE);
> AccessControlUtils.deny(node, "user", Privilege.JCR_REMOVE_NODE);
> AccessControlUtils.clear(node); // remove all entries for all users
> {code}
> Useful for unit tests or other places where you need to set ACLs from code. Uses varargs
for the privilege list, and uses the first argument node for both the path and the session
to use.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message