/** * Copies a DN to an DN. * * @param name composed of String name components. * @throws LdapInvalidDnException If the Name is invalid. */ public DN( DN dn ) throws LdapInvalidDnException { if ( ( dn != null ) && ( dn.size() != 0 ) ) { for ( int ii = 0; ii < dn.size(); ii++ ) { String nameComponent = dn.get( ii ); add( nameComponent ); } } normalized = false; }
String childRdn = childUpdn.get( childUpdn.size() - 1 ); DN newUpdn = new DN( getEntryUpdn( newParentId ) ); newUpdn.add( newUpdn.size(), childRdn );
DN oldUpdn = new DN( getEntryUpdn( childId ) ); String rdn = oldUpdn.get( oldUpdn.size() - 1 ); DN rdnDN = new DN( rdn ); rdnDN.normalize( schemaManager.getNormalizerMapping() );
RDN rdn = new RDN( name.get( i ) ); rdns.add( size() - posn, rdn );