/** * Looks up the backend corresponding to the entry first, then checks to * see if the entry already exists. If so an exception is thrown. If not * the add operation against the backend proceeds. This check is performed * here so backend implementors do not have to worry about performing these * kinds of checks. * * @see Partition#add(org.apache.directory.shared.ldap.name.LdapDN,javax.naming.directory.Attributes) */ public void add( LdapDN dn, Attributes entry ) throws NamingException { Partition backend = getBackend( dn ); backend.add( dn, entry ); }