JavaXT
|
|||||||||
CalendarEvent ClassUsed to represent a calendar entry. TODOs: 1. Meeting reminders 2. Recurring events
Constructors CalendarEvent( String title, String description, String location, Mailbox organizer, javaxt.utils.Date startTime, int duration )
CalendarEvent( String exchangeID, Connection conn, ExtendedFieldURI[] AdditionalProperties )
Public MethodssetTimeZone( String timezone ) returns void Used to set the time zone for the event. This is important for calculating all day events. setTimeZone( java.util.TimeZone timezone ) returns void Used to set the time zone for the event. This is important for calculating all day events. setBody( String description, String format ) returns void Used to set the content of the meeting invite (e.g. purpose, agenda, address, notes, etc.)
getAvailability( ) returns String Returns the organizer's availability during this event (LegacyFreeBusyStatus). Values include "Free", "Busy", "Tentative", "OOF" (out of office), and "NoData". setAvailability( String freeBusyStatus ) returns void Used to set the organizer's availability during this event.
getAttendees( ) returns java.util.HashMap<Mailbox, Boolean> Returns a HashMap with a list of attendees associated with this event. The key in the HashMap represents a Mailbox item and the value is a boolean used to indicate whether the attendee is required. setAttendees( java.util.HashMap<Mailbox, Boolean> attendees ) returns void Used to set attendees associated with this event. addAttendee( Mailbox attendee, boolean isRequired ) returns void Used to add an attendee to this event. removeAttendee( Mailbox attendee ) returns void Used to remove an attendee from this event. setStartTime( java.util.Date startTime ) returns void Used to set the start time of the event using a java.util.Date. setStartTime( javaxt.utils.Date startTime ) returns void Used to set the start time of the event using a javaxt.utils.Date. setStartTime( String startTime ) returns void Used to set the start time using a String. If the method fails to parse the string, the new value will be ignored. setEndTime( java.util.Date endTime ) returns void Used to set the end time of the event using a java.util.Date. setEndTime( javaxt.utils.Date endTime ) returns void Used to set the end time of the event using a javaxt.utils.Date. setEndTime( String endTime ) returns void Used to set the end time using a String. If the method fails to parse the string, the new value will be ignored. getDuration( String units ) returns long Returns the duration of the meeting/event
isAllDayEvent( ) returns boolean Returns a boolean used to indicate whether this is an all day event. Note that the logic only works if the timezone has been set. save( Connection conn ) returns String Used to save/update an event. Returns the Exchange ID for the item. delete( Connection conn, boolean notify ) returns void Used to delete an event. Provides an option to notify invitees. |