directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r926996 - in /directory: apacheds/trunk/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/ apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/ apacheds/trunk/core/src/main/java/org/apache/direc...
Date Wed, 24 Mar 2010 09:46:09 GMT
Author: elecharny
Date: Wed Mar 24 09:46:09 2010
New Revision: 926996

URL: http://svn.apache.org/viewvc?rev=926996&view=rev
Log:
o Renamed the DN.startsWith() to DN.isChildOf()
o Added a isParentOf() method in DN
o Minor refactoring

Modified:
    directory/apacheds/trunk/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlStore.java
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/DefaultAuthorizationInterceptor.java
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/support/RelatedUserClassFilter.java
    directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/schema/SchemaInterceptor.java
    directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStore.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/DN.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/NamespaceTools.java
    directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/DNTest.java

Modified: directory/apacheds/trunk/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlStore.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlStore.java?rev=926996&r1=926995&r2=926996&view=diff
==============================================================================
--- directory/apacheds/trunk/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlStore.java
(original)
+++ directory/apacheds/trunk/avl-partition/src/main/java/org/apache/directory/server/core/partition/avl/AvlStore.java
Wed Mar 24 09:46:09 2010
@@ -1797,7 +1797,7 @@ public class AvlStore<E> implements Stor
          * entry Dn starts with the target Dn.  If it does then we know the 
          * aliased target is a relative and we have a perspecitive cycle.
          */
-        if ( aliasDn.startsWith( normalizedAliasTargetDn ) )
+        if ( aliasDn.isChildOf( normalizedAliasTargetDn ) )
         {
             if ( aliasDn.equals( normalizedAliasTargetDn ) )
             {
@@ -1815,7 +1815,7 @@ public class AvlStore<E> implements Stor
          * need to point it out to the user instead of saying the target
          * does not exist when it potentially could outside of this upSuffix.
          */
-        if ( !normalizedAliasTargetDn.startsWith( suffixDn ) )
+        if ( !normalizedAliasTargetDn.isChildOf( suffixDn ) )
         {
             // Complain specifically about aliases to outside naming contexts
             throw new Exception( I18n.err( I18n.ERR_225, suffixDn.getName() ) );
@@ -1869,7 +1869,7 @@ public class AvlStore<E> implements Stor
         // check if alias parent and aliased entry are the same
         DN normalizedAliasTargetParentDn = ( DN ) normalizedAliasTargetDn.clone();
         normalizedAliasTargetParentDn.remove( normalizedAliasTargetDn.size() - 1 );
-        if ( !aliasDn.startsWith( normalizedAliasTargetParentDn ) )
+        if ( !aliasDn.isChildOf( normalizedAliasTargetParentDn ) )
         {
             oneAliasIdx.add( ancestorId, targetId );
         }

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/DefaultAuthorizationInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/DefaultAuthorizationInterceptor.java?rev=926996&r1=926995&r2=926996&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/DefaultAuthorizationInterceptor.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/DefaultAuthorizationInterceptor.java
Wed Mar 24 09:46:09 2010
@@ -200,14 +200,14 @@ public class DefaultAuthorizationInterce
         {
             if ( !isAnAdministrator( principalDn ) )
             {
-                if ( name.startsWith( USER_BASE_DN ) )
+                if ( name.isChildOf( USER_BASE_DN ) )
                 {
                     String msg = I18n.err( I18n.ERR_15, principalDn.getName(), name.getName()
);
                     LOG.error( msg );
                     throw new LdapNoPermissionException( msg );
                 }
         
-                if ( name.startsWith( GROUP_BASE_DN ) )
+                if ( name.isChildOf( GROUP_BASE_DN ) )
                 {
                     String msg = I18n.err( I18n.ERR_16, principalDn.getName(), name.getName()
);
                     LOG.error( msg );
@@ -294,14 +294,14 @@ public class DefaultAuthorizationInterce
 
             if ( dn.size() > 2 ) 
                 {
-                if ( dn.startsWith( USER_BASE_DN ) )
+                if ( dn.isChildOf( USER_BASE_DN ) )
                 {
                     String msg = I18n.err( I18n.ERR_19, principalDn.getName(),  dn.getName()
);
                     LOG.error( msg );
                     throw new LdapNoPermissionException( msg );
                 }
     
-                if ( dn.startsWith( GROUP_BASE_DN ) )
+                if ( dn.isChildOf( GROUP_BASE_DN ) )
                 {
                     String msg = I18n.err( I18n.ERR_20, principalDn.getName(), dn.getName()
);
                     LOG.error( msg );
@@ -380,14 +380,14 @@ public class DefaultAuthorizationInterce
             throw new LdapNoPermissionException( msg );
         }
 
-        if ( dn.size() > 2 && dn.startsWith( USER_BASE_DN ) && !isAnAdministrator(
principalDn ) )
+        if ( dn.size() > 2 && dn.isChildOf( USER_BASE_DN ) && !isAnAdministrator(
principalDn ) )
         {
             String msg = I18n.err( I18n.ERR_23, principalDn.getName(), dn.getName() );
             LOG.error( msg );
             throw new LdapNoPermissionException( msg );
         }
 
-        if ( dn.size() > 2 && dn.startsWith( GROUP_BASE_DN ) && !isAnAdministrator(
principalDn ) )
+        if ( dn.size() > 2 && dn.isChildOf( GROUP_BASE_DN ) && !isAnAdministrator(
principalDn ) )
         {
             String msg = I18n.err( I18n.ERR_24, principalDn.getName(), dn.getName() );
             LOG.error( msg );
@@ -416,7 +416,7 @@ public class DefaultAuthorizationInterce
         {
             if ( normalizedDn.size() > 2 )
             {
-                if( normalizedDn.startsWith( USER_BASE_DN ) )
+                if( normalizedDn.isChildOf( USER_BASE_DN ) )
                 {
                     // allow for self reads
                     if ( normalizedDn.getNormName().equals( principalDn.getNormName() ) )
@@ -429,7 +429,7 @@ public class DefaultAuthorizationInterce
                     throw new LdapNoPermissionException( msg );
                 }
 
-                if ( normalizedDn.startsWith( GROUP_BASE_DN ) )
+                if ( normalizedDn.isChildOf( GROUP_BASE_DN ) )
                 {
                     // allow for self reads
                     if ( normalizedDn.getNormName().equals( principalDn.getNormName() ) )

Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/support/RelatedUserClassFilter.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/support/RelatedUserClassFilter.java?rev=926996&r1=926995&r2=926996&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/support/RelatedUserClassFilter.java
(original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/authz/support/RelatedUserClassFilter.java
Wed Mar 24 09:46:09 2010
@@ -133,7 +133,7 @@ public class RelatedUserClassFilter impl
             }
             else if ( userClass == UserClass.PARENT_OF_ENTRY )
             {
-                if ( entryName.startsWith( userName ) )
+                if ( entryName.isChildOf( userName ) )
                 {
                     return true;
                 }

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=926996&r1=926995&r2=926996&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
Wed Mar 24 09:46:09 2010
@@ -1683,7 +1683,7 @@ public class SchemaInterceptor extends B
         check( name, entry );
 
         // Special checks for the MetaSchema branch
-        if ( name.startsWith( schemaBaseDN ) )
+        if ( name.isChildOf( schemaBaseDN ) )
         {
             // get the schema name
             String schemaName = getSchemaName( name );

Modified: directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStore.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStore.java?rev=926996&r1=926995&r2=926996&view=diff
==============================================================================
--- directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStore.java
(original)
+++ directory/apacheds/trunk/jdbm-store/src/main/java/org/apache/directory/server/core/partition/impl/btree/jdbm/JdbmStore.java
Wed Mar 24 09:46:09 2010
@@ -1075,7 +1075,7 @@ public class JdbmStore<E> implements Sto
          * entry Dn starts with the target Dn.  If it does then we know the 
          * aliased target is a relative and we have a perspecitive cycle.
          */
-        if ( aliasDn.startsWith( normalizedAliasTargetDn ) )
+        if ( aliasDn.isChildOf( normalizedAliasTargetDn ) )
         {
             if ( aliasDn.equals( normalizedAliasTargetDn ) )
             {
@@ -1099,7 +1099,7 @@ public class JdbmStore<E> implements Sto
          * need to point it out to the user instead of saying the target
          * does not exist when it potentially could outside of this upSuffix.
          */
-        if ( !normalizedAliasTargetDn.startsWith( normSuffix ) )
+        if ( !normalizedAliasTargetDn.isChildOf( normSuffix ) )
         {
             String msg = I18n.err( I18n.ERR_225, upSuffix.getName() );
             LdapAliasDereferencingException e = new LdapAliasDereferencingException( msg
);
@@ -1160,7 +1160,7 @@ public class JdbmStore<E> implements Sto
         // check if alias parent and aliased entry are the same
         DN normalizedAliasTargetParentDn = ( DN ) normalizedAliasTargetDn.clone();
         normalizedAliasTargetParentDn.remove( normalizedAliasTargetDn.size() - 1 );
-        if ( !aliasDn.startsWith( normalizedAliasTargetParentDn ) )
+        if ( !aliasDn.isChildOf( normalizedAliasTargetParentDn ) )
         {
             oneAliasIdx.add( ancestorId, targetId );
         }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/DN.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/DN.java?rev=926996&r1=926995&r2=926996&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/DN.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/name/DN.java
Wed Mar 24 09:46:09 2010
@@ -572,8 +572,7 @@ public class DN implements Cloneable, Se
      */
     public static int getNbBytes( DN dn )
     {
-        DN newDn = ( DN ) dn;
-        return newDn.bytes == null ? 0 : newDn.bytes.length;
+        return dn.bytes == null ? 0 : dn.bytes.length;
     }
 
 
@@ -590,9 +589,33 @@ public class DN implements Cloneable, Se
 
 
     /**
-     * {@inheritDoc}
+     * Tells if the current DN is a parent of another DN.<br>
+     * For instance, <b>dc=com</b> is a child
+     * of <b>dc=example, dc=com</b>
+     * 
+     * @param dn The child
+     * @return true if the given DN is a child of the current DN 
+     */
+    public boolean isParentOf( DN dn )
+    {
+        if ( dn == null )
+        {
+            return false;
+        }
+        
+        return dn.isChildOf( this );
+    }
+
+
+    /**
+     * Tells if a DN is a child of another DN.<br>
+     * For instance, <b>dc=example, dc=com</b> is a child
+     * of <b>dc=com</b>
+     * 
+     * @param dn The parent
+     * @return true if the given DN is a parent of the current DN 
      */
-    public boolean startsWith( DN dn )
+    public boolean isChildOf( DN dn )
     {
         if ( dn == null )
         {
@@ -628,29 +651,25 @@ public class DN implements Cloneable, Se
     }
 
 
-    /*
-     * Determines whether this name ends with a specified suffix. A name
-     * <tt>name</tt> is a suffix if it is equal to
-     * <tt>getSuffix(size()-name.size())</tt>.
+    /**
+     * Determines whether this name is a child of a specified suffix. A name
+     * <tt>name</tt> is a child if its right part contains the given DN
      *
      * Be aware that for a specific
-     * DN like : cn=xxx, ou=yyy the endsWith method will return true with
-     * cn=xxx, and false with ou=yyy
+     * DN like : <b>cn=xxx, ou=yyy</b> the isChildOf method will return true
with
+     * <b>ou=yyy</b>, and false with <b>cn=xxx</b>
      *
-     * @param name
-     *            the name to check
-     * @return true if <tt>name</tt> is a suffix of this name, false otherwise
-     */
-    /**
-     * {@inheritDoc}
+     * @param dn the name to check
+     * @return true if <tt>dn</tt> is a child of this name, false otherwise
      */
     public boolean endsWith( DN dn )
     {
+
         if ( dn == null )
         {
             return true;
         }
-        
+
         if ( dn.size() == 0 )
         {
             return true;
@@ -662,7 +681,9 @@ public class DN implements Cloneable, Se
             return false;
         }
 
-        // Ok, iterate through all the RDN of the name
+        // Ok, iterate through all the RDN of the name,
+        // starting a the end of the current list.
+
         for ( int i = 0; i < dn.size(); i++ )
         {
             RDN nameRdn = dn.rdns.get( i );
@@ -1495,6 +1516,7 @@ public class DN implements Cloneable, Se
     {
         return DnParser.validateInternal( dn );
     }
+    
 
     /**
      * Tells if the DN has already been normalized or not

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/NamespaceTools.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/NamespaceTools.java?rev=926996&r1=926995&r2=926996&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/NamespaceTools.java
(original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/NamespaceTools.java
Wed Mar 24 09:46:09 2010
@@ -80,7 +80,7 @@ public class NamespaceTools
         {
             DN parentDn = ( DN ) name1.clone();
             parentDn.remove( name1.size() - 1 );
-            return name2.startsWith( parentDn );
+            return name2.isChildOf( parentDn );
         }
 
         return false;
@@ -96,7 +96,7 @@ public class NamespaceTools
      */
     public static boolean isDescendant( DN ancestor, DN descendant )
     {
-        return descendant.startsWith( ancestor );
+        return descendant.isChildOf( ancestor );
     }
 
 
@@ -124,7 +124,7 @@ public class NamespaceTools
             rdn = new DN( descendant.toString() );
         }
 
-        if ( rdn.startsWith( ancestor ) )
+        if ( rdn.isChildOf( ancestor ) )
         {
             for ( int ii = 0; ii < ancestor.size(); ii++ )
             {

Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/DNTest.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/DNTest.java?rev=926996&r1=926995&r2=926996&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/DNTest.java
(original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/name/DNTest.java
Wed Mar 24 09:46:09 2010
@@ -1107,7 +1107,7 @@ public class DNTest
     public void testDnStartsWithNull() throws LdapException
     {
         DN dn = new DN( "a=b, c=d,e = f" );
-        assertEquals( true, dn.startsWith( null ) );
+        assertEquals( true, dn.isChildOf( null ) );
     }
 
 
@@ -1118,7 +1118,7 @@ public class DNTest
     public void testDnStartsWithEmpty() throws LdapException
     {
         DN dn = new DN( "a=b, c=d,e = f" );
-        assertEquals( true, dn.startsWith( new DN() ) );
+        assertEquals( true, dn.isChildOf( new DN() ) );
     }
 
 
@@ -1129,7 +1129,7 @@ public class DNTest
     public void testDnStartsWithSimple() throws LdapException
     {
         DN dn = new DN( "a=b, c=d,e = f" );
-        assertEquals( true, dn.startsWith( new DN( "e=f" ) ) );
+        assertEquals( true, dn.isChildOf( new DN( "e=f" ) ) );
     }
 
 
@@ -1140,7 +1140,7 @@ public class DNTest
     public void testDnStartsWithComplex() throws LdapException
     {
         DN dn = new DN( "a=b, c=d,e = f" );
-        assertEquals( true, dn.startsWith( new DN( "c =  d, e =  f" ) ) );
+        assertEquals( true, dn.isChildOf( new DN( "c =  d, e =  f" ) ) );
     }
 
 
@@ -1151,7 +1151,7 @@ public class DNTest
     public void testDnStartsWithComplexMixedCase() throws LdapException
     {
         DN dn = new DN( "a=b, c=d,e = f" );
-        assertEquals( false, dn.startsWith( new DN( "c =  D, E =  f" ) ) );
+        assertEquals( false, dn.isChildOf( new DN( "c =  D, E =  f" ) ) );
     }
 
 
@@ -1162,7 +1162,7 @@ public class DNTest
     public void testDnStartsWithFull() throws LdapException
     {
         DN dn = new DN( "a=b, c=d,e = f" );
-        assertEquals( true, dn.startsWith( new DN( "a=  b; c =  d, e =  f" ) ) );
+        assertEquals( true, dn.isChildOf( new DN( "a=  b; c =  d, e =  f" ) ) );
     }
 
 
@@ -1173,7 +1173,7 @@ public class DNTest
     public void testDnStartsWithWrong() throws LdapException
     {
         DN dn = new DN( "a=b, c=d,e = f" );
-        assertEquals( false, dn.startsWith( new DN( "c =  t, e =  f" ) ) );
+        assertEquals( false, dn.isChildOf( new DN( "c =  t, e =  f" ) ) );
     }
 
 
@@ -2051,43 +2051,43 @@ public class DNTest
         DN n8 = new DN( "cn=HomeDir,cn=John,ou=Marketing" );
 
         // Check with DN
-        assertTrue( n0.startsWith( n1 ) );
-        assertTrue( n0.startsWith( n2 ) );
-        assertTrue( n0.startsWith( n3 ) );
-        assertTrue( n0.startsWith( n4 ) );
-        assertTrue( n0.startsWith( n5 ) );
-
-        assertTrue( !n0.startsWith( n6 ) );
-        assertTrue( !n0.startsWith( n7 ) );
-        assertTrue( !n0.startsWith( n8 ) );
+        assertTrue( n0.isChildOf( n1 ) );
+        assertTrue( n0.isChildOf( n2 ) );
+        assertTrue( n0.isChildOf( n3 ) );
+        assertTrue( n0.isChildOf( n4 ) );
+        assertTrue( n0.isChildOf( n5 ) );
+
+        assertTrue( !n0.isChildOf( n6 ) );
+        assertTrue( !n0.isChildOf( n7 ) );
+        assertTrue( !n0.isChildOf( n8 ) );
         
         DN nn0 = new DN( "cn=zero" );
         DN nn10 = new DN( "cn=one,cn=zero" );
         DN nn210 = new DN( "cn=two,cn=one,cn=zero" );
         DN nn3210 = new DN( "cn=three,cn=two,cn=one,cn=zero" );
         
-        assertTrue( nn0.startsWith( nn0 ) );
-        assertTrue( nn10.startsWith( nn0 ) );
-        assertTrue( nn210.startsWith( nn0 ) );
-        assertTrue( nn3210.startsWith( nn0 ) );
-
-        assertTrue( nn10.startsWith( nn10 ) );
-        assertTrue( nn210.startsWith( nn10 ) );
-        assertTrue( nn3210.startsWith( nn10 ) );
+        assertTrue( nn0.isChildOf( nn0 ) );
+        assertTrue( nn10.isChildOf( nn0 ) );
+        assertTrue( nn210.isChildOf( nn0 ) );
+        assertTrue( nn3210.isChildOf( nn0 ) );
+
+        assertTrue( nn10.isChildOf( nn10 ) );
+        assertTrue( nn210.isChildOf( nn10 ) );
+        assertTrue( nn3210.isChildOf( nn10 ) );
 
-        assertTrue( nn210.startsWith( nn210 ) );
-        assertTrue( nn3210.startsWith( nn210 ) );
+        assertTrue( nn210.isChildOf( nn210 ) );
+        assertTrue( nn3210.isChildOf( nn210 ) );
 
-        assertTrue( nn3210.startsWith( nn3210 ) );
+        assertTrue( nn3210.isChildOf( nn3210 ) );
         
         assertTrue( "Starting DN fails with ADS DN", 
-            new DN( "ou=foo,dc=apache,dc=org" ).startsWith( new DN( "dc=apache,dc=org" )
) );
+            new DN( "ou=foo,dc=apache,dc=org" ).isChildOf( new DN( "dc=apache,dc=org" ) )
);
         
         assertTrue( "Starting DN fails with Java LdapName", 
-            new DN( "ou=foo,dc=apache,dc=org" ).startsWith( new DN( "dc=apache,dc=org" )
) );
+            new DN( "ou=foo,dc=apache,dc=org" ).isChildOf( new DN( "dc=apache,dc=org" ) )
);
 
         assertTrue( "Starting DN fails with Java LdapName", 
-            new DN( "dc=apache,dc=org" ).startsWith( new DN( "dc=apache,dc=org" ) ) );
+            new DN( "dc=apache,dc=org" ).isChildOf( new DN( "dc=apache,dc=org" ) ) );
     }
 
 
@@ -2668,9 +2668,9 @@ public class DNTest
         LdapName jName = new LdapName( "cn=four,cn=three,cn=two,cn=one" );
         DN aName = new DN( "cn=four,cn=three,cn=two,cn=one" );
 
-        assertEquals( jName.startsWith( new LdapName( "cn=seven,cn=six,cn=five" ) ), aName.startsWith(
new DN(
+        assertEquals( jName.startsWith( new LdapName( "cn=seven,cn=six,cn=five" ) ), aName.isChildOf(
new DN(
             "cn=seven,cn=six,cn=five" ) ) );
-        assertEquals( jName.startsWith( new LdapName( "cn=three,cn=two,cn=one" ) ), aName.startsWith(
new DN(
+        assertEquals( jName.startsWith( new LdapName( "cn=three,cn=two,cn=one" ) ), aName.isChildOf(
new DN(
             "cn=three,cn=two,cn=one" ) ) );
     }
 



Mime
View raw message