Author: buildbot Date: Wed Jun 22 11:09:49 2016 New Revision: 991176 Log: Staging update by buildbot for sling
Modified: websites/staging/sling/trunk/content/ (props changed) websites/staging/sling/trunk/content/documentation/bundles/repository-initialization.html Propchange: websites/staging/sling/trunk/content/ ------------------------------------------------------------------------------ --- cms:source-revision (original) +++ cms:source-revision Wed Jun 22 11:09:49 2016 @@ -1 +1 @@ -1749652 +1749653 Modified: websites/staging/sling/trunk/content/documentation/bundles/repository-initialization.html ============================================================================== --- websites/staging/sling/trunk/content/documentation/bundles/repository-initialization.html (original) +++ websites/staging/sling/trunk/content/documentation/bundles/repository-initialization.html Wed Jun 22 11:09:49 2016 @@ -128,12 +128,13 @@ the same content repository you'll need <p>Services that implement this interface are called when setting up the JCR-based <code>SlingRepository</code> service, before registering it as an OSGi service.</p> <p>They are called in increasing order of their <code>service.ranking</code> service property, which needs to be an <code>Integer</code> as usual.</p> -<h2 id="repoinit-repository-initialization-language">'repoinit' Repository Initialization Language<a class="headerlink" href="#repoinit-repository-initialization-language" title="Permanent link">¶</a></h2> +<h2 id="the-repoinit-repository-initialization-language">The 'repoinit' Repository Initialization Language<a class="headerlink" href="#the-repoinit-repository-initialization-language" title="Permanent link">¶</a></h2> <p>The <code>org.apache.sling.repoinit.parser</code> implements a mini-language meant to create paths, service users and Access Control Lists in a content repository.</p> -<p>The language grammar is defined (using JavaCC which has no runtime dependencies) in the <code>RepoInitGrammar.jjt</code> file in that module, and the automated tests provide a number of <a href="https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/repoinit/parser/src/test/resources/testcases">test cases</a> which demonstrate various features.</p> +<p>The language grammar is defined (using the JavaCC compiler-compiler, which has no runtime dependencies) in the <code>RepoInitGrammar.jjt</code> file in that module, and the automated tests provide a number of <a href="https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/repoinit/parser/src/test/resources/testcases">test cases</a> which demonstrate various features.</p> <p>The companion <code>org.apache.sling.repoinit.oak-jcr</code> module implements those operations on an Oak JCR repository, using a <code>SlingRepositoryInitializer</code> registered by default with a service ranking of 100.</p> -<p>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.</p> +<p>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. </p> +<p>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.</p> <div class="codehilite"><pre><span class="n">create</span> <span class="n">service</span> <span class="n">user</span> <span class="n">user1</span><span class="p">,</span> <span class="n">u</span><span class="o">-</span><span class="n">ser_2</span> <span class="n">set</span> <span class="n">ACL</span> <span class="n">on</span> <span class="o">/</span><span class="n">libs</span><span class="p">,</span><span class="o">/</span><span class="n">apps</span> <span class="n">remove</span> <span class="o">*</span> <span class="k">for</span> <span class="n">user1</span><span class="p">,</span><span class="n">u</span><span class="o">-</span><span class="n">ser_2</span> @@ -168,7 +169,7 @@ registered by default with a service ran <h2 id="embedding-repoinit-statements-in-the-sling-provisioning-model">Embedding repoinit statements in the Sling provisioning model<a class="headerlink" href="#embedding-repoinit-statements-in-the-sling-provisioning-model" title="Permanent link">¶</a></h2> <p>TODO: explain this</p> <div class="timestamp" style="margin-top: 30px; font-size: 80%; text-align: right;"> - Rev. 1749652 by bdelacretaz on Wed, 22 Jun 2016 10:56:46 +0000 + Rev. 1749653 by bdelacretaz on Wed, 22 Jun 2016 11:09:40 +0000 </div> <div class="trademarkFooter"> Apache Sling, Sling, Apache, the Apache feather logo, and the Apache Sling project