jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mdue...@apache.org
Subject svn commit: r792102 - /jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/EventImpl.java
Date Wed, 08 Jul 2009 11:28:04 GMT
Author: mduerig
Date: Wed Jul  8 11:28:03 2009
New Revision: 792102

URL: http://svn.apache.org/viewvc?rev=792102&view=rev
Log:
JCR-2194: EventImpl should implement toString

Modified:
    jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/EventImpl.java

Modified: jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/EventImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/EventImpl.java?rev=792102&r1=792101&r2=792102&view=diff
==============================================================================
--- jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/EventImpl.java
(original)
+++ jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/EventImpl.java
Wed Jul  8 11:28:03 2009
@@ -181,4 +181,19 @@
             return timestamp;
         }
     }
+    
+    public String toString() {
+        return new StringBuffer(getClass().getName())
+            .append("[")
+            .append("eventTypes: ").append(type).append(", ")
+            .append("absPath: ").append(path).append(", ")
+            .append("itemId: ").append(itemId).append(", ")
+            .append("parentId: ").append(parentId).append(", ")
+            .append("primaryNodeTypeName: ").append(primaryNodeTypeName).append(", ")
+            .append("mixinTypeNames: ").append(mixinTypeNames).append(", ")
+            .append("userId").append(userId)
+            .append("]")
+            .toString();
+    }
+    
 }



Mime
View raw message