You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ro...@apache.org on 2017/11/07 09:29:51 UTC
[sling-org-apache-sling-distribution-sample] 09/42: SLING-3899 -
applied Marius patch to add the resource resolved to all APIs
This is an automated email from the ASF dual-hosted git repository.
rombert pushed a commit to annotated tag org.apache.sling.distribution.sample-0.1.0
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-distribution-sample.git
commit 953e6111db02cc1525e058bd77a64ca7ecb7e6de
Author: Tommaso Teofili <to...@apache.org>
AuthorDate: Tue Oct 14 15:09:12 2014 +0000
SLING-3899 - applied Marius patch to add the resource resolved to all APIs
git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/replication/sample@1631780 13f79535-47bb-0310-9956-ffa450edef68
---
...nt.impl.CoordinatingReplicationAgentFactory-pubsync.json | 10 ++++++++--
....impl.SimpleReplicationAgentFactory-publish-reverse.json | 12 +++++++++---
...on.agent.impl.SimpleReplicationAgentFactory-publish.json | 13 +++++++++----
...gent.impl.SimpleReplicationAgentFactory-cache-flush.json | 4 ++++
...on.agent.impl.SimpleReplicationAgentFactory-reverse.json | 5 +++++
5 files changed, 35 insertions(+), 9 deletions(-)
diff --git a/src/main/resources/SLING-CONTENT/libs/sling/replication/install.author/org.apache.sling.replication.agent.impl.CoordinatingReplicationAgentFactory-pubsync.json b/src/main/resources/SLING-CONTENT/libs/sling/replication/install.author/org.apache.sling.replication.agent.impl.CoordinatingReplicationAgentFactory-pubsync.json
index 68758f6..41d4e8e 100644
--- a/src/main/resources/SLING-CONTENT/libs/sling/replication/install.author/org.apache.sling.replication.agent.impl.CoordinatingReplicationAgentFactory-pubsync.json
+++ b/src/main/resources/SLING-CONTENT/libs/sling/replication/install.author/org.apache.sling.replication.agent.impl.CoordinatingReplicationAgentFactory-pubsync.json
@@ -2,11 +2,13 @@
"jcr:primaryType": "sling:OsgiConfig",
"name": "pubsync",
+ "serviceName" : "replicationService",
+
+
"packageExporter": [
"authenticationProvider/type=service",
"packageBuilder/type=vlt",
- "packageBuilder/servicename=replicationService",
"endpoints[0]=http://localhost:4503/libs/sling/replication/services/exporters/reverse-pubsync",
"endpoints[1]=http://localhost:4504/libs/sling/replication/services/exporters/reverse-pubsync",
@@ -14,11 +16,15 @@
"endpoints.strategy=All"
],
+ "packageExporterStrategy" : [
+ "type=privilege",
+ "jcrPrivilege=jcr:read"
+ ],
+
"packageImporter": [
"authenticationProvider/type=service",
"packageBuilder/type=vlt",
- "packageBuilder/servicename=replicationService",
"endpoints[0]=http://localhost:4503/libs/sling/replication/services/importers/default",
"endpoints[1]=http://localhost:4504/libs/sling/replication/services/importers/default",
diff --git a/src/main/resources/SLING-CONTENT/libs/sling/replication/install.author/org.apache.sling.replication.agent.impl.SimpleReplicationAgentFactory-publish-reverse.json b/src/main/resources/SLING-CONTENT/libs/sling/replication/install.author/org.apache.sling.replication.agent.impl.SimpleReplicationAgentFactory-publish-reverse.json
index 8cb8a95..e70dd38 100644
--- a/src/main/resources/SLING-CONTENT/libs/sling/replication/install.author/org.apache.sling.replication.agent.impl.SimpleReplicationAgentFactory-publish-reverse.json
+++ b/src/main/resources/SLING-CONTENT/libs/sling/replication/install.author/org.apache.sling.replication.agent.impl.SimpleReplicationAgentFactory-publish-reverse.json
@@ -4,20 +4,26 @@
"enabled" : true,
+ "serviceName" : "replicationService",
+
+
"packageExporter": [
"type=remote",
"endpoints[0]=http://localhost:4503/libs/sling/replication/services/exporters/reverse",
"authenticationProvider/type=service",
- "packageBuilder/type=vlt",
- "packageBuilder/servicename=replicationService"
+ "packageBuilder/type=vlt"
+ ],
+
+ "packageExporterStrategy" : [
+ "type=privilege",
+ "jcrPrivilege=jcr:read"
],
"packageImporter": [
"type=local",
"packageBuilder/type=vlt",
- "packageBuilder/servicename=replicationService"
],
"trigger0": [
diff --git a/src/main/resources/SLING-CONTENT/libs/sling/replication/install.author/org.apache.sling.replication.agent.impl.SimpleReplicationAgentFactory-publish.json b/src/main/resources/SLING-CONTENT/libs/sling/replication/install.author/org.apache.sling.replication.agent.impl.SimpleReplicationAgentFactory-publish.json
index c08c6f0..9eccc41 100644
--- a/src/main/resources/SLING-CONTENT/libs/sling/replication/install.author/org.apache.sling.replication.agent.impl.SimpleReplicationAgentFactory-publish.json
+++ b/src/main/resources/SLING-CONTENT/libs/sling/replication/install.author/org.apache.sling.replication.agent.impl.SimpleReplicationAgentFactory-publish.json
@@ -2,10 +2,16 @@
"jcr:primaryType": "sling:OsgiConfig",
"name": "publish",
+ "serviceName" : "replicationService",
+
"packageExporter": [
"type=local",
- "packageBuilder/type=vlt",
- "packageBuilder/servicename=replicationService"
+ "packageBuilder/type=vlt"
+ ],
+
+ "packageExporterStrategy" : [
+ "type=privilege",
+ "jcrPrivilege=jcr:read"
],
"packageImporter": [
@@ -14,8 +20,7 @@
"authenticationProvider/type=service",
- "packageBuilder/type=vlt",
- "packageBuilder/servicename=replicationService"
+ "packageBuilder/type=vlt"
],
"queueProvider.target" : "(name=sjh)",
diff --git a/src/main/resources/SLING-CONTENT/libs/sling/replication/install.publish/org.apache.sling.replication.agent.impl.SimpleReplicationAgentFactory-cache-flush.json b/src/main/resources/SLING-CONTENT/libs/sling/replication/install.publish/org.apache.sling.replication.agent.impl.SimpleReplicationAgentFactory-cache-flush.json
index ee1b01d..0920457 100644
--- a/src/main/resources/SLING-CONTENT/libs/sling/replication/install.publish/org.apache.sling.replication.agent.impl.SimpleReplicationAgentFactory-cache-flush.json
+++ b/src/main/resources/SLING-CONTENT/libs/sling/replication/install.publish/org.apache.sling.replication.agent.impl.SimpleReplicationAgentFactory-cache-flush.json
@@ -7,6 +7,10 @@
"name=void"
],
+ "packageExporterStrategy" : [
+ "type=default"
+ ],
+
"packageImporter": [
"type=service",
"name=cache-flush"
diff --git a/src/main/resources/SLING-CONTENT/libs/sling/replication/install.publish/org.apache.sling.replication.agent.impl.SimpleReplicationAgentFactory-reverse.json b/src/main/resources/SLING-CONTENT/libs/sling/replication/install.publish/org.apache.sling.replication.agent.impl.SimpleReplicationAgentFactory-reverse.json
index 56afbad..595c8ed 100644
--- a/src/main/resources/SLING-CONTENT/libs/sling/replication/install.publish/org.apache.sling.replication.agent.impl.SimpleReplicationAgentFactory-reverse.json
+++ b/src/main/resources/SLING-CONTENT/libs/sling/replication/install.publish/org.apache.sling.replication.agent.impl.SimpleReplicationAgentFactory-reverse.json
@@ -10,6 +10,11 @@
"packageBuilder/servicename=replicationService"
],
+ "packageExporterStrategy" : [
+ "type=privilege",
+ "jcrPrivilege=jcr:read"
+ ],
+
"packageImporter": [
"type=local",
"packageBuilder/type=vlt",
--
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.