directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pamarce...@apache.org
Subject svn commit: r1026323 - /directory/studio/branches/studio-connection-refactoring/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
Date Fri, 22 Oct 2010 13:41:23 GMT
Author: pamarcelot
Date: Fri Oct 22 13:41:23 2010
New Revision: 1026323

URL: http://svn.apache.org/viewvc?rev=1026323&view=rev
Log:
Added modify logging information for create, rename and delete operations.

Modified:
    directory/studio/branches/studio-connection-refactoring/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java

Modified: directory/studio/branches/studio-connection-refactoring/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
URL: http://svn.apache.org/viewvc/directory/studio/branches/studio-connection-refactoring/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java?rev=1026323&r1=1026322&r2=1026323&view=diff
==============================================================================
--- directory/studio/branches/studio-connection-refactoring/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
(original)
+++ directory/studio/branches/studio-connection-refactoring/plugins/connection.core/src/main/java/org/apache/directory/studio/connection/core/io/api/DirectoryApiConnectionWrapper.java
Fri Oct 22 13:41:23 2010
@@ -688,6 +688,17 @@ public class DirectoryApiConnectionWrapp
                 {
                     exception = e;
                 }
+
+                NamingException ne = null;
+                if ( exception != null )
+                {
+                    ne = new NamingException( exception.getMessage() );
+                }
+
+                for ( IJndiLogger logger : getJndiLoggers() )
+                {
+                    logger.logChangetypeModDn( connection, oldDn, newDn, deleteOldRdn, controls,
ne );
+                }
             }
         };
 
@@ -742,6 +753,17 @@ public class DirectoryApiConnectionWrapp
                 {
                     exception = e;
                 }
+
+                NamingException ne = null;
+                if ( exception != null )
+                {
+                    ne = new NamingException( exception.getMessage() );
+                }
+
+                for ( IJndiLogger logger : getJndiLoggers() )
+                {
+                    logger.logChangetypeAdd( connection, dn, attributes, controls, ne );
+                }
             }
         };
 
@@ -795,6 +817,17 @@ public class DirectoryApiConnectionWrapp
                 {
                     exception = e;
                 }
+
+                NamingException ne = null;
+                if ( exception != null )
+                {
+                    ne = new NamingException( exception.getMessage() );
+                }
+
+                for ( IJndiLogger logger : getJndiLoggers() )
+                {
+                    logger.logChangetypeDelete( connection, dn, controls, ne );
+                }
             }
         };
 



Mime
View raw message