chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dpfis...@apache.org
Subject svn commit: r932306 - /incubator/chemistry/trunk/chemistry/chemistry-jcr/src/main/java/org/apache/chemistry/jcr/JcrConnection.java
Date Fri, 09 Apr 2010 09:00:29 GMT
Author: dpfister
Date: Fri Apr  9 09:00:29 2010
New Revision: 932306

URL: http://svn.apache.org/viewvc?rev=932306&view=rev
Log:
CMIS-189 - getName() always returns null items in query result

Modified:
    incubator/chemistry/trunk/chemistry/chemistry-jcr/src/main/java/org/apache/chemistry/jcr/JcrConnection.java

Modified: incubator/chemistry/trunk/chemistry/chemistry-jcr/src/main/java/org/apache/chemistry/jcr/JcrConnection.java
URL: http://svn.apache.org/viewvc/incubator/chemistry/trunk/chemistry/chemistry-jcr/src/main/java/org/apache/chemistry/jcr/JcrConnection.java?rev=932306&r1=932305&r2=932306&view=diff
==============================================================================
--- incubator/chemistry/trunk/chemistry/chemistry-jcr/src/main/java/org/apache/chemistry/jcr/JcrConnection.java
(original)
+++ incubator/chemistry/trunk/chemistry/chemistry-jcr/src/main/java/org/apache/chemistry/jcr/JcrConnection.java
Fri Apr  9 09:00:29 2010
@@ -254,8 +254,7 @@ class JcrConnection implements Connectio
                 null, new Paging(Integer.MAX_VALUE, 0));
         List<CMISObject> objects = new ArrayList<CMISObject>(entries.size());
         for (ObjectEntry entry : entries) {
-            // cast entries, they are all JcrFolder or JcrDocument
-            objects.add((CMISObject) entry);
+            objects.add(JcrObject.construct((JcrObjectEntry) entry));
         }
         return objects;
     }
@@ -826,7 +825,9 @@ class JcrConnection implements Connectio
                 if (JcrCmisMap.isInternal(child)) {
                     continue;
                 }
-                result.add(new JcrObjectEntry(child, this));
+                JcrObjectEntry entry = new JcrObjectEntry(child, this);
+                entry.loadValues();
+                result.add(entry);
             }
             result.setHasMoreItems(iter.hasNext());
             result.setNumItems((int) iter.getSize());



Mime
View raw message