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:33:59 UTC

[sling-org-apache-sling-event-dea] 03/05: SLING-6497 Use ServiceUserMapped to ensure presence of service user mapping

This is an automated email from the ASF dual-hosted git repository.

rombert pushed a commit to annotated tag org.apache.sling.event.dea-1.1.2
in repository https://gitbox.apache.org/repos/asf/sling-org-apache-sling-event-dea.git

commit 8f2b0d4e11d941122c3f57d4f1d3dfeb435810a5
Author: Oliver Lietz <ol...@apache.org>
AuthorDate: Sat Jan 28 08:23:58 2017 +0000

    SLING-6497 Use ServiceUserMapped to ensure presence of service user mapping
    
    git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/bundles/extensions/dea@1780638 13f79535-47bb-0310-9956-ffa450edef68
---
 pom.xml                                                             | 6 ++++++
 .../org/apache/sling/event/dea/impl/DistributedEventAdminImpl.java  | 4 ++++
 2 files changed, 10 insertions(+)

diff --git a/pom.xml b/pom.xml
index 88d27e2..dcba8b9 100644
--- a/pom.xml
+++ b/pom.xml
@@ -99,6 +99,12 @@
             <version>2.11.0</version>
             <scope>provided</scope>
         </dependency>
+        <dependency>
+            <groupId>org.apache.sling</groupId>
+            <artifactId>org.apache.sling.serviceusermapper</artifactId>
+            <version>1.2.0</version>
+            <scope>provided</scope>
+        </dependency>
       <!-- Testing -->
         <dependency>
             <groupId>junit</groupId>
diff --git a/src/main/java/org/apache/sling/event/dea/impl/DistributedEventAdminImpl.java b/src/main/java/org/apache/sling/event/dea/impl/DistributedEventAdminImpl.java
index 27a811c..809b0ba 100644
--- a/src/main/java/org/apache/sling/event/dea/impl/DistributedEventAdminImpl.java
+++ b/src/main/java/org/apache/sling/event/dea/impl/DistributedEventAdminImpl.java
@@ -19,6 +19,7 @@
 package org.apache.sling.event.dea.impl;
 
 import org.apache.sling.api.resource.ResourceResolverFactory;
+import org.apache.sling.serviceusermapping.ServiceUserMapped;
 import org.apache.sling.settings.SlingSettingsService;
 import org.osgi.framework.BundleContext;
 import org.osgi.service.component.annotations.Activate;
@@ -55,6 +56,9 @@ public class DistributedEventAdminImpl {
     @Reference
     private EventAdmin eventAdmin;
 
+    @Reference
+    private ServiceUserMapped serviceUserMapped;
+
     /** Default repository path. */
     public static final String DEFAULT_REPOSITORY_PATH = "/var/eventing/distribution";
 

-- 
To stop receiving notification emails like this one, please contact
"commits@sling.apache.org" <co...@sling.apache.org>.