Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 6322 invoked from network); 27 Nov 2006 17:20:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Nov 2006 17:20:41 -0000 Received: (qmail 99678 invoked by uid 500); 27 Nov 2006 17:20:48 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 99657 invoked by uid 500); 27 Nov 2006 17:20:48 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 99648 invoked by uid 99); 27 Nov 2006 17:20:48 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Nov 2006 09:20:48 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [212.85.154.61] (HELO mail.nuxeo.com) (212.85.154.61) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Nov 2006 09:20:35 -0800 Received: from gateway.nuxeo.com ([213.56.215.224] helo=[192.168.2.8]) by mail.nuxeo.com with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1Gok9K-0007rF-TN for dev@jackrabbit.apache.org; Mon, 27 Nov 2006 18:20:12 +0100 Message-ID: <456B1E43.4040105@nuxeo.com> Date: Mon, 27 Nov 2006 18:20:03 +0100 From: Florent Guillaume User-Agent: Thunderbird 1.5.0.7 (Macintosh/20060909) MIME-Version: 1.0 To: dev@jackrabbit.apache.org Subject: Re: Import in versionStorage References: <90a8d1c00611250053k73845e9en2ee83d9e508e497d@mail.gmail.com> <510143ac0611250253n68c95851x186d4d48758a81db@mail.gmail.com> <90a8d1c00611250355x12529dd8vada59901e29b51c7@mail.gmail.com> <90a8d1c00611250954qad149f5q5cea999c0416e824@mail.gmail.com> In-Reply-To: <90a8d1c00611250954qad149f5q5cea999c0416e824@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: -1.2 (-) X-Spam-Report: ------------------ D�but de Rapport SpamAssassin --------------------- Ce message est probablement du SPAM (message non sollicit� envoy� en masse, publicit�, escroquerie...). Cette notice a �t� ajout�e par le syst�me d'analyse "SpamAssassin" sur votre serveur de courrier "mail", pour vous aider � identifier ce type de messages. Le syst�me SpamAssassin ajoute un en-t�te "X-Spam-Flag: YES" aux messages qu'il consid�re comme �tant probablement du Spam. Vous pouvez si vous le souhaitez utiliser cette caract�ristique pour r�gler un filtre dans votre logiciel de lecture de courrier, afin de d�truire ou de classer � part ce type de message. Si ce robot a classifi� incorrectement un message qui vous �tait destin�, ou pour toute question, veuillez contacter l'administrateur du syst�me par e-mail � the administrator of that system . Voir http://spamassassin.apache.org/tag/ pour plus de d�tails (en anglais). D�tails de l'analyse du message: (-1.2 points, 5.0 requis) -1.4 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.2 AWL AWL: From: address is in the auto white-list -------------------- Fin de Rapport SpamAssassin --------------------- X-Virus-Checked: Checked by ClamAV on apache.org Stefan Guggisberg wrote: > On 11/25/06, Nicolas wrote: >> Hi Stefan, >> >> On 11/25/06, Stefan Guggisberg wrote: >> >> > wrt WorkspaceImporter: i agree that it's not suited for restoring meta >> > data, >> > it was not designed for this use case and IMO it's the wrong approach >> > as i've pointed out repeatedly. 'import' and 'restore' operations >> have IMO >> > completely different semantics. >> >> >> Actually the backup tool is not using WorkspaceImporter in the backup >> tool. >> We use a class heavily based on it with some changes disseminated >> throughout >> all the code. It is a bad solution and I acknowledge it. >> >> The idea is to extract out of WorkspaceImporter a base class (but >> first it >> needs refactoring). We would then use it for the WorkspaceImporter and >> a new >> RestoreImporter class. This way the common code would not be >> duplicated but >> each class would be able to express their own semantics. >> >> As Frederique's use case points it out, I believe there is a need for >> those >> kind of low level operations and not only for the backup tool. > > i can only think of one legitimate use case that justifies low-level > operations > directly on meta data that circumvents the api calls, and that's the > repository > restore operation. > of meta data To expand a bit on Fr�d�rique's use case: she wants to import lots of data from another sql-based repository. This includes creating version data, and controlling the VersionHistory and Version object's UUIDs (because these UUIDs are referenced by properties in other objects). Using checkin/checkout for that means we lose the UUID consistency, and have to post-process some of the properties as we do the import. So a system view import of the version storage would really be nice. Florent