You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by tm...@apache.org on 2017/09/19 09:11:25 UTC

svn commit: r1808846 - /sling/site/trunk/content/documentation/bundles/repository-initialization.mdtext

Author: tmaret
Date: Tue Sep 19 09:11:25 2017
New Revision: 1808846

URL: http://svn.apache.org/viewvc?rev=1808846&view=rev
Log:
SLING-7061 - Access control setup of repository-level permissions (i.e. null path)

* Add example of repository-level ACL setup

Modified:
    sling/site/trunk/content/documentation/bundles/repository-initialization.mdtext

Modified: sling/site/trunk/content/documentation/bundles/repository-initialization.mdtext
URL: http://svn.apache.org/viewvc/sling/site/trunk/content/documentation/bundles/repository-initialization.mdtext?rev=1808846&r1=1808845&r2=1808846&view=diff
==============================================================================
--- sling/site/trunk/content/documentation/bundles/repository-initialization.mdtext (original)
+++ sling/site/trunk/content/documentation/bundles/repository-initialization.mdtext Tue Sep 19 09:11:25 2017
@@ -53,6 +53,9 @@ The language is self-explaining but plea
     create path /content/example.com(sling:Folder)
 
     # Nodetypes and mixins applied to just a path element
+    # Specifying mixins require
+    # o.a.s.repoinit.parser 1.2.0 and
+    # o.a.s.jcr.repoinit 1.2.0
     create path /content/example.com(sling:Folder mixin mix:referenceable,mix:shareable)
 
     # Mixins applied to just a path element
@@ -75,6 +78,14 @@ The language is self-explaining but plea
 	    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
+
+	# Set repository level ACL
+	# Setting repository level ACL require
+    # o.a.s.repoinit.parser 1.2.0 and
+    # o.a.s.jcr.repoinit 1.2.0
+    set repository ACL for alice,bob
+        allow jcr:namespaceManagement,jcr:nodeTypeDefinitionManagement
+    end
 	
 	# register namespace requires 
 	# o.a.s.repoinit.parser 1.0.4