getOccurrence() on VEvent with RRule

Help
Tourn
2012-06-13
2013-06-05
  • Tourn

    Tourn - 2012-06-13

    Hello

    I'm currently using ical4j-1.0.3

    I got an Event recurring for a total of 5 Events with a RRule. I want to have one VEvent for each occurrence. VEvent.calculateRecurrenceSet() in combination with VEvent.getOccurrence() sounded like the way to go. While calculateRecurrenceSet() returns a list 5 periods correctly, getOccurrence() will only return a VEvent for the first period, and null for the rest of them.

    Another Issue is that, when one of the occurrences is edited (e.g. declined by another user) another VEvent entry is generated in the .ics file, which then pops up as another event in addition to the one I'm supposed to get from getOccurrence().

    Find a JUnit test case and a sample .ics attached via Pastebin, since pasting directly into the post seemes to mark my message as spam.
    RecurTest.java http://pastebin.com/S8TRVzju
    test.ics http://pastebin.com/mSpzccHL

    Am I missing something, is my approach completely wrong or is this a bug?
    Thank you for any feedback.

     
  • Tourn

    Tourn - 2012-07-18

    What i am trying to achieve with this is having a List of POJOs containing start date, end date and summary, so i need a recurring VEvent split up into multiple objects. Does anybody have an idea how to accomplish this? Is there another way?

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks