jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From resc...@apache.org
Subject svn commit: r769825 - in /jackrabbit/trunk: jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/Node.java jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
Date Wed, 29 Apr 2009 16:45:00 GMT
Author: reschke
Date: Wed Apr 29 16:45:00 2009
New Revision: 769825

URL: http://svn.apache.org/viewvc?rev=769825&view=rev
Log:
JCR-2061: add missing methods to o.a.j.api.jsr283.Node, add method stubs in -core.


Modified:
    jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/Node.java
    jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java

Modified: jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/Node.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/Node.java?rev=769825&r1=769824&r2=769825&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/Node.java
(original)
+++ jackrabbit/trunk/jackrabbit-api/src/main/java/org/apache/jackrabbit/api/jsr283/Node.java
Wed Apr 29 16:45:00 2009
@@ -77,6 +77,52 @@
     public PropertyIterator getReferences(String name) throws RepositoryException;
 
     /**
+     * This method returns all <code>WEAKREFERENCE</code> properties that refer
+     * to this node and that are accessible through the current
+     * <code>Session</code>. Equivalent to <code>Node.getWeakReferences(null)</code>.
+     *
+     * @return A <code>PropertyIterator</code>.
+     *
+     * @throws RepositoryException if an error occurs.
+     * @see #getWeakReferences(String).
+     * @since JCR 2.0
+     */
+    public PropertyIterator getWeakReferences() throws RepositoryException;
+
+    /**
+     * This method returns all <code>WEAKREFERENCE</code> properties that refer
+     * to this node, have the specified <code>name</code> and that are
+     * accessible through the current <code>Session</code>.
+     * <p/>
+     * If the <code>name</code> parameter is <code>null</code> then
all
+     * referring <code>WEAKREFERENCE</code> are returned regardless of name.
+     * <p/>
+     * Some implementations may only return properties that have been persisted.
+     * Some may return both properties that have been persisted and those that
+     * have been dispatched but not persisted (for example, those saved within a
+     * transaction but not yet committed) while others implementations may return
+     * these two categories of property as well as properties that are still
+     * pending and not yet dispatched.
+     * <p/>
+     * In implementations that support versioning, this method does not return
+     * properties that are part of the frozen state of a version in version
+     * storage.
+     * <p/>
+     * If this node has no referring properties with the specified name, an
+     * empty iterator is returned.
+     *
+     * @param name name of referring <code>WEAKREFERENCE</code> properties to
be
+     * returned; if <code>null</code> then all referring
+     * <code>WEAKREFERENCE</code>s are returned.
+     *
+     * @return A <code>PropertyIterator</code>.
+     *
+     * @throws RepositoryException if an error occurs.
+     * @since JCR 2.0
+     */
+    public PropertyIterator getWeakReferences(String name) throws RepositoryException;
+
+    /**
      * Changes the primary node type of this node to <code>nodeTypeName</code>.
      * Also immediately changes this node's <code>jcr:primaryType</code> property
      * appropriately. Semantically, the new node type may take effect

Modified: jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java?rev=769825&r1=769824&r2=769825&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-core/src/main/java/org/apache/jackrabbit/core/NodeImpl.java
Wed Apr 29 16:45:00 2009
@@ -4574,6 +4574,16 @@
         }
     }
 
+    public PropertyIterator getWeakReferences() throws RepositoryException {
+        // TODO
+        throw new RuntimeException("Not implemented yet, see JCR-2061");
+    }
+
+    public PropertyIterator getWeakReferences(String name) throws RepositoryException {
+        // TODO
+        throw new RuntimeException("Not implemented yet, see JCR-2061");
+    }
+
     /**
      * @see org.apache.jackrabbit.api.jsr283.Node#setPrimaryType(String) 
      * @since JCR 2.0



Mime
View raw message