incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r1558732 - /sling/trunk/bundles/resourceaccesssecurity/src/main/java/org/apache/sling/resourceaccesssecurity/impl/Activator.java
Date Thu, 16 Jan 2014 10:01:48 GMT
Author: cziegeler
Date: Thu Jan 16 10:01:48 2014
New Revision: 1558732

URL: http://svn.apache.org/r1558732
Log:
SLING-2698 - resource access security service for resource providers. Distinguish between
context application and provider

Modified:
    sling/trunk/bundles/resourceaccesssecurity/src/main/java/org/apache/sling/resourceaccesssecurity/impl/Activator.java

Modified: sling/trunk/bundles/resourceaccesssecurity/src/main/java/org/apache/sling/resourceaccesssecurity/impl/Activator.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/resourceaccesssecurity/src/main/java/org/apache/sling/resourceaccesssecurity/impl/Activator.java?rev=1558732&r1=1558731&r2=1558732&view=diff
==============================================================================
--- sling/trunk/bundles/resourceaccesssecurity/src/main/java/org/apache/sling/resourceaccesssecurity/impl/Activator.java
(original)
+++ sling/trunk/bundles/resourceaccesssecurity/src/main/java/org/apache/sling/resourceaccesssecurity/impl/Activator.java
Thu Jan 16 10:01:48 2014
@@ -46,12 +46,14 @@ public class Activator implements Bundle
 
         final Dictionary<String, Object> appProps = new Hashtable<String, Object>();
         appProps.put(Constants.SERVICE_DESCRIPTION, "Apache Sling Application Resource Access
Security");
+        appProps.put(ResourceAccessSecurity.CONTEXT, ResourceAccessSecurity.APPLICATION_CONTEXT);
 
         this.appReg = context.registerService(ResourceAccessSecurity.class.getName(),
                 new ResourceAccessSecurityImpl(this.resourceAccessGateTracker, true), appProps);
 
         final Dictionary<String, Object> provProps = new Hashtable<String, Object>();
         provProps.put(Constants.SERVICE_DESCRIPTION, "Apache Sling Provider Resource Access
Security");
+        provProps.put(ResourceAccessSecurity.CONTEXT, ResourceAccessSecurity.PROVIDER_CONTEXT);
 
         this.provReg = context.registerService(ResourceAccessSecurity.class.getName(),
                 new ResourceAccessSecurityImpl(this.resourceAccessGateTracker, false), provProps);



Mime
View raw message