jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fmesc...@apache.org
Subject svn commit: r902726 - in /jackrabbit/sandbox/jackrabbit2-bundle/jackrabbit-api: ./ pom.xml src/main/java/org/apache/jackrabbit/api/JackrabbitRepository.java
Date Mon, 25 Jan 2010 08:45:37 GMT
Author: fmeschbe
Date: Mon Jan 25 08:45:37 2010
New Revision: 902726

URL: http://svn.apache.org/viewvc?rev=902726&view=rev
Log:
* Add Jackrabbit API 2.0 for extension
* Fix parent link to 2.0
* Extend JackrabbitRepository with former SlingRepository methods

Added:
    jackrabbit/sandbox/jackrabbit2-bundle/jackrabbit-api/   (props changed)
      - copied from r902640, jackrabbit/branches/2.0/jackrabbit-api/
Modified:
    jackrabbit/sandbox/jackrabbit2-bundle/jackrabbit-api/pom.xml
    jackrabbit/sandbox/jackrabbit2-bundle/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/JackrabbitRepository.java

Propchange: jackrabbit/sandbox/jackrabbit2-bundle/jackrabbit-api/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Mon Jan 25 08:45:37 2010
@@ -0,0 +1,5 @@
+*.iml
+*.ipr
+*.iws
+target
+.*

Propchange: jackrabbit/sandbox/jackrabbit2-bundle/jackrabbit-api/
------------------------------------------------------------------------------
--- svn:mergeinfo (added)
+++ svn:mergeinfo Mon Jan 25 08:45:37 2010
@@ -0,0 +1,5 @@
+/jackrabbit/branches/1.5/jackrabbit-api:794012,794100,794102
+/jackrabbit/sandbox/JCR-1456/jackrabbit-api:774917-886178
+/jackrabbit/sandbox/JCR-2170/jackrabbit-api:812417-816332
+/jackrabbit/sandbox/tripod-JCR-2209/jackrabbit-api:795441-795863
+/jackrabbit/trunk/jackrabbit-api:891595,891629,892253,892263,894150-894151,896408,896513,896532,896857,896870,896876,896908,896940,896942-896943,896969,896977,897071,897836,897842,897858,897935,897983,897992-897993,897996,898002,898042,898267,898325,898540,898677,898699,898701,898715,898872,899102,899181,899391,899393-899394,899583,899594,899643,900305,900310,900314,900453,900702,900736,900762-900763,900767,900782,901095,901122,901139,901144,901170,901176,901191,901193,901196,901216,901228,901285,902058,902062

Modified: jackrabbit/sandbox/jackrabbit2-bundle/jackrabbit-api/pom.xml
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit2-bundle/jackrabbit-api/pom.xml?rev=902726&r1=902640&r2=902726&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit2-bundle/jackrabbit-api/pom.xml (original)
+++ jackrabbit/sandbox/jackrabbit2-bundle/jackrabbit-api/pom.xml Mon Jan 25 08:45:37 2010
@@ -26,10 +26,11 @@
   <parent>
     <groupId>org.apache.jackrabbit</groupId>
     <artifactId>jackrabbit-parent</artifactId>
-    <version>2.0.1-SNAPSHOT</version>
+    <version>2.0.0</version>
     <relativePath>../jackrabbit-parent/pom.xml</relativePath>
   </parent>
   <artifactId>jackrabbit-api</artifactId>
+  <version>2.0.1.bundle-SNAPSHOT</version>
   <name>Apache Jackrabbit API</name>
   <description>Jacrabbit-specific extensions to the JCR API</description>
   <packaging>bundle</packaging>

Modified: jackrabbit/sandbox/jackrabbit2-bundle/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/JackrabbitRepository.java
URL: http://svn.apache.org/viewvc/jackrabbit/sandbox/jackrabbit2-bundle/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/JackrabbitRepository.java?rev=902726&r1=902640&r2=902726&view=diff
==============================================================================
--- jackrabbit/sandbox/jackrabbit2-bundle/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/JackrabbitRepository.java
(original)
+++ jackrabbit/sandbox/jackrabbit2-bundle/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/JackrabbitRepository.java
Mon Jan 25 08:45:37 2010
@@ -16,7 +16,11 @@
  */
 package org.apache.jackrabbit.api;
 
+import javax.jcr.LoginException;
+import javax.jcr.NoSuchWorkspaceException;
 import javax.jcr.Repository;
+import javax.jcr.RepositoryException;
+import javax.jcr.Session;
 
 /**
  * The Jackrabbit repository interface. This interface contains the
@@ -36,4 +40,35 @@
      */
     void shutdown();
 
+    /**
+     * Returns the default workspace used for login.
+     *
+     * @return null if the configured default workspace name is empty
+     */
+    String getDefaultWorkspace();
+
+    /**
+     * Returns a session to the default workspace which has administrative
+     * powers.
+     * <p>
+     * <b><i>NOTE: This method is intended for use by infrastructure bundles
to
+     * access the repository and provide general services. This method MUST not
+     * be used to handle client requests of whatever kinds. To handle client
+     * requests a regular authenticated session retrieved through
+     * {@link #login(javax.jcr.Credentials, String)} or
+     * {@link Session#impersonate(javax.jcr.Credentials)} must be used.</i></b>
+     *
+     * @param workspace The name of the workspace to which to get an
+     *            administrative session. If <code>null</code> the
+     *            {@link #getDefaultWorkspace()} default workspace is assumed.
+     * @return a valid session for the user to access the repository.
+     * @throws LoginException if authentication or authorization for the
+     *             specified workspace fails.
+     * @throws NoSuchWorkspaceException if the specified
+     *             <code>workspaceName</code> is not recognized.
+     * @throws RepositoryException if another error occurs.
+     */
+    Session loginAdministrative(String workspace) throws LoginException,
+            NoSuchWorkspaceException, RepositoryException;
+
 }



Mime
View raw message