CalendarEvent Class

Used to represent a calendar entry. TODOs: 1. Meeting reminders 2. Recurring events

Constructors

CalendarEvent( javaxt.exchange.CalendarEvent event )
CalendarEvent( String title, String description, String location, Mailbox organizer, javaxt.utils.Date startTime, int duration )
CalendarEvent( String exchangeID, Connection conn, ExtendedFieldURI[] AdditionalProperties )
CalendarEvent( String exchangeID, Connection conn )
CalendarEvent( String iCalendar )

Public Methods

setTimeZone( 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.
getSubject( ) returns String
Returns a descriptive title for this event.
setSubject( String title ) returns void
Used to set a descriptive title for this event.
getBody( ) returns String
Used to get the content of the meeting invite.
setBody( String description, String format ) returns void
Used to set the content of the meeting invite (e.g. purpose, agenda, address, notes, etc.)
description
formatText format ("Best", "HTML", or "Text").
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.
freeBusyStatusValues include "Free", "Busy", "Tentative", "OOF" (out of office), and "NoData".
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.
removeAttendees( ) returns void
Removes all attendees 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.
getStartTime( ) returns javaxt.utils.Date
Returns the start time.
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.
getEndTime( ) returns javaxt.utils.Date
getDuration( String units ) returns long
Returns the duration of the meeting/event
unitsUnits of measure (e.g. hours, minutes, seconds, weeks, months, years, etc.)
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.
setAllDayEvent( javaxt.utils.Date date ) returns void
setAllDayEvent( String date ) returns void
getLocation( ) returns String
Returns the location of this event.
setLocation( String location ) returns void
Used to set the location of this event.
getOrganizer( ) returns Mailbox
setOrganizer( Mailbox organizer ) returns void
getReminder( ) returns Integer
setReminder( Integer reminder ) returns void
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.
toString( ) returns String
Returns a string representation of this item.