You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jackrabbit.apache.org by re...@apache.org on 2025/04/03 08:43:09 UTC

(jackrabbit) 01/01: JCR-5137: Update JCR commons to implement current jackrabbit-api

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

reschke pushed a commit to branch JCR-5137
in repository https://gitbox.apache.org/repos/asf/jackrabbit.git

commit f513a86e500d97e6f5b240635dd55a26702dc4df
Author: Julian Reschke <re...@apache.org>
AuthorDate: Thu Apr 3 09:42:53 2025 +0100

    JCR-5137: Update JCR commons to implement current jackrabbit-api
---
 .../org/apache/jackrabbit/core/SessionImpl.java    | 10 +++++++
 .../core/security/user/UserImporterTest.java       | 10 +++++++
 .../commons/GenericRepositoryFactory.java          | 32 ----------------------
 .../apache/jackrabbit/commons/package-info.java    |  2 +-
 jackrabbit-parent/pom.xml                          |  2 +-
 5 files changed, 22 insertions(+), 34 deletions(-)

diff --git a/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SessionImpl.java b/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SessionImpl.java
index 7a6dfd59a..323bfc222 100644
--- a/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SessionImpl.java
+++ b/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/SessionImpl.java
@@ -738,6 +738,16 @@ public class SessionImpl extends AbstractSession
         }
     }
 
+    @Override
+    public String getExpandedName(Item item) throws RepositoryException {
+        throw new RepositoryException("see JCR-5137");
+    }
+
+    @Override
+    public String getExpandedPath(Item item) throws RepositoryException {
+        throw new RepositoryException("see JCR-5137");
+    }
+
     //--------------------------------------------------------------< Session >
     /**
      * {@inheritDoc}
diff --git a/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/user/UserImporterTest.java b/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/user/UserImporterTest.java
index fc395505c..25ad0344b 100644
--- a/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/user/UserImporterTest.java
+++ b/jackrabbit-core/src/test/java/org/apache/jackrabbit/core/security/user/UserImporterTest.java
@@ -1671,6 +1671,16 @@ public class UserImporterTest extends AbstractJCRTest {
             return null;
         }
 
+        @Override
+        public String getExpandedName(Item item) throws RepositoryException {
+            throw new RepositoryException("see JCR-5137");
+        }
+
+        @Override
+        public String getExpandedPath(Item item) throws RepositoryException {
+            throw new RepositoryException("see JCR-5137");
+        }
+
         public Repository getRepository() {
             return null;
         }
diff --git a/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/GenericRepositoryFactory.java b/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/GenericRepositoryFactory.java
deleted file mode 100644
index cd4d007f4..000000000
--- a/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/GenericRepositoryFactory.java
+++ /dev/null
@@ -1,32 +0,0 @@
-/*
- * 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.jackrabbit.commons;
-
-/**
- * Renamed to {@link JndiRepositoryFactory}. This class will be removed
- * in Jackrabbit 2.0. Please use the {@link JcrUtils#REPOSITORY_URI} constant
- * instead of the {@link #URI} constant in this class.
- */
-@Deprecated
-public class GenericRepositoryFactory extends JndiRepositoryFactory {
-
-    /**
-     * Please use {@link JcrUtils#REPOSITORY_URI} instead.
-     */
-    public static final String URI = JcrUtils.REPOSITORY_URI;
-
-}
diff --git a/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/package-info.java b/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/package-info.java
index 42b3b4866..ba57ce3e6 100644
--- a/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/package-info.java
+++ b/jackrabbit-jcr-commons/src/main/java/org/apache/jackrabbit/commons/package-info.java
@@ -14,5 +14,5 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-@org.osgi.annotation.versioning.Version("2.4.0")
+@org.osgi.annotation.versioning.Version("3.0.0")
 package org.apache.jackrabbit.commons;
diff --git a/jackrabbit-parent/pom.xml b/jackrabbit-parent/pom.xml
index b4ec6ece5..9d77f7ad8 100644
--- a/jackrabbit-parent/pom.xml
+++ b/jackrabbit-parent/pom.xml
@@ -55,7 +55,7 @@
     <test.opts.modules />
     <test.opts>${test.opts.modules} ${test.opts.coverage} ${test.opts.memory} -enableassertions</test.opts>
     <!-- OAK version used in componenents that *implement* oak-jackrabbit-api -->
-    <oak-jackrabbit-api.version.implemented>1.76.0</oak-jackrabbit-api.version.implemented>
+    <oak-jackrabbit-api.version.implemented>1.77-SNAPSHOT</oak-jackrabbit-api.version.implemented>
     <!-- OAK version used in componenents that *use* oak-jackrabbit-api -->
     <oak-jackrabbit-api.version.used>1.22.22</oak-jackrabbit-api.version.used>
     <jetty.version>9.4.56.v20240826</jetty.version>