directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r477299 - /directory/trunks/apacheds/server-tools/src/main/java/org/apache/directory/server/tools/commands/importcmd/ImportCommandExecutor.java
Date Mon, 20 Nov 2006 19:29:48 GMT
Author: elecharny
Date: Mon Nov 20 11:29:47 2006
New Revision: 477299

URL: http://svn.apache.org/viewvc?view=rev&rev=477299
Log:
Changed the ResultCodeEnum to become an enum instead of an subclass
of ValuedEnum (Java 5 migration)

Modified:
    directory/trunks/apacheds/server-tools/src/main/java/org/apache/directory/server/tools/commands/importcmd/ImportCommandExecutor.java

Modified: directory/trunks/apacheds/server-tools/src/main/java/org/apache/directory/server/tools/commands/importcmd/ImportCommandExecutor.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/server-tools/src/main/java/org/apache/directory/server/tools/commands/importcmd/ImportCommandExecutor.java?view=diff&rev=477299&r1=477298&r2=477299
==============================================================================
--- directory/trunks/apacheds/server-tools/src/main/java/org/apache/directory/server/tools/commands/importcmd/ImportCommandExecutor.java
(original)
+++ directory/trunks/apacheds/server-tools/src/main/java/org/apache/directory/server/tools/commands/importcmd/ImportCommandExecutor.java
Mon Nov 20 11:29:47 2006
@@ -71,6 +71,7 @@
 import org.apache.directory.shared.ldap.codec.util.LdapResultEnum;
 import org.apache.directory.shared.ldap.ldif.Entry;
 import org.apache.directory.shared.ldap.ldif.LdifReader;
+import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.name.LdapDN;
 import org.apache.directory.shared.ldap.name.Rdn;
 import org.apache.directory.shared.ldap.util.StringTools;
@@ -179,7 +180,7 @@
                         BindResponse resp = ( ( LdapMessageContainer ) ldapMessageContainer
).getLdapMessage()
                             .getBindResponse();
 
-                        if ( resp.getLdapResult().getResultCode() != 0 )
+                        if ( resp.getLdapResult().getResultCode() != ResultCodeEnum.SUCCESS
)
                         {
                             notifyOutputListener( "Error : " + resp.getLdapResult().getErrorMessage()
);
                         }
@@ -189,7 +190,7 @@
                         ExtendedResponse resp = ( ( LdapMessageContainer ) ldapMessageContainer
).getLdapMessage()
                             .getExtendedResponse();
 
-                        if ( resp.getLdapResult().getResultCode() != 0 )
+                        if ( resp.getLdapResult().getResultCode() != ResultCodeEnum.SUCCESS
)
                         {
                             notifyOutputListener( "Error : " + resp.getLdapResult().getErrorMessage()
);
                         }
@@ -267,7 +268,7 @@
 
         LdapResult result = response.getAddResponse().getLdapResult();
 
-        if ( result.getResultCode() == LdapResultEnum.SUCCESS )
+        if ( result.getResultCode() == ResultCodeEnum.SUCCESS )
         {
             if ( isDebugEnabled() )
             {
@@ -327,7 +328,7 @@
 
         LdapResult result = response.getDelResponse().getLdapResult();
 
-        if ( result.getResultCode() == LdapResultEnum.SUCCESS )
+        if ( result.getResultCode() == ResultCodeEnum.SUCCESS )
         {
             if ( isDebugEnabled() )
             {
@@ -393,7 +394,7 @@
 
         LdapResult result = response.getModifyDNResponse().getLdapResult();
 
-        if ( result.getResultCode() == LdapResultEnum.SUCCESS )
+        if ( result.getResultCode() == ResultCodeEnum.SUCCESS )
         {
             if ( isDebugEnabled() )
             {
@@ -486,7 +487,7 @@
 
         LdapResult result = response.getModifyResponse().getLdapResult();
 
-        if ( result.getResultCode() == LdapResultEnum.SUCCESS )
+        if ( result.getResultCode() == ResultCodeEnum.SUCCESS )
         {
             if ( isDebugEnabled() )
             {
@@ -578,7 +579,7 @@
 
         LdapResult result = response.getBindResponse().getLdapResult();
 
-        if ( result.getResultCode() == LdapResultEnum.SUCCESS )
+        if ( result.getResultCode() == ResultCodeEnum.SUCCESS )
         {
             if ( isDebugEnabled() )
             {



Mime
View raw message