Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D930A200AE4 for ; Thu, 26 May 2016 08:19:55 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id D7E4D160A2E; Thu, 26 May 2016 06:19:55 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 058E4160A29 for ; Thu, 26 May 2016 08:19:54 +0200 (CEST) Received: (qmail 98360 invoked by uid 500); 26 May 2016 06:19:54 -0000 Mailing-List: contact dev-help@openmeetings.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openmeetings.apache.org Delivered-To: mailing list dev@openmeetings.apache.org Received: (qmail 98343 invoked by uid 99); 26 May 2016 06:19:53 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 May 2016 06:19:53 +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 75B97180591 for ; Thu, 26 May 2016 06:19:53 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.448 X-Spam-Level: * X-Spam-Status: No, score=1.448 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-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-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id SLSkDKHEtPh0 for ; Thu, 26 May 2016 06:19:52 +0000 (UTC) Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 15AC65F4E3 for ; Thu, 26 May 2016 06:19:51 +0000 (UTC) Received: by mail-pa0-f48.google.com with SMTP id xk12so26515490pac.0 for ; Wed, 25 May 2016 23:19:51 -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 :cc; bh=1ihQ7UPRWoU0F+NoAzmbRPiL5ehYqfbRJGQl91LCejM=; b=DP9/ZpL1MSZAb7PBoHEPhgfAJqaU8mk82f5iW1K5DcLpDw1Y8ai/NJof/VbZytGKSP 0zbuVv3CRFN0HtWt2r0JcY2yk+1pYgwxLK1ldy21J4DN+dBrFPVeqA+nni3jr0n6qOCV IqsopTkv6+yoAylt72CURGcsnPkWdrp2TbQ5uAcR9Y5Xq4jCEEhblKKD+Vg0fHZUWkVF lNakgp4zaLLcvnpBkEQZWRS9du4rtlL2P3KNK50LmIdYG0nF4YBMzIdK/EdhYzTF62gy RppdBAJ07VdVclXFdk/P7ODwkHDCPLA9UN2ZmI66PZBeIx9UFZU+78ko4fMrUeQplZMo YxbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=1ihQ7UPRWoU0F+NoAzmbRPiL5ehYqfbRJGQl91LCejM=; b=Iew+0luadqR6PfGYDw6Top+J3dDF+ICJb+obwg8hq0nr3xCx6fobv94kGFVv8GSkhJ C+uANK9YTDNc3rWv4pgZ41+gAfZcDOHepz6rgCIkGjMYzW67uRRqPwrx4XiTpgm/IL77 vFApijY8oyuEszgBT460K2i2X6CD6fSyICxyMkSlS/m8xFk4+S2FXCaxny/utwpZcSno B6aAhEkYBHtjAsPiu7fSTzlfTK1BJe5Ki5c/rY1EyIJPaVDT7cgVNQBm9U1qF9L7aElf JQd55Ll1Bm56YTtSVv/k0WBN7QiUxTQAtTjC5smzdE8YCcm46jsMLheSXbCk6BjTCcuo 7iWA== X-Gm-Message-State: ALyK8tJx/c4/HPuJ79vfnDueQEbcyLtIbePnTiCKS7HyX5fhMwSwd+IQoRWL4JVh89DWHxFhBvhz83KEuTMfpQ== MIME-Version: 1.0 X-Received: by 10.66.65.109 with SMTP id w13mr11380716pas.142.1464243589736; Wed, 25 May 2016 23:19:49 -0700 (PDT) Received: by 10.66.252.105 with HTTP; Wed, 25 May 2016 23:19:49 -0700 (PDT) In-Reply-To: <5745B3F7.6020604@gmail.com> References: <5745B3F7.6020604@gmail.com> Date: Thu, 26 May 2016 12:19:49 +0600 Message-ID: Subject: Re: With regard to CalDAV4j and a sort of Status Update From: Maxim Solodovnik To: Ankush Mishra Cc: Sebastian Wagner , dev Content-Type: multipart/alternative; boundary=001a1133753807f4bf0533b8c723 archived-at: Thu, 26 May 2016 06:19:56 -0000 --001a1133753807f4bf0533b8c723 Content-Type: text/plain; charset=UTF-8 will try to answer inline On Wed, May 25, 2016 at 8:17 PM, Ankush Mishra wrote: > I have to bring this to the front, as stated in my previous report, > atleast 80% - 90% of the work is done with respect to the migration. > Problem, as I stated earlier was that Compatibility with respect to the > previous library had to be carried out. The thing is, in this part of > migration, I can't be certain of how long will the work take to complete, > because of the design issues that might arise, like changing whole response > classes and so on, might have to be looked into again. Like for example, > right now I could directly use the *jackrabbit* response classes, but it > turns out that CalDAV4j has it's own response classes which may or may not > be compatible with the *jackrabbit* ones, and it can't simply be > extended, as noted here. > > [1] > > So, what I'd like to propose is that I work on the migration of the > library in the background, while using the older version of the library. > Until, the newer version seems stable enough to be used. > OK with me I would propose the same > > Other than that, there are some things regarding the openmeetings-db, > AppointmentDTO class specifically. So, I have been mostly researching and > working on the Initialization of Events, and syncing. There are two > specific things which I need information about. If I'm going to implement > CalDAV, then: > > - I'd need to implement a sort of *Calendar Manager* of sorts. > Something in the lines of Google Calendar, where the default calendar every > user has is the *OM Calendar* which is a sort of public calendar, and > the rest of the calendars could either be a local calendar on the OM DB or > a CalDAV server. This would allow the creation/read/update/write to > calendars. This would require a whole new Entity Class and the rest of the > data associated with these calendars, per user. But this feels a bit heavy, > when we have multiple users. For the Calendars, the specifics, I still have > to look into. > > I can add OmCalendar entity and all DB/display processing , but I need to know what this entity should store .... Currently I see only calendar URL to be stored (to be able to display external calendar in OM) Any other fields? > > - > - AppointmentDTO specific, after debating on whether I should keep the > calendar data as ical or Appointment. I believe It'd be a better option to > stick with Appointment, since, it already exists. Has most if not all the > data. > > Specifically (the only one I know of), normally in CalDAV the *id* or *entity > tag* as it's called, is a string, which uniquely identifies the calendar > event, other than the *location*. There could be multiple ways of > implementing a new Appointment which support both the local and on network > events. > > > - Change the *id* to string. And treat all events with id's which come > as String. > - Along with *id* as String, have a boolean value specifying > whether it's on the CalDAV Server or on the OM Server. Treat strings as > long, when it's OM Server and as normal strings when a CalDAV. > - Set *icalid* for the CalDAV events instead of *uid*, just that it > might conflict with the InvitationManager, but not entirely sure. > > I believe icalid should be used as CalDAV id, currently it's autogenerated something and, I believe, it can be changed without any affect on something else > > > Any help or comments is appreciated, on the direction, I am taking. > [1] https://github.com/caldav4j/caldav4j/issues/59#issuecomment-221483973 > > -- > Ankush Mishra > > -- WBR Maxim aka solomax --001a1133753807f4bf0533b8c723--