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 A2FE2111D5 for ; Mon, 21 Apr 2014 20:32:04 +0000 (UTC) Received: (qmail 9001 invoked by uid 500); 21 Apr 2014 20:32:03 -0000 Delivered-To: apmail-chemistry-dev-archive@chemistry.apache.org Received: (qmail 8895 invoked by uid 500); 21 Apr 2014 20:32:03 -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 8887 invoked by uid 99); 21 Apr 2014 20:32:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 21 Apr 2014 20:32:03 +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 gavin.cornwell@alfresco.com designates 207.126.144.117 as permitted sender) Received: from [207.126.144.117] (HELO eu1sys200aog104.obsmtp.com) (207.126.144.117) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 21 Apr 2014 20:31:58 +0000 Received: from mail-we0-f181.google.com ([74.125.82.181]) (using TLSv1) by eu1sys200aob104.postini.com ([207.126.147.11]) with SMTP ID DSNKU1WAKJS30ui2LLtTJgsCP2LM0V4e3DKF@postini.com; Mon, 21 Apr 2014 20:31:36 UTC Received: by mail-we0-f181.google.com with SMTP id q58so4061424wes.40 for ; Mon, 21 Apr 2014 13:31:36 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:references:from:content-type:in-reply-to :message-id:date:to:content-transfer-encoding:mime-version; bh=8rfN4FikTNFwPF71zga29UyFAc1uCe3QwMi8CcXy5nY=; b=SlEgJQqRGUT3Y+U5jkg37XcF9MkZohzx1g1GVVhgpmT4nFmSVn5ekWCq5TYw0u3NF/ 57o/fZVeePGk2A0JfeubHH3s61ySJ42G/Jo6Oaa+o9G6Xhd7FRx9sqVI+I2AAti1SKCS E5QuyqBP4RKgx3NqQb2aZKDSDGaRog5DejFQF5UKdJxm1kSePNYq7UCrPSaUaw1sH7mH tglENXsDcqH5XTX/7aWoOt4rDaxrbbQPb+dSeEMSTFWevr8M4cTRbUfX7uPv5KHVH1qe PtrYOjkGMU1iDnNK2zSk5aj8Tsy1fYzLq7rtDjW3x/XlvWKlaE4mLq7KxWXbgI+yWAQz gRSw== X-Gm-Message-State: ALoCoQmCak49qV30oVGIKdK1CQ3aLvRb45D/bv0ZPPx/J8r9LLbWJRsHOm2fVUPiH3eZ+2ohiQhB+6ItUZSqDodn4djdwWi6yiDogxUIMp6GPXttZpZNBZELqqhzTtFxhPeKcZeuO+UB X-Received: by 10.194.222.227 with SMTP id qp3mr5906049wjc.37.1398112295925; Mon, 21 Apr 2014 13:31:35 -0700 (PDT) X-Received: by 10.194.222.227 with SMTP id qp3mr5906044wjc.37.1398112295810; Mon, 21 Apr 2014 13:31:35 -0700 (PDT) Received: from [10.0.1.9] (cpc8-woki7-2-0-cust176.6-2.cable.virginm.net. [86.20.88.177]) by mx.google.com with ESMTPSA id j3sm55278111wjw.38.2014.04.21.13.31.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 21 Apr 2014 13:31:34 -0700 (PDT) Subject: Re: ObjectiveCMIS browser binding comments References: <100EABE5-CD25-407F-8930-F44730C241AC@alfresco.com> From: Gavin Cornwell Content-Type: text/plain; charset=utf-8 X-Mailer: iPad Mail (11D167) In-Reply-To: Message-Id: Date: Mon, 21 Apr 2014 21:31:09 +0100 To: "dev@chemistry.apache.org" Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (1.0) X-Virus-Checked: Checked by ClamAV on apache.org Hi Peter, Yep, the two properties on RepositoryInfo are not used currently and are act= ually stored in the binding session (as they are in the atompub binding) so I= would definitely suggest removing them. Yes, I see the CMISURLUtil is used consistently in all methods, but we are r= epeating the same code a lot which the builder objects encapsulate. Could we= not pass the browser binding specific part of the URL into the builder obje= ct as the template URL (i.e. the output of the get methods you added to the b= ase service class) and have the builder object just add the common parameter= s? Alternatively, we could have a browser binding UriBuilder subclass? Hope you had a good Easter holiday by the way! Regards, Gavin Sent from my iPad > On 18 Apr 2014, at 12:01, "Sutter, Peter" wrote: >=20 > Hi Gavin, >=20 > thanks for your feedback. Yes those constants should be move to the > CMISBroserConstants header file. >=20 > Yup there should be rather a browser binding subclass for the > RepositoryInfo that holds those two properties. I will do that (or will > remove it as those properties are currently not used). >=20 > In fact when I started with the browser binding implementation I have used= > the UriBuilder classes where possible but I had to extend them for other > properties like succinct and so on but I could not reuse those classes for= > all the methods so I went for the CMISURLUtil which is now used consistent= > in all methods. >=20 > Same here in germany with the public holidays, so happy easter holidays :)= >=20 > Best regards, > Peter >=20 >=20 >=20 >> On 4/18/14, 12:02 AM, "Gavin Cornwell" wrot= e: >>=20 >> Hi Peter, >>=20 >> You=C2=B9ve made great progress already, I just have a few questions/comm= ents >> about the changes made in revision 1588209. >>=20 >> There are a couple of browser binding constants in CMISConstants.h >> (kCMISParameterSelector & kCMISParameterSuccinct), can you please move >> these to CMISBrowserConstants.h? >>=20 >> rootFolderUrl and repositoryUrl properties have been added to >> RepositoryInfo. This object should match the definition of RepositoryInfo= >> in the CMIS spec, furthermore, these properties are browser binding >> specific and don=C2=B9t appear to be used. I think we should keep this ob= ject >> completely generic (as it is in OpenCMIS). >>=20 >> Is there a reason why you haven=C2=B9t used the UriBuilder objects to >> construct the URLs in the service methods i.e. in retrieveChildren and >> retrieveObject? >>=20 >> Please note it=C2=B9s a public holiday in the UK tomorrow and Monday so >> responses might be delayed more than usual ;-) >>=20 >> Regards, >>=20 >> Gavin >=20