You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by pa...@apache.org on 2010/10/22 15:41:23 UTC
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
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 );
+ }
}
};