You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2016/07/04 11:42:14 UTC
svn commit: r1751253 -
/sling/site/trunk/content/documentation/bundles/repository-initialization.mdtext
Author: bdelacretaz
Date: Mon Jul 4 11:42:13 2016
New Revision: 1751253
URL: http://svn.apache.org/viewvc?rev=1751253&view=rev
Log:
oak-jcr module has been renamed to jcr.repoinit
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=1751253&r1=1751252&r2=1751253&view=diff
==============================================================================
--- sling/site/trunk/content/documentation/bundles/repository-initialization.mdtext (original)
+++ sling/site/trunk/content/documentation/bundles/repository-initialization.mdtext Mon Jul 4 11:42:13 2016
@@ -25,8 +25,9 @@ The `org.apache.sling.repoinit.parser` i
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.
+The companion `org.apache.sling.jcr.repoinit` module implements those operations on an Oak JCR repository, using a `SlingRepositoryInitializer`
+registered by default with a service ranking of 100. It also provides a `JcrRepoInitOpsProcessor` service to explicitly apply the output
+of the repoinit parser to a JCR repository.
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.
@@ -54,7 +55,7 @@ The language is self-explaining but plea
create path (nt:unstructured) /var
set ACL for alice, bob,fred
- # remove is currently not supported by the oak-jcr module
+ # remove is currently not supported by the jcr.repoinit module
remove * on /
allow jcr:read on /content,/var
deny jcr:write on /content/example.com
@@ -68,7 +69,7 @@ The language is self-explaining but plea
The `slingstart-maven-plugin`, from V1.4.2 on, allows for embedding "special" sections in the Sling provisioning model by starting
their name with a colon.
-The `o.a.s.repoinit.oak-jcr` bundle uses this feature to execute `repoinit` statements provided by Sling provisioning models, as in this
+The `o.a.s.jcr.repoinit` bundle uses this feature to execute `repoinit` statements provided by Sling provisioning models, as in this
example:
[:repoinit]
@@ -82,4 +83,4 @@ Configuring a different URL and if neede
This also requires the `org.apache.sling.provisioning.model` bundle, version 1.4.2 or later.
-All bundles required for this feature need to be active before the `SlingRepository` service starts.
\ No newline at end of file
+All bundles required for this feature need to be active before the `SlingRepository` service starts.