saw303 / grails-ic-alender

iCalender Plugin for Grails
http://grails.org/plugin/ic-alendar
Other
8 stars 11 forks source link

Add Update/Cancel event support #19

Closed demon101 closed 7 years ago

demon101 commented 7 years ago

For update and delete of event STATUS, METHOD, SEQUENCE field is required http://stackoverflow.com/questions/45453/icalendar-and-event-updates-not-working-in-outlook

METHOD filed supported only in event, not calendar.

demon101 commented 7 years ago

@saw303 any estimations?

saw303 commented 7 years ago

Probably done by upcoming Monday or Tuesday. Grails 3.x or back port to Grails 2?

demon101 commented 7 years ago

@saw303 really good news. We are using grails 3.1

saw303 commented 7 years ago

Will this change work for your purpose?

calendar(method: 'REQUEST') {
     events {
          event start: new Date(), end: new Date(), description: 'A', 
                         summary: 'B', sequence: 12, status: 'CANCELLED', 
                         uid: '666', method: 'CANCEL'
     }
}

This will produce the following output

BEGIN:VCALENDAR
PRODID:-//Grails iCalendar plugin//NONSGML Grails iCalendar plugin//EN
VERSION:2.0
CALSCALE:GREGORIAN
METHOD:REQUEST
BEGIN:VEVENT
DTSTAMP:20170223T194523Z
DTSTART;TZID=Europe/Zurich:20170223T204500
DTEND;TZID=Europe/Zurich:20170223T204500
SUMMARY:B
UID:666
STATUS:CANCELLED
SEQUENCE:12
TZID:Europe/Zurich
DESCRIPTION:A
ORGANIZER:
METHOD:CANCEL
END:VEVENT
END:VCALENDAR
demon101 commented 7 years ago

@saw303 I think yes.

saw303 commented 7 years ago

Released https://bintray.com/saw303/plugins/org.grails.plugins%3AiCalendar/0.6.1