This is an automated email from the ASF dual-hosted git repository. rombert pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-repoinit-parser.git
commit 7456e539cc433321b022ee0f4d9e6e3edbd313eb Author: Bertrand Delacretaz <bdelacre...@apache.org> AuthorDate: Tue Jun 13 13:59:50 2017 +0000 SLING-6422 - add restrictions to the full example, will use them for the website docs git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1798603 13f79535-47bb-0310-9956-ffa450edef68 --- src/test/resources/testcases/test-99-output.txt | 5 +++++ src/test/resources/testcases/test-99.txt | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/src/test/resources/testcases/test-99-output.txt b/src/test/resources/testcases/test-99-output.txt index eaa7451..a4fd1c9 100644 --- a/src/test/resources/testcases/test-99-output.txt +++ b/src/test/resources/testcases/test-99-output.txt @@ -16,6 +16,11 @@ SetAclPrincipals for alice bob fred AclLine ALLOW {paths=[/content, /var], privileges=[jcr:read]} AclLine DENY {paths=[/content/example.com], privileges=[jcr:write]} AclLine DENY {nodetypes=[example:Page], paths=[/], privileges=[jcr:all]} +SetAclPrincipals for restrictions_examples + AclLine DENY {nodetypes=[sling:Folder, nt:unstructured], paths=[/apps, /content], privileges=[jcr:modifyProperties]} restrictions=[rep:itemNames=[prop1, prop2]] + AclLine ALLOW {paths=[/apps], privileges=[jcr:addChildNodes]} restrictions=[rep:ntNames=[sling:Folder, nt:unstructured]] + AclLine ALLOW {paths=[/apps], privileges=[jcr:modifyProperties]} restrictions=[rep:ntNames=[sling:Folder, nt:unstructured], rep:itemNames=[prop1, prop2]] + AclLine ALLOW {paths=[/apps, /content], privileges=[jcr:addChildNodes]} restrictions=[rep:glob=[/cat/*, */cat, *cat/*]] RegisterNamespace (NSprefix) uri:someURI/v1.42 RegisterNodetypes: <slingevent='http://sling.apache.org/jcr/event/1.0'> diff --git a/src/test/resources/testcases/test-99.txt b/src/test/resources/testcases/test-99.txt index 740c439..7365a9f 100644 --- a/src/test/resources/testcases/test-99.txt +++ b/src/test/resources/testcases/test-99.txt @@ -31,6 +31,13 @@ set ACL for alice, bob,fred end +set ACL for restrictions_examples + deny jcr:modifyProperties on /apps, /content nodetypes sling:Folder, nt:unstructured restriction(rep:itemNames,prop1,prop2) + allow jcr:addChildNodes on /apps restriction(rep:ntNames,sling:Folder,nt:unstructured) + allow jcr:modifyProperties on /apps restriction(rep:ntNames,sling:Folder,nt:unstructured) restriction(rep:itemNames,prop1,prop2) + allow jcr:addChildNodes on /apps,/content restriction(rep:glob,/cat/*,*/cat,*cat/*) +end + register namespace ( NSprefix ) uri:someURI/v1.42 register nodetypes -- To stop receiving notification emails like this one, please contact "commits@sling.apache.org" <commits@sling.apache.org>.