Share

Domingo - Java-API to Lotus Notes/Domino

Tracker: Patches

5 MailDatabase - getObjects(Calendar, Calendar) - ID: 1818833
Last Update: Comment added ( d-rizzle )

Attached is a proposed patch for MailDatabase.getObjects() for grabbing
calendar objects for a specific range. In this case, I want to include any
and all instances of a repeating event. This is handled by getting the
document of the calendar entry and checking for occurrences of repeating
events. For instance, if I create an event on 10/01/2007 and set it to
repeat weekly, I found that the entry would store the initial date
(10/01/2007) as the startdate, therefore if I wanted all entries with a
startdate of 10/02/2007 it wouldn't find it.

This patch uses the occurrences to see if, in this case, 10/02/2007 is in
the list, if so, creates a copy to pass back to the user.

A bit kludgy, and a bit slow (because of the 'getDocumentByUNID'?)

Thoughts?

Dave


Dave Rowe ( d-rizzle ) - 2007-10-23 20:52

5

Closed

Fixed

Dave Rowe

groupware

Unstable (example)

Public


Comments ( 2 )

Date: 2007-10-24 13:50
Sender: d-rizzle


Committed. 10/24/2007.


Date: 2007-10-23 22:41
Sender: kriedeProject AdminAccepting Donations


Hi Dan,

it doesn't sound perfect, but better than nothing. check it in!
At first functionality, later performance!
I'll think about other options.

Kurt


Attached File ( 1 )

Filename Description Download
RepeatingEvents_v1.patch MailDatabase.getObjects implementation Download

Changes ( 6 )

Field Old Value Date By
status_id Open 2007-10-24 13:50 d-rizzle
resolution_id Accepted 2007-10-24 13:50 d-rizzle
close_date - 2007-10-24 13:50 d-rizzle
resolution_id None 2007-10-23 22:41 kriede
assigned_to kriede 2007-10-23 22:41 kriede
File Added 251044: RepeatingEvents_v1.patch 2007-10-23 20:52 d-rizzle