jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d.@apache.org
Subject svn commit: r1700941 - /jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/JackrabbitSession.java
Date Thu, 03 Sep 2015 07:45:13 GMT
Author: dj
Date: Thu Sep  3 07:45:13 2015
New Revision: 1700941

URL: http://svn.apache.org/r1700941
Log:
JCR-3870 : Export SessionImpl#getItemOrNull in JackrabbitSession

Modified:
    jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/JackrabbitSession.java

Modified: jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/JackrabbitSession.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/JackrabbitSession.java?rev=1700941&r1=1700940&r2=1700941&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/JackrabbitSession.java
(original)
+++ jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/JackrabbitSession.java
Thu Sep  3 07:45:13 2015
@@ -20,6 +20,9 @@ import org.apache.jackrabbit.api.securit
 import org.apache.jackrabbit.api.security.principal.PrincipalManager;
 
 import javax.annotation.Nonnull;
+import javax.jcr.Item;
+import javax.jcr.Node;
+import javax.jcr.Property;
 import javax.jcr.Session;
 import javax.jcr.AccessDeniedException;
 import javax.jcr.RepositoryException;
@@ -214,4 +217,38 @@ public interface JackrabbitSession exten
      */
     UserManager getUserManager() throws AccessDeniedException, UnsupportedRepositoryOperationException,
RepositoryException;
 
+    /**
+     * Returns the node at the specified absolute path in the workspace. If no
+     * such node exists, then it returns the property at the specified path.
+     * If no such property exists, then it return {@code null}.
+     *
+     * @param absPath An absolute path.
+     * @return the specified {@code Item} or {@code null}.
+     * @throws RepositoryException if another error occurs.
+     * @since 2.10.2
+     */
+    Item getItemOrNull(final String absPath) throws RepositoryException;
+
+    /**
+     * Returns the property at the specified absolute path in the workspace or
+     * {@code null} if no such node exists.
+     *
+     * @param absPath An absolute path.
+     * @return the specified {@code Property} or {@code null}.
+     * @throws RepositoryException if another error occurs.
+     * @since 2.10.2
+     */
+    Property getPropertyOrNull(final String absPath) throws RepositoryException;
+
+    /**
+     * Returns the node at the specified absolute path in the workspace or
+     * {@code null} if no such node exists.
+     *
+     * @param absPath An absolute path.
+     * @return the specified {@code Node} or {@code null}.
+     * @throws RepositoryException If another error occurs.
+     * @since 2.10.2
+     */
+    Node getNodeOrNull(final String absPath) throws RepositoryException;
+
 }
\ No newline at end of file



Mime
View raw message