Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 74BC3200B27 for ; Wed, 22 Jun 2016 13:09:45 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7380F160A35; Wed, 22 Jun 2016 11:09:45 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id BBABE160A2E for ; Wed, 22 Jun 2016 13:09:44 +0200 (CEST) Received: (qmail 83488 invoked by uid 500); 22 Jun 2016 11:09:43 -0000 Mailing-List: contact commits-help@sling.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@sling.apache.org Delivered-To: mailing list commits@sling.apache.org Received: (qmail 83479 invoked by uid 99); 22 Jun 2016 11:09:43 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2016 11:09:43 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 5E9FFC31C4 for ; Wed, 22 Jun 2016 11:09:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.429 X-Spam-Level: X-Spam-Status: No, score=-0.429 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-1.429] autolearn=disabled Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 36t2tf2vljJK for ; Wed, 22 Jun 2016 11:09:42 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTP id 8F05D5FB83 for ; Wed, 22 Jun 2016 11:09:42 +0000 (UTC) Received: from svn01-us-west.apache.org (svn.apache.org [10.41.0.6]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id BD1E3E021C for ; Wed, 22 Jun 2016 11:09:41 +0000 (UTC) Received: from svn01-us-west.apache.org (localhost [127.0.0.1]) by svn01-us-west.apache.org (ASF Mail Server at svn01-us-west.apache.org) with ESMTP id 83AD43A031D for ; Wed, 22 Jun 2016 11:09:41 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1749653 - /sling/site/trunk/content/documentation/bundles/repository-initialization.mdtext Date: Wed, 22 Jun 2016 11:09:41 -0000 To: commits@sling.apache.org From: bdelacretaz@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20160622110941.83AD43A031D@svn01-us-west.apache.org> archived-at: Wed, 22 Jun 2016 11:09:45 -0000 Author: bdelacretaz Date: Wed Jun 22 11:09:40 2016 New Revision: 1749653 URL: http://svn.apache.org/viewvc?rev=1749653&view=rev Log: tweaks 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=1749653&r1=1749652&r2=1749653&view=diff ============================================================================== --- sling/site/trunk/content/documentation/bundles/repository-initialization.mdtext (original) +++ sling/site/trunk/content/documentation/bundles/repository-initialization.mdtext Wed Jun 22 11:09:40 2016 @@ -18,15 +18,17 @@ Services that implement this interface a They are called in increasing order of their `service.ranking` service property, which needs to be an `Integer` as usual. -## 'repoinit' Repository Initialization Language +## The 'repoinit' Repository Initialization Language The `org.apache.sling.repoinit.parser` implements a mini-language meant to create paths, service users and Access Control Lists in a content repository. -The language grammar is defined (using JavaCC which has no runtime dependencies) in the `RepoInitGrammar.jjt` file in that module, and the automated tests provide a number of [test cases](https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/repoinit/parser/src/test/resources/testcases) which demonstrate various features. +The language grammar is defined (using the JavaCC compiler-compiler, which has no runtime dependencies) in the `RepoInitGrammar.jjt` file in that module, and the automated tests provide a number of [test cases](https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/repoinit/parser/src/test/resources/testcases) which demonstrate various features. The companion `org.apache.sling.repoinit.oak-jcr` module implements those operations on an Oak JCR repository, using a `SlingRepositoryInitializer` registered by default with a service ranking of 100. -Here's a current (as of V1.0.0 of the parser module) complete example from the test cases mentioned above. The language is self-explaining but please refer to the actual test cases for details that are guaranteed to be up to date, assuming the tests pass. +Here's a current example from the test cases mentioned above, that uses all language features as of version 1.0.0 of the parser module. + +The language is self-explaining but please refer to the actual test cases for details that are guaranteed to be up to date, assuming the tests pass. create service user user1, u-ser_2 set ACL on /libs,/apps