[exo-jcr-commits] exo-jcr SVN: r4678 - in jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr: impl/core and 1 other directory.
do-not-reply at jboss.org
do-not-reply at jboss.org
Mon Jul 25 05:18:04 EDT 2011
Author: tolusha
Date: 2011-07-25 05:18:04 -0400 (Mon, 25 Jul 2011)
New Revision: 4678
Modified:
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/core/ExtendedNode.java
jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/NodeImpl.java
Log:
EXOJCR-267: Implement Lazy Loading mechanism for the method Node.getNodes
Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/core/ExtendedNode.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/core/ExtendedNode.java 2011-07-22 08:50:28 UTC (rev 4677)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/core/ExtendedNode.java 2011-07-25 09:18:04 UTC (rev 4678)
@@ -27,6 +27,7 @@
import javax.jcr.AccessDeniedException;
import javax.jcr.InvalidItemStateException;
import javax.jcr.Node;
+import javax.jcr.NodeIterator;
import javax.jcr.RepositoryException;
import javax.jcr.UnsupportedRepositoryOperationException;
import javax.jcr.lock.Lock;
@@ -118,4 +119,15 @@
*/
Lock lock(boolean isDeep, long timeOut) throws UnsupportedRepositoryOperationException, LockException,
AccessDeniedException, InvalidItemStateException, RepositoryException;
+
+ /**
+ * Returns a <code>NodeIterator</code> over all child <code>Node</code>s of
+ * this <code>Node</code>. Does <i>not</i> include properties of this
+ * <code>Node</code>. If this node has no child nodes, then an empty iterator is returned.
+ *
+ * @return A <code>NodeIterator</code> over all child <code>Node</code>s of
+ * this <code>Node</code>.
+ * @throws RepositoryException If an error occurs.
+ */
+ public NodeIterator getNodesLazily() throws RepositoryException;
}
Modified: jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/NodeImpl.java
===================================================================
--- jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/NodeImpl.java 2011-07-22 08:50:28 UTC (rev 4677)
+++ jcr/trunk/exo.jcr.component.core/src/main/java/org/exoplatform/services/jcr/impl/core/NodeImpl.java 2011-07-25 09:18:04 UTC (rev 4678)
@@ -1084,6 +1084,14 @@
/**
* {@inheritDoc}
*/
+ public NodeIterator getNodesLazily() throws RepositoryException
+ {
+ return null;
+ }
+
+ /**
+ * {@inheritDoc}
+ */
public NodeIterator getNodes(String namePattern) throws RepositoryException
{
More information about the exo-jcr-commits
mailing list