directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r420145 - /directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/exception/ExceptionService.java
Date Sat, 08 Jul 2006 15:48:24 GMT
Author: elecharny
Date: Sat Jul  8 08:48:24 2006
New Revision: 420145

URL: http://svn.apache.org/viewvc?rev=420145&view=rev
Log: (empty)

Modified:
    directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/exception/ExceptionService.java

Modified: directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/exception/ExceptionService.java
URL: http://svn.apache.org/viewvc/directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/exception/ExceptionService.java?rev=420145&r1=420144&r2=420145&view=diff
==============================================================================
--- directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/exception/ExceptionService.java
(original)
+++ directory/branches/apacheds/optimization/core/src/main/java/org/apache/directory/server/core/exception/ExceptionService.java
Sat Jul  8 08:48:24 2006
@@ -87,7 +87,7 @@
         if ( nextInterceptor.hasEntry( normName ) )
         {
             NamingException ne = new LdapNameAlreadyBoundException( normName.toString() +
" already exists!" );
-            ne.setResolvedName( new LdapDN( normName.toUpName() ) );
+            ne.setResolvedName( new LdapDN( normName.getUpName() ) );
             throw ne;
         }
 
@@ -103,19 +103,19 @@
         }
         catch ( Exception e )
         {
-            LdapNameNotFoundException e2 = new LdapNameNotFoundException( "Parent " + parentDn.toUpName()

+            LdapNameNotFoundException e2 = new LdapNameNotFoundException( "Parent " + parentDn.getUpName()

                 + " not found" );
-            e2.setResolvedName( new LdapDN( nexus.getMatchedName( parentDn ).toUpName() )
);
+            e2.setResolvedName( new LdapDN( nexus.getMatchedName( parentDn ).getUpName()
) );
             throw e2;
         }
         
         Attribute objectClass = attrs.get( "objectClass" );
         if ( objectClass.contains( "alias" ) )
         {
-            String msg = "Attempt to add entry to alias '" + normName.toUpName() + "' not
allowed.";
+            String msg = "Attempt to add entry to alias '" + normName.getUpName() + "' not
allowed.";
             ResultCodeEnum rc = ResultCodeEnum.ALIASPROBLEM;
             NamingException e = new LdapNamingException( msg, rc );
-            e.setResolvedName( new LdapDN( parentDn.toUpName() ) );
+            e.setResolvedName( new LdapDN( parentDn.getUpName() ) );
             throw e;
         }
 
@@ -145,7 +145,7 @@
         if ( hasChildren )
         {
             LdapContextNotEmptyException e = new LdapContextNotEmptyException();
-            e.setResolvedName( new LdapDN( name.toUpName() ) );
+            e.setResolvedName( new LdapDN( name.getUpName() ) );
             throw e;
         }
 
@@ -280,8 +280,8 @@
         if ( nextInterceptor.hasEntry( newDn ) )
         {
             LdapNameAlreadyBoundException e;
-            e = new LdapNameAlreadyBoundException( "target entry " + newDn.toUpName() + "
already exists!" );
-            e.setResolvedName( new LdapDN( newDn.toUpName() ) );
+            e = new LdapNameAlreadyBoundException( "target entry " + newDn.getUpName() +
" already exists!" );
+            e.setResolvedName( new LdapDN( newDn.getUpName() ) );
             throw e;
         }
 
@@ -310,13 +310,13 @@
         if ( nextInterceptor.hasEntry( target ) )
         {
             // we must calculate the resolved name using the user provided Rdn value
-            String upRdn = new LdapDN( oriChildName.toUpName() ).get( oriChildName.size()
- 1 );
+            String upRdn = new LdapDN( oriChildName.getUpName() ).get( oriChildName.size()
- 1 );
             LdapDN upTarget = ( LdapDN ) newParentName.clone();
             upTarget.add( upRdn );
 
             LdapNameAlreadyBoundException e;
-            e = new LdapNameAlreadyBoundException( "target entry " + upTarget.toUpName()
+ " already exists!" );
-            e.setResolvedName( new LdapDN( upTarget.toUpName() ) );
+            e = new LdapNameAlreadyBoundException( "target entry " + upTarget.getUpName()
+ " already exists!" );
+            e.setResolvedName( new LdapDN( upTarget.getUpName() ) );
             throw e;
         }
 
@@ -350,8 +350,8 @@
             upTarget.add( newRn );
 
             LdapNameAlreadyBoundException e;
-            e = new LdapNameAlreadyBoundException( "target entry " + upTarget.toUpName()
+ " already exists!" );
-            e.setResolvedName( new LdapDN( upTarget.toUpName() ) );
+            e = new LdapNameAlreadyBoundException( "target entry " + upTarget.getUpName()
+ " already exists!" );
+            e.setResolvedName( new LdapDN( upTarget.getUpName() ) );
             throw e;
         }
 
@@ -409,7 +409,7 @@
                 e = new LdapNameNotFoundException( dn.toString() );
             }
 
-            e.setResolvedName( new LdapDN( proxy.getMatchedName( dn ).toUpName() ) );
+            e.setResolvedName( new LdapDN( proxy.getMatchedName( dn ).getUpName() ) );
             throw e;
         }
     }



Mime
View raw message