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 2020/03/09 14:52:04 UTC
[sling-org-apache-sling-jcr-repoinit] branch master updated:
SLING-9186 - use org.apache.sling.repoinit.language OSGi capability to keep
in sync with the parser bundle
This is an automated email from the ASF dual-hosted git repository.
bdelacretaz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-jcr-repoinit.git
The following commit(s) were added to refs/heads/master by this push:
new 6dfc8db SLING-9186 - use org.apache.sling.repoinit.language OSGi capability to keep in sync with the parser bundle
6dfc8db is described below
commit 6dfc8db0ca90b353b4ab198994cb34120350c6ac
Author: Bertrand Delacretaz <bd...@apache.org>
AuthorDate: Mon Mar 9 15:51:51 2020 +0100
SLING-9186 - use org.apache.sling.repoinit.language OSGi capability to keep in sync with the parser bundle
---
bnd.bnd | 3 ++-
pom.xml | 2 +-
.../org/apache/sling/jcr/repoinit/impl/DoNothingVisitor.java | 10 ++++++++++
3 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/bnd.bnd b/bnd.bnd
index 004be90..431220e 100644
--- a/bnd.bnd
+++ b/bnd.bnd
@@ -1 +1,2 @@
-Provide-Capability: osgi.implementation;osgi.implementation="org.apache.sling.jcr.repoinit";version:Version="1.0"
\ No newline at end of file
+Provide-Capability: osgi.implementation;osgi.implementation="org.apache.sling.jcr.repoinit";version:Version="1.0"
+Require-Capability: org.apache.sling.repoinit.language;filter:="(version>=8.0)"
\ No newline at end of file
diff --git a/pom.xml b/pom.xml
index 91fdded..68738c4 100644
--- a/pom.xml
+++ b/pom.xml
@@ -219,7 +219,7 @@
<dependency>
<groupId>org.apache.sling</groupId>
<artifactId>org.apache.sling.repoinit.parser</artifactId>
- <version>1.4.3-SNAPSHOT</version>
+ <version>1.5.1-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<dependency>
diff --git a/src/main/java/org/apache/sling/jcr/repoinit/impl/DoNothingVisitor.java b/src/main/java/org/apache/sling/jcr/repoinit/impl/DoNothingVisitor.java
index 7a28010..083e257 100644
--- a/src/main/java/org/apache/sling/jcr/repoinit/impl/DoNothingVisitor.java
+++ b/src/main/java/org/apache/sling/jcr/repoinit/impl/DoNothingVisitor.java
@@ -18,6 +18,7 @@ package org.apache.sling.jcr.repoinit.impl;
import javax.jcr.Session;
+import org.apache.sling.repoinit.parser.operations.AddGroupMembers;
import org.apache.sling.repoinit.parser.operations.CreateGroup;
import org.apache.sling.repoinit.parser.operations.CreatePath;
import org.apache.sling.repoinit.parser.operations.CreateServiceUser;
@@ -30,6 +31,7 @@ import org.apache.sling.repoinit.parser.operations.OperationVisitor;
import org.apache.sling.repoinit.parser.operations.RegisterNamespace;
import org.apache.sling.repoinit.parser.operations.RegisterNodetypes;
import org.apache.sling.repoinit.parser.operations.RegisterPrivilege;
+import org.apache.sling.repoinit.parser.operations.RemoveGroupMembers;
import org.apache.sling.repoinit.parser.operations.SetAclPaths;
import org.apache.sling.repoinit.parser.operations.SetAclPrincipalBased;
import org.apache.sling.repoinit.parser.operations.SetAclPrincipals;
@@ -120,4 +122,12 @@ class DoNothingVisitor implements OperationVisitor {
@Override
public void visitDeleteGroup(DeleteGroup g) {
}
+
+ @Override
+ public void visitAddGroupMembers(AddGroupMembers am) {
+ }
+
+ @Override
+ public void visitRemoveGroupMembers(RemoveGroupMembers rm) {
+ }
}