Return-Path: X-Original-To: apmail-manifoldcf-dev-archive@www.apache.org Delivered-To: apmail-manifoldcf-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 07A4618337 for ; Fri, 10 Jul 2015 23:19:46 +0000 (UTC) Received: (qmail 93201 invoked by uid 500); 10 Jul 2015 23:19:45 -0000 Delivered-To: apmail-manifoldcf-dev-archive@manifoldcf.apache.org Received: (qmail 93146 invoked by uid 500); 10 Jul 2015 23:19:45 -0000 Mailing-List: contact dev-help@manifoldcf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@manifoldcf.apache.org Delivered-To: mailing list dev@manifoldcf.apache.org Received: (qmail 93133 invoked by uid 99); 10 Jul 2015 23:19:45 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 Jul 2015 23:19:45 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 32BD418199F for ; Fri, 10 Jul 2015 23:19:45 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.88 X-Spam-Level: ** X-Spam-Status: No, score=2.88 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id UOv-T-SsOrvc for ; Fri, 10 Jul 2015 23:19:39 +0000 (UTC) Received: from mail-ig0-f180.google.com (mail-ig0-f180.google.com [209.85.213.180]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 8F64743BB0 for ; Fri, 10 Jul 2015 23:19:39 +0000 (UTC) Received: by igrv9 with SMTP id v9so23094170igr.1 for ; Fri, 10 Jul 2015 16:19:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=t4hEOMxqbe3rGCS1ocnIxu0mDH0eWn7KanluF/+biFk=; b=zOxDFzRLg7uZyM+qfy0AqHPY+/19r3ZRhoE+WwOBvz3W6ozU21t42GPEzqSBBry0lK 3Hl/FbhUHLWOvxFSsYm+O23KbI4VEbwxgn0a1Hjzu+RlOKZ9dMPQ2EQ8BwixyceOusbo dS5u2NyUjk2zravGxpIIQvNiHA+tGyWJCuFvapS14U4ro5nYroQaYxNWfbjlA910u8oM cr1V47kpAySrM+8WhUJ4q+H1kiGCeBOmbHmmxvdag6z8iU0i7UxrkK7YmZAZbPOAxvpp Ykw5fpwAJmTpZXhzSj95Dvnbh+ic3KzI858FBotO/AXZpxPYK9HEObGTIx62VaHuMvxe ox8A== MIME-Version: 1.0 X-Received: by 10.107.128.214 with SMTP id k83mr34094339ioi.7.1436570373380; Fri, 10 Jul 2015 16:19:33 -0700 (PDT) Received: by 10.107.46.150 with HTTP; Fri, 10 Jul 2015 16:19:33 -0700 (PDT) In-Reply-To: References: Date: Fri, 10 Jul 2015 19:19:33 -0400 Message-ID: Subject: Re: [GSoC] Confluence Authority Connector From: Karl Wright To: dev Content-Type: multipart/alternative; boundary=001a113f97d8cce215051a8d9acc --001a113f97d8cce215051a8d9acc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable bq. Karl one question about repository connector document retainment. I'm using the activities.retainAllComponentDocument(docId) method of IProcessActivity to retain the document and avoid to be reindexed. Hi Antonio, checkDocumentNeedsReindexing() is the standard way of determining whether a document needs to be reindexed or not. You can follow the template present in multiple other connectors that use this method. retainAllComponentDocuments() is basically a shorthand way of determining the disposition of document components. I don't believe you even use document components in the confluence connector, although I could be wrong about that? In general, if your connector doesn't do anything with components at all, you will not need to call this method. Thanks, Karl On Fri, Jul 10, 2015 at 10:43 AM, Antonio David P=C3=A9rez Morales < adperezmorales@gmail.com> wrote: > Hi devs > > Continuing with the work, I have developed a first version of the > Confluence Authority connector aligned with the ACLs used by the Confluen= ce > Repository Connector. > I have fixed and improved some parts in the repository connector and > committed the code and also I have updated the Jira issue [1] to keep tra= ck > of the new additions. > Both branches have been merged into master and I have created a new devel= op > branch [2] from it, so further improvements and fixes can be done from th= is > branch and then merged into master. > Right now, the connectors are in different maven modules and maybe in the > future I can merge into one single maven project without modules, so that > with one jar file we will have both connectors ready to be used in > Manifold. > As of now, I will work in the Authority connector improvements and tests > and also I will do all the things Rafa (or you guys) can report regarding > the functionality of the connectors. > > Karl one question about repository connector document retainment. I'm usi= ng > the activities.retainAllComponentDocument(docId) method of IProcessActivi= ty > to retain the document and avoid to be reindexed. > Rafa, while checking and reviewing the code, noticed that other connector= s > are using the checkDocumentNeedsReindexing(documentIdentifier, > newVersionString) method also from IProcessActivity. I checked the code > from both methods and internally they act differently. Is it fine to use > the retainAllComponentDocument or it is better to switch to > checkDocumentNeedsReindexing one? > > As always, if you have suggestions about improvements or more things whic= h > can be done for these connectors, please let me know. > > Regards > > [1] https://issues.apache.org/jira/browse/CONNECTORS-1161 > [2] > > https://github.com/adperezmorales/confluence-manifold-connector/tree/deve= lop > > > 2015-07-09 17:17 GMT+02:00 Rafa Haro : > > > Hi Antonio, > > > > Thanks for the new update. Let me make some comments inline: > > > > On Wed, Jul 8, 2015 at 6:31 PM, Antonio David P=C3=A9rez Morales < > > adperezmorales@gmail.com> wrote: > > > > > Hi devs > > > > > > After the midterm, I continue with the proposed work and I already > > started > > > to work on the second part of the project, which is the development o= f > an > > > Authority Connector for Confluence. > > > > > > I have created a new branch [1] for that in my GitHub account and I > > already > > > committed the basic structure of the connector along with the code > > related > > > to Confluence instance configuration. After that I will develop the > > proper > > > strategy to get the ACLs for the user as stated in the proposal. > > > > > > For this case, I have been evaluating the two scenarios contained in > the > > > proposal and I will start developing the space-based permissions whic= h > > > requires no customizations of Confluence instance (coarse grain). > > > > > > I made some tests with Confluence APIs trying to go more fine-grain > using > > > the user groups but there is not endpoint method to get the groups th= at > > can > > > view a specific page. So in the end, I think the space-based permissi= on > > is > > > a good solution, because implementing a Confluence plugin for that to > > cover > > > some very specific use cases I think most people won't be willing to > > patch > > > Confluence only for those specific use cases (for example where a > person > > is > > > not allowed to view a space but it is allowed to view a single page i= n > > that > > > space). > > > > > > > Let's focus right now on permissions at space level. As you said, to > patch > > confluence API is not a good solution, specially for those using it in > the > > Cloud. If in the future they extend the API with more fine grained > > permissions approach, we can always update later the connector. > > > > > > > > > > I have also updated the README file putting a guide to configure both > > > connectors using screenshots about configuration tabs for the > connectors. > > > I'm using embedded images (using Data URIs syntax for images) but it > > seems > > > they are not supported by GitHub in the README (although they are in > the > > > code, and other Markdown viewers can show them). > > > > > > > Ok, thanks! > > > > > > > > > > The connectors are in separated branches until I merge them into > master. > > > > > > Moreover, I have been talking and reviewing with Rafa through Skype t= he > > > current work, and we have agreed to track all the things also in the > Jira > > > issue (apart from these mails), so I will put the configuration > > screenshots > > > there and the links to the GitHub repositories. > > > > > > > Perfect!. Let me know when we can start testing the Authority connector > > too. My intention is to test the whole connector in a real environment > > extensively sometime before the pencil downs looking for possible bugs, > > additions and so on. > > > > Well done so far! > > Cheers, > > Rafa > > > > > > > > > > Comments and suggestions are more than welcome as always. > > > > > > Regards > > > > > > -------- > > > > > > [1] > > > > > > > > > https://github.com/adperezmorales/confluence-manifold-connector/tree/feat= ure/authority-connector > > > > > > --001a113f97d8cce215051a8d9acc--