directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1085232 - in /directory/apacheds/trunk: core-api/src/main/java/org/apache/directory/server/core/schema/ core-api/src/main/java/org/apache/directory/server/core/schema/registries/synchronizers/ core-jndi/src/main/java/org/apache/directory/s...
Date Fri, 25 Mar 2011 01:09:55 GMT
Author: elecharny
Date: Fri Mar 25 01:09:55 2011
New Revision: 1085232

URL: http://svn.apache.org/viewvc?rev=1085232&view=rev
Log:
Replaced some methods by other more accurate

Modified:
    directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/schema/SchemaPartitionDaoImpl.java
    directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/schema/registries/synchronizers/AbstractRegistrySynchronizer.java
    directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java
    directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerDirContext.java
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/operational/OperationalAttributeInterceptor.java
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaInterceptor.java

Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/schema/SchemaPartitionDaoImpl.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/schema/SchemaPartitionDaoImpl.java?rev=1085232&r1=1085231&r2=1085232&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/schema/SchemaPartitionDaoImpl.java
(original)
+++ directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/schema/SchemaPartitionDaoImpl.java
Fri Mar 25 01:09:55 2011
@@ -484,6 +484,7 @@ public class SchemaPartitionDaoImpl impl
     public String findSchema( String entityName ) throws Exception
     {
         Dn dn = findDn( entityName );
+        
         if ( dn == null )
         {
             return null;

Modified: directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/schema/registries/synchronizers/AbstractRegistrySynchronizer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/schema/registries/synchronizers/AbstractRegistrySynchronizer.java?rev=1085232&r1=1085231&r2=1085232&view=diff
==============================================================================
--- directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/schema/registries/synchronizers/AbstractRegistrySynchronizer.java
(original)
+++ directory/apacheds/trunk/core-api/src/main/java/org/apache/directory/server/core/schema/registries/synchronizers/AbstractRegistrySynchronizer.java
Fri Mar 25 01:09:55 2011
@@ -157,6 +157,7 @@ public abstract class AbstractRegistrySy
         }
 
         Rdn rdn = dn.getRdn( 1 );
+        
         return rdn.getNormValue().getString();
     }
 

Modified: directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java?rev=1085232&r1=1085231&r2=1085232&view=diff
==============================================================================
--- directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java
(original)
+++ directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerContext.java
Fri Mar 25 01:09:55 2011
@@ -1028,7 +1028,7 @@ public abstract class ServerContext impl
     private void injectRdnAttributeValues( Dn target, Entry serverEntry ) throws NamingException
     {
         // Add all the Rdn attributes and their values to this entry
-        Rdn rdn = target.getRdn( target.size() - 1 );
+        Rdn rdn = target.getRdn();
 
         if ( rdn.size() == 1 )
         {

Modified: directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerDirContext.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerDirContext.java?rev=1085232&r1=1085231&r2=1085232&view=diff
==============================================================================
--- directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerDirContext.java
(original)
+++ directory/apacheds/trunk/core-jndi/src/main/java/org/apache/directory/server/core/jndi/ServerDirContext.java
Fri Mar 25 01:09:55 2011
@@ -566,7 +566,7 @@ public abstract class ServerDirContext e
         }
 
         Dn target = buildTarget( JndiUtils.fromName( name ) );
-        Rdn rdn = target.getRdn( target.size() - 1 );
+        Rdn rdn = target.getRdn();
 
         attrs = AttributeUtils.toCaseInsensitive( attrs );
         Attributes attributes = ( Attributes ) attrs.clone();

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java?rev=1085232&r1=1085231&r2=1085232&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
Fri Mar 25 01:09:55 2011
@@ -794,8 +794,8 @@ public class DefaultDirectoryService imp
         Dn newBase = newDn.getParent();
 
         // Compute the Rdn for each of the Dn
-        Rdn newRdn = newDn.getRdn( newDn.size() - 1 );
-        Rdn oldRdn = oldDn.getRdn( oldDn.size() - 1 );
+        Rdn newRdn = newDn.getRdn();
+        Rdn oldRdn = oldDn.getRdn();
 
         /*
          * We need to determine if this rename operation corresponds to a simple

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/operational/OperationalAttributeInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/operational/OperationalAttributeInterceptor.java?rev=1085232&r1=1085231&r2=1085232&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/operational/OperationalAttributeInterceptor.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/operational/OperationalAttributeInterceptor.java
Fri Mar 25 01:09:55 2011
@@ -540,6 +540,7 @@ public class OperationalAttributeInterce
         for ( int ii = 0; ii < dn.size(); ii++ )
         {
             Rdn rdn = dn.getRdn( ii );
+            
             if ( rdn.size() == 0 )
             {
                 newDn = newDn.add( new Rdn() );

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaInterceptor.java?rev=1085232&r1=1085231&r2=1085232&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaInterceptor.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaInterceptor.java
Fri Mar 25 01:09:55 2011
@@ -1546,6 +1546,7 @@ public class SchemaInterceptor extends B
         }
 
         Rdn rdn = dn.getRdn( 1 );
+        
         return rdn.getNormValue().getString();
     }
 



Mime
View raw message