directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r675973 - /directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/ChangeLogEvent.java
Date Fri, 11 Jul 2008 14:54:34 GMT
Author: kayyagari
Date: Fri Jul 11 07:54:33 2008
New Revision: 675973

URL: http://svn.apache.org/viewvc?rev=675973&view=rev
Log:
added toString() method

Modified:
    directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/ChangeLogEvent.java

Modified: directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/ChangeLogEvent.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/ChangeLogEvent.java?rev=675973&r1=675972&r2=675973&view=diff
==============================================================================
--- directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/ChangeLogEvent.java
(original)
+++ directory/apacheds/branches/bigbang/core/src/main/java/org/apache/directory/server/core/changelog/ChangeLogEvent.java
Fri Jul 11 07:54:33 2008
@@ -106,4 +106,35 @@
     {
         return zuluTime;
     }
+
+
+    @Override
+    public String toString()
+    {
+        StringBuilder sb = new StringBuilder();
+        sb.append( "ChangeLogEvent { " );
+        
+        sb.append( "principal=" )
+        .append( getCommitterPrincipal() )
+        .append( ", " );
+        
+        sb.append( "zuluTime=" )
+          .append( getZuluTime() )
+          .append( ", " );
+        
+        sb.append( "revision=" )
+        .append( getRevision() )
+        .append( ", " );
+        
+        sb.append( "\nforwardLdif=" )
+        .append( getForwardLdif() )
+        .append( ", " );
+        
+        sb.append( "\nreverseLdif=" )
+        .append( getReverseLdif() );
+        
+        sb.append( " }" );
+        
+        return sb.toString();
+    }
 }



Mime
View raw message