incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r918645 - /sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ResourceResolverFactory.java
Date Wed, 03 Mar 2010 19:22:13 GMT
Author: cziegeler
Date: Wed Mar  3 19:22:13 2010
New Revision: 918645

URL: http://svn.apache.org/viewvc?rev=918645&view=rev
Log:
SLING-1262 : First attempt of a resource resolver factory.

Added:
    sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ResourceResolverFactory.java
  (with props)

Added: sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ResourceResolverFactory.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ResourceResolverFactory.java?rev=918645&view=auto
==============================================================================
--- sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ResourceResolverFactory.java
(added)
+++ sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ResourceResolverFactory.java
Wed Mar  3 19:22:13 2010
@@ -0,0 +1,44 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.sling.api.resource;
+
+import java.util.Map;
+
+/**
+ * The <code>ResourceResolverFactory</code> defines the service API to
+ * get and create <code>ResourceResolver</code>s.
+ * <p>
+ *
+ * WORK IN PROGRESS - see SLING-1262
+ */
+public interface ResourceResolverFactory {
+
+    /** If this property is set in the authentication information which is passed
+     * into {@link #getResourceResolver(Map)} or {@link #getAdministrativeResourceResolver(Map)}
+     * then after a successful authentication attempt, a sudo to the provided
+     * user id is tried.
+     */
+    String SUDO_USER_ID = "sudo.user.id";
+
+    ResourceResolver getResourceResolver(Map<String, Object> authenticationInfo);
+
+    ResourceResolver getAdministrativeResourceResolver(Map<String, Object> authenticationInfo);
+
+    void dispose(ResourceResolver resolver);
+}

Propchange: sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ResourceResolverFactory.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ResourceResolverFactory.java
------------------------------------------------------------------------------
    svn:keywords = author date id revision rev url

Propchange: sling/trunk/bundles/api/src/main/java/org/apache/sling/api/resource/ResourceResolverFactory.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message