You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by bd...@apache.org on 2009/09/04 15:24:04 UTC

svn commit: r811385 - /sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrNodeResource.java

Author: bdelacretaz
Date: Fri Sep  4 13:24:04 2009
New Revision: 811385

URL: http://svn.apache.org/viewvc?rev=811385&view=rev
Log:
SLING-1100 - RequestProgressTracker info now includes resource supertype

Modified:
    sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrNodeResource.java

Modified: sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrNodeResource.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrNodeResource.java?rev=811385&r1=811384&r2=811385&view=diff
==============================================================================
--- sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrNodeResource.java (original)
+++ sling/trunk/bundles/jcr/resource/src/main/java/org/apache/sling/jcr/resource/internal/helper/jcr/JcrNodeResource.java Fri Sep  4 13:24:04 2009
@@ -42,6 +42,7 @@
 import org.apache.sling.api.resource.Resource;
 import org.apache.sling.api.resource.ResourceMetadata;
 import org.apache.sling.api.resource.ResourceResolver;
+import org.apache.sling.api.resource.ResourceUtil;
 import org.apache.sling.api.resource.ValueMap;
 import org.apache.sling.jcr.resource.JcrModifiablePropertyMap;
 import org.apache.sling.jcr.resource.JcrPropertyMap;
@@ -131,7 +132,9 @@
     }
 
     public String toString() {
-        return getClass().getSimpleName() + ", type=" + getResourceType()
+        return getClass().getSimpleName() 
+        	+ ", type=" + getResourceType()
+        	+ ", superType=" + ResourceUtil.findResourceSuperType(this) 
             + ", path=" + getPath();
     }