Return-Path: Delivered-To: apmail-directory-api-archive@minotaur.apache.org Received: (qmail 31861 invoked from network); 13 Jan 2010 12:04:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 13 Jan 2010 12:04:24 -0000 Received: (qmail 15503 invoked by uid 500); 13 Jan 2010 12:04:24 -0000 Delivered-To: apmail-directory-api-archive@directory.apache.org Received: (qmail 15478 invoked by uid 500); 13 Jan 2010 12:04:24 -0000 Mailing-List: contact api-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: api@directory.apache.org Delivered-To: mailing list api@directory.apache.org Received: (qmail 15468 invoked by uid 99); 13 Jan 2010 12:04:24 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2010 12:04:24 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of fanf42@gmail.com designates 209.85.219.217 as permitted sender) Received: from [209.85.219.217] (HELO mail-ew0-f217.google.com) (209.85.219.217) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jan 2010 12:04:14 +0000 Received: by ewy9 with SMTP id 9so6995094ewy.11 for ; Wed, 13 Jan 2010 04:03:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=nDUsiWr1np6llsNKdtYA5bmyxFCEEaz8txvZUE5Oizw=; b=GR+AsGNjd4quZzIMrV/bwlGVAfl61x+jVhHczTLryiV7JYpHbeknrZU3ZZ41UcL01p loVLCVABPWTcl1VjeZvxpcr/wHcSrgR6HlBuS/Am9pPp+qw3xi3o3tDMXlDl05NKmI0Y 9iZVTXEIj73GGEiF6YSGAG18kFPPmxiav3xaM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=a3hURlnahLozgXdfPCOw0iJIzMEuxKgBwVnAn6f4bt3JSQ7Y5FmzBFnUDrrUM4bZsF dqjC7KGrrEeQ+nGYYDbwE/Ls4lXAjiHY5z3nXkFELXTP6Dq/S0NMUnFAy6MCrN9qwziC 6cUwg1Agpltje66Viq4oesGqpvxfx7JEWiYok= Received: by 10.213.51.200 with SMTP id e8mr9638684ebg.79.1263384234354; Wed, 13 Jan 2010 04:03:54 -0800 (PST) Received: from ?192.168.0.20? ([72.14.240.164]) by mx.google.com with ESMTPS id 28sm8971351eye.5.2010.01.13.04.03.53 (version=SSLv3 cipher=RC4-MD5); Wed, 13 Jan 2010 04:03:53 -0800 (PST) Message-ID: <4B4DB6A7.6080308@gmail.com> Date: Wed, 13 Jan 2010 13:03:51 +0100 From: Francois User-Agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.1.5) Gecko/20091204 Lightning/1.0pre Thunderbird/3.0 MIME-Version: 1.0 To: api@directory.apache.org Subject: Re: [DN] Existing API review References: <4B4C7948.3000503@gmail.com> <4B4DAD6E.4040204@sun.com> In-Reply-To: <4B4DAD6E.4040204@sun.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Le 13/01/2010 12:24, Matthew Swift a écrit : > Hi Emmanuel, I'm just giveng my point of view about the following, I don't think I can be relevant elsewhere: > Also, I strongly believe that DNs and RDNs and AVAs should be immutable > objects (as well as any other low level API type). What do you think? I will go further : DN, RDN and AVA should be immutable, but Attribute should be immutable too, and Entry should have at least an immutable DN (and facilities to copy an entry with a new DN or ParentDN at factory level). For attribute, the rationnal is that one replace attribute by a new one most of the time, and it's much easier to deal with immutable attribute - that's one of the aspect of UnboundId SDK that I prefer. For Entry's DN, it's linked to the fact that DN are almost IDs for entries. So, the semantic of such an operation is much likely in two cases: - create a copy of an entry with another DN (change RDN but perhaps not parentDN) - move an entry (only the parent DN change). These two cases (I hope I don't forget other ones) are easily fulfilled througth factory-like method support. -- Francois ARMAND http://fanf42.blogspot.com