Return-Path: X-Original-To: apmail-chemistry-dev-archive@www.apache.org Delivered-To: apmail-chemistry-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 564B06C5F for ; Tue, 2 Aug 2011 10:23:21 +0000 (UTC) Received: (qmail 39351 invoked by uid 500); 2 Aug 2011 10:23:20 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 39191 invoked by uid 500); 2 Aug 2011 10:23:09 -0000 Mailing-List: contact dev-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list dev@chemistry.apache.org Received: (qmail 39172 invoked by uid 99); 2 Aug 2011 10:23:05 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Aug 2011 10:23:05 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of florian.mueller@alfresco.com designates 207.126.144.123 as permitted sender) Received: from [207.126.144.123] (HELO eu1sys200aog107.obsmtp.com) (207.126.144.123) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 02 Aug 2011 10:22:54 +0000 Received: from zimbra.alfresco.com ([88.151.129.3]) by eu1sys200aob107.postini.com ([207.126.147.11]) with SMTP ID DSNKTjfP6iUTV7d5lfIr5nQeiwP+iL/Nzv1l@postini.com; Tue, 02 Aug 2011 10:22:34 UTC Received: from localhost (localhost.localdomain [127.0.0.1]) by zimbra.alfresco.com (Postfix) with ESMTP id 133D7414145; Tue, 2 Aug 2011 11:22:34 +0100 (BST) X-Virus-Scanned: amavisd-new at unx-d-manc4.tc.ifeltd.com Received: from zimbra.alfresco.com ([127.0.0.1]) by localhost (zimbra.alfresco.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7R8uY9U26ty1; Tue, 2 Aug 2011 11:22:33 +0100 (BST) Received: from Florian-Mullers-MacBook-Pro-2.local (unknown [194.75.202.169]) (Authenticated sender: florian.mueller) by zimbra.alfresco.com (Postfix) with ESMTP id A5B20414028; Tue, 2 Aug 2011 11:22:33 +0100 (BST) Message-ID: <4E37CFE8.30105@alfresco.com> Date: Tue, 02 Aug 2011 11:22:32 +0100 From: =?UTF-8?B?RmxvcmlhbiBNw7xsbGVy?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: dev@chemistry.apache.org CC: =?UTF-8?B?0JLQu9Cw0LTQuNC80LjRgCDQm9GD0LrRjNGP0L3QvtCy0LjRhw==?= Subject: Re: Problem with moving an object References: <4E37C864.50504@mainsoft.by> In-Reply-To: <4E37C864.50504@mainsoft.by> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Vladimir, That sounds like a problem on the server side. The move operation is supposed to remove the object from the source folder. Which repository are you using? Maybe addToFolder() and removeFromFolder() work better... - Florian On 02/08/2011 10:50, Владимир Лукьянович wrote: > Hi, > > When I try to move object by means of a method move, in a directory > targetFolderId the copy of my object is located, and in a directory > sourceFolderId the object remains. > If I carry out changes from one of copies of the given object the same > changes occur and to the second copy of this object. > But I expected that at method performance move there will be a moving of > object to all versions from a directory sourceFolderId in a directory > targetFolderId, and the original object with all versions sourceFolderId > will be removed from a directory. > > Why it occurs, and as I can realize moving of object with all its > versions in other directory? I can something not so I do? > > Listing: > > FileableCmisObject fileableCmisObject = sourceDocumentId.move( > sourceDocumentId.getParents().get(0), > targetFolderId); > > when: sourceDocumentId - object of type Document (moved object) > targetFolderId - object of type Folder (target folder) > > Thanks >