Return-Path: X-Original-To: apmail-openoffice-dev-archive@www.apache.org Delivered-To: apmail-openoffice-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 A8BFBF325 for ; Sat, 17 Aug 2013 09:24:11 +0000 (UTC) Received: (qmail 95049 invoked by uid 500); 17 Aug 2013 09:24:08 -0000 Delivered-To: apmail-openoffice-dev-archive@openoffice.apache.org Received: (qmail 94999 invoked by uid 500); 17 Aug 2013 09:24:07 -0000 Mailing-List: contact dev-help@openoffice.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openoffice.apache.org Delivered-To: mailing list dev@openoffice.apache.org Received: (qmail 94987 invoked by uid 99); 17 Aug 2013 09:24:05 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Aug 2013 09:24:05 +0000 Received: from localhost (HELO mail-lb0-f173.google.com) (127.0.0.1) (smtp-auth username jani, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Sat, 17 Aug 2013 09:24:04 +0000 Received: by mail-lb0-f173.google.com with SMTP id 10so752768lbf.32 for ; Sat, 17 Aug 2013 02:24:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=T0Xyj/Eido/kxgtzHa1nMuqjv7ys+Ej5DiSJqVpSpaQ=; b=A0eZFlbUR7sn2KepjMd/AtV86xEnOTArMw9QCqWr53TzxLcXg2mS6eIPNteTicPdeR gg9wmSAsBnOmiBE9Jpq/i5wX2pv08Vo6amA67hz63F4UeyRxqfnJ18NnHcflVjMpDwAJ Ww/Euf9UJFbVYkep9Qgc94SXRr9J2WuRPJuQlSgOcuHXXtbg2oj4dMMB4N7SmsB+ipcz qpOQL3Jf+XlEz80ojuoPdy85evFr48kP0lQI/aL+6Bhv5tQzi8E2jzKBFpgphpDOd0n+ zJE4XZ22BvUoGu9b28U/i6hfX4jbh+YJYblnWT+Pc7dhCSX/4jn5FMDiffmPurWm0bvb 1wog== MIME-Version: 1.0 X-Received: by 10.152.3.42 with SMTP id 10mr2084224laz.22.1376731442064; Sat, 17 Aug 2013 02:24:02 -0700 (PDT) Received: by 10.112.141.167 with HTTP; Sat, 17 Aug 2013 02:24:02 -0700 (PDT) In-Reply-To: References: Date: Sat, 17 Aug 2013 11:24:02 +0200 Message-ID: Subject: Re: Opinion: CMIS UCP Open From: janI To: dev Content-Type: multipart/alternative; boundary=089e013d14b28e336204e421441e --089e013d14b28e336204e421441e Content-Type: text/plain; charset=ISO-8859-1 On 17 August 2013 11:16, Rajath Shashidhara wrote: > Hello, > > I need opinion on how to implement "open" command in my cmis ucp. > Since, cmis supports versioning, the make any changes to the document, the > document has to be checked out. Later, the changes have to checked in. > > So, when the user "open" a folder from the file dialog, there are two > options: > 1. Open the document as a "read-only" copy. Provide an option to > 2. Checkout the document and open it. > > What do you feel is best way to go about it? > Please provide your opinion. > Since you do not know if the user will save it again (or when) I would avoid doing too many checkout (some cmis systems blocks the document when you do a checkout). I would suggest the following pattern: open, retrieve read-only, mark the version number save, 1) control version numbers (did anybody else change the document in cmis) warn user if different. 2) checkout and checkin the changed document rgds jan I > > -- > Rajath S, > M.Sc(Hons.) Physics, > Birla Institute of Technology and Science - Pilani, > Pilani > --089e013d14b28e336204e421441e--