|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.compoze.exchange.webdav.AbstractItem | +--com.compoze.exchange.webdav.AbstractMessage | +--com.compoze.exchange.webdav.Appointment
This class extends AbstractMessage
to represent an item that is
an appointment in the Exchange store.
The following table contains the properties defined in the Exchange store schema
and mappings to their corresponding Java enumeration and methods:
// Add appointment Calendar calendar = Calendar.getInstance(); calendar.add(Calendar.MINUTE, 5); Date startDate = calendar.getTime(); calendar.add(Calendar.MINUTE, 30); Date endDate = calendar.getTime(); CalendarFolder calendarFolder = m_session.getCalendarFolder(); Appointments appointments = calendarFolder.getAppointments(startDate, endDate); Appointment appt = new Appointment("New appointment", new DateRange(startDate, endDate), TimeZoneId.EASTERN); appointment.setLocation("Appointment location"); appointment.setBody("This appointment is non-recurring."); appointments.add(appt);
To create a recurring appointment, the following must be set:
The constructor Appointment(String, DateRange, DateRecurrence, TimeZoneId)
is provided to
allocate a recurring Appointment
object.
Below is an example of how to create a recurring appointment:
Calendar calendar = Calendar.getInstance(); calendar.add(Calendar.MINUTE, 5); Date startDate = calendar.getTime(); calendar.add(Calendar.MINUTE, 30); Date endDate = calendar.getTime(); CalendarFolder calendarFolder = m_session.getCalendarFolder(); Appointments appointments = calendarFolder.getAppointments(startDate, endDate); // Recur every second week for 4 months calendar.add(Calendar.MONTH, 4); Date untilDate = calendar.getTime(); DateRecurrence pattern = DateRecurrence.createEveryNWeeks(startDate, 2, untilDate); Appointment recurAppt = new Appointment("Recur every second week for four months", new DateRange(startDate, endDate), pattern, TimeZoneId.EASTERN); recurAppt.setLocation("Recurring appointment location"); recurAppt.setBody("This appointment is recurring."); appointments.add(recurAppt);
Constructor Summary | |
Appointment(java.util.Date date,
boolean bAllDay,
TimeZoneId timeZoneID)
Constructor. |
|
Appointment(java.util.Date startDate,
java.util.Date endDate,
TimeZoneId timeZoneID)
Constructor. |
|
Appointment(java.util.Date startDate,
java.util.Date endDate,
TimeZoneId timeZoneID,
DateRecurrence pattern)
Constructs a recurring Appointment object. |
|
Appointment(java.lang.String sSubject,
java.util.Date date,
boolean bAllDay,
TimeZoneId timeZoneID)
Constructor. |
|
Appointment(java.lang.String sSubject,
java.util.Date startDate,
java.util.Date endDate,
TimeZoneId timeZoneID)
Constructor. |
|
Appointment(java.lang.String sSubject,
java.util.Date startDate,
java.util.Date endDate,
TimeZoneId timezoneId,
DateRecurrence pattern)
Constructs a recurring Appointment object. |
|
Appointment(java.lang.String sSubject,
DateRange dateRange,
DateRecurrence pattern,
TimeZoneId timezoneId)
Constructs a recurring Appointment object. |
|
Appointment(java.lang.String sSubject,
DateRange dateRange,
TimeZoneId timeZoneID)
Constructs an Appointment object. |
Method Summary | |
Meeting |
accept()
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverAccept() |
Meeting |
acceptTentative()
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverAcceptTentative() |
java.lang.Object |
clone()
Creates and returns a copy of this object. |
Meeting |
decline()
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverDecline() |
void |
delete(boolean bAllOccurences)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverDelete(boolean) |
java.lang.String |
getAppointmentUID()
Gets the unique id of this appointment or meeting. |
BusyStatus |
getBusyStatus()
Gets the status of whether the attendee is busy at the time of this appointment on their calendar. |
java.util.Date |
getCreated()
Gets the date and time that the organizer created this appointment or meeting. |
DateRange |
getDateRange()
Gets the start and end date for this appointment. |
static java.util.List |
getDefaultProperties()
Gets a list of default properties pertaining to an appointment/meeting. |
java.lang.String |
getDescriptionURL()
Gets the URL of a resource that contains a description of this appointment or meeting. |
int |
getDuration()
Gets the duration, in seconds, of this appointment. |
int |
getDurationMintues()
Gets the duration, in minutes, of this appointment. |
java.util.Date |
getEndDate()
Gets the date and time when this appointment ends. |
double |
getGeoLatitude()
Gets the geographical latitude of the location of this appointment. |
double |
getGeoLongitude()
Gets the geographical longitude of the location of this appointment. |
InstanceType |
getInstanceType()
Gets the instance type of this appointment. |
java.lang.String |
getLocation()
Gets the location of this appointment. |
java.lang.String |
getLocationURL()
Gets URL where you can access location information in HTML format. |
MeetingStatus |
getMeetingStatus()
Gets the current status of this appointment. |
java.util.List |
getOptionalAttendees()
Gets a list of attendees optional to meet for this appointment |
java.lang.String |
getOptionalAttendeesString()
Gets the string representation of a list of attendees optional to meet for this appointment. |
java.lang.String |
getOrganizer()
Gets the orgainzer (email alais) for this appointment. |
Appointment |
getParentAppointment()
Gets the parent appointment. |
Appointment |
getParentAppointment(java.util.List properties)
Gets the parent appointment. |
Priority |
getPriority()
Gets the priority level for this appointment. |
static java.util.List |
getProperties()
Gets a list of default properties pertaining to an appointment. |
java.util.Date |
getRecurrenceID()
Gets a specific instance of a recurring appointment. |
DateRecurrence |
getRecurrencePattern()
Gets the rule for the pattern that defines a recurring appointment. |
int |
getReminderOffset()
Gets the number of seconds before an appointment starts that a reminder is to be displayed. |
int |
getReminderOffsetMinutes()
Gets the number of minutes before an appointment starts that a reminder is to be displayed. |
java.util.Date |
getReminderTime()
Gets the reminder time for this appointment. |
java.util.Date |
getReplyTime()
Gets the date and time when an attendee replied to a meeting request. |
java.util.List |
getRequiredAttendees()
Gets a list of attendees required to meet for this appointment |
java.lang.String |
getRequiredAttendeesString()
Gets the string representation of a list of attendees required to meet for this appointment. |
java.util.List |
getResources()
Gets a list of resources, such as rooms and video equipment, that are available for an appointment. |
java.lang.String |
getResourcesString()
Gets the string representation of a list of resources, such as rooms and video equipment, that are available for an appointment. |
ResponseStatus |
getResponseStatus()
Gets the response status. |
Sensitivity |
getSensitivity()
Gets the sensitivity level of this appointment. |
java.util.Date |
getStartDate()
Gets the date and time when this appointment starts. |
AppointmentStatus |
getStatus()
Gets the status of this appointment. |
java.lang.String |
getSubject()
Gets the subject of this appointment. |
java.lang.String |
getSubject(int iLength)
Gets the subject of this appointment. |
java.lang.String |
getTimeZone()
Gets the time zone. |
TimeZoneId |
getTimeZoneID()
Gets the time zone identifier. |
boolean |
isAllDayEvent()
Indicates whether this appointment is an all day event. |
boolean |
isRecurring()
Checks if the appointment is recurring. |
boolean |
isReminderSet()
Determines if the reminder is set for this appointment. |
boolean |
isResponseRequested()
Gets if the originator of the meeting requested a response. |
boolean |
isSpanning()
Determine if this appointment/event covers at least 24 hours. |
Meeting |
respond(ResponseStatus status)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverRespond(ResponseStatus) |
Meeting |
respond(ResponseStatus status,
Folder folder)
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverRespond(ResponseStatus, Folder) |
com.compoze.util.webdav.WebdavResponse30 |
send()
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverSend() |
com.compoze.util.webdav.WebdavResponse30 |
sendCancellation()
Deprecated. This method has been deprecated and will be removed by version 3.1. Replaced with serverSendCancellation() |
Meeting |
serverAccept()
Request the server to accept this appointment and return a meeting response. |
Meeting |
serverAcceptTentative()
Request the server to tentatively accept this appointment and return a meeting response. |
Meeting |
serverDecline()
Request the server to decline this appointment and return a meeting response. |
void |
serverDelete(boolean bAllOccurences)
Requests the server to delete this and all occurrences of this appointment (the appointment is removed permanently).. |
FreeBusy[] |
serverGetFreeBusy(java.util.List listAttendees)
Queries the server for free busy information for each of the specified attendees |
FreeBusy[] |
serverGetFreeBusy(java.util.List listAttendees,
java.util.Date startDate,
java.util.Date endDate,
int iInterval)
Queries the server for free busy information for each of the specified attendees |
Appointment |
serverGetParentAppointment(java.util.List properties)
Queries the server to get the parent appointment (the master instance) of an instance of or exception to a recurrence pattern. |
Meeting |
serverRespond(ResponseStatus status)
Request the server to respond to this appointment and return a meeting response. |
Meeting |
serverRespond(ResponseStatus status,
Folder folder)
Request the server to respond to this appointment and return a meeting response. |
void |
serverSend()
Request the server to send a meeting request this appointment. |
void |
serverSendCancellation()
Request the server to send a meeting cancellation this appointment. |
void |
serverUpdate(boolean bServerRefresh)
Requests the server to update the appointment of any changed properties. |
void |
setAllDayEvent(boolean bAllDayEvent)
Sets whether the appointment or meeting is scheduled for an entire day. |
void |
setAppointmentUID(java.lang.String sUniqueId)
Sets the unique identifier of this appointment or meeting. |
void |
setBccAddresses(java.util.List addresses)
Sets the blind carbon copy (Bcc) addresses. |
void |
setBusyStatus(BusyStatus busyStatus)
Sets the status of whether the attendee is busy at the time of this appointment on their calendar. |
void |
setDateRange(DateRange dateRange)
Sets the start and end date for this appointment. |
void |
setDescriptionURL(java.lang.String sDescriptionURL)
Sets the URL of a resource that contains a description of this appointment or meeting. |
void |
setDescriptionURL(java.net.URL descriptionURL)
Sets the URL of a resource that contains a description of this appointment or meeting. |
void |
setDuration(int iDuration)
Sets the duration, in seconds, of this appointment. |
void |
setDurationMinutes(int iDuration)
Sets the duration, in minutes, of this appointment. |
void |
setEndDate(java.util.Date endDate)
Sets the date and time when this appointment ends. |
void |
setFrom(com.compoze.util.mail.InternetAddress[] addresses)
Sets "From" field with internet addresses of whom this message was sent. |
void |
setFrom(java.lang.String sAddresses)
Sets "From" field with sequence of internet addresses of whom this message was sent. |
void |
setFromAddress(java.lang.String sFromAddress)
Sets the address from whom the message was sent. |
void |
setFromAddresses(java.util.List addresses)
Sets the addresses from whom the message was sent. |
void |
setGeoLatitude(double dGeoLatitude)
Sets the geographical latitude of the location of this appointment. |
void |
setGeoLongitude(double dGeoLongitude)
Sets the geographical longitude of the location of this appointment/meeting. |
void |
setInstanceType(InstanceType type)
Sets the instance type of this appointment. |
void |
setLocation(java.lang.String sLocation)
Sets the location of this appointment. |
void |
setLocationURL(java.lang.String sLocationURL)
Sets URL where you can access location information in HTML format |
void |
setLocationURL(java.net.URL locationURL)
Sets URL where you can access location information in HTML format |
void |
setOptionalAttendees(com.compoze.util.mail.InternetAddress[] attendeeList)
Sets internet addresses of attendees optional to meet for this appointment. |
void |
setOptionalAttendees(java.util.List attendees)
Sets a list of attendees optional to meet for this appointment |
void |
setOptionalAttendees(java.lang.String sAttendeeList)
Sets internet addresses of attendees optional to meet for this appointment. |
void |
setOrganizer(java.lang.String sOrganizer)
Sets the orgainzer (email alias) for this appointment. |
void |
setPriority(Priority priority)
Sets the priority level for this appointment. |
void |
setRecurrencePattern(DateRecurrence pattern)
Sets the rule for the pattern that defines a recurring appointment. |
void |
setReminderOffset(int iSeconds)
Gets the number of seconds before an appointment starts that a reminder is to be displayed. |
void |
setReminderOffsetMinutes(int iMinutes)
Sets the number of minutes before an appointment starts that a reminder is to be displayed. |
void |
setReminderSet(boolean bReminderSet)
Sets the reminder as set for this appointment. |
void |
setReminderTime(java.util.Date reminderTime)
Sets the reminder time for this appointment. |
void |
setRequiredAttendees(com.compoze.util.mail.InternetAddress[] attendeeList)
Sets internet addresses of attendees required to meet for this appointment. |
void |
setRequiredAttendees(java.util.List attendees)
Sets a list of attendees required to meet for this appointment |
void |
setRequiredAttendees(java.lang.String sAttendeeList)
Sets internet addresses of attendees required to meet for this appointment. |
void |
setResources(com.compoze.util.mail.InternetAddress[] resourceList)
Sets internet addresses of resources, such as rooms and video equipment, that are available for this appointment. |
void |
setResources(java.util.List resources)
Sets a list of resources, such as rooms and video equipment, that are available for an appointment. |
void |
setResources(java.lang.String sResourceList)
Sets internet addresses of resources, such as rooms and video equipment, that are available for this appointment. |
void |
setResponseRequested(boolean bReponseRequested)
Sets if the originator of the meeting requested a response. |
void |
setResponseStatus(ResponseStatus status)
Sets the response status. |
void |
setSensitivity(Sensitivity sensitivity)
Sets the sensitivity level of this appointment. |
void |
setStartDate(java.util.Date startDate)
Sets the date and time when this appointment starts. |
void |
setStatus(AppointmentStatus status)
Sets the status of this appointment. |
void |
setSubject(java.lang.String sSubject)
Sets the subject of this appointment. |
void |
setTimeZone(java.lang.String sTimeZone)
Sets the time zone. |
void |
setTimeZoneID(TimeZoneId timeZoneID)
Sets the time zone identifier. |
java.lang.String |
toString()
Returns a string representation of the object. |
Methods inherited from class com.compoze.exchange.webdav.AbstractItem |
copy, copy, copy, createFilename, delete, equals, getComment, getContentClass, getCreationDate, getDateLastModified, getDisplayName, getFile, getHRef, getID, getParentFolder, getPermanentURL, getUID, isFolder, isHidden, isReadOnly, isRoot, move, move, move, serverCopyTo, serverCopyTo, serverCopyTo, serverCopyTo, serverDelete, serverGetParentFolder, serverMoveTo, serverMoveTo, serverMoveTo, serverMoveTo, serverUpdate, setComment, setContentClass, setContentClass, setHidden, setReadOnly, setReleased, setType, setUID, update, update, validate |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Appointment(java.util.Date date, boolean bAllDay, TimeZoneId timeZoneID)
date
- the date of this appointment.bAllDay
- true
to make thi appointment an all day event;
false
otherwise.timeZoneID
- the timezone ID (must not be null
).public Appointment(java.lang.String sSubject, java.util.Date date, boolean bAllDay, TimeZoneId timeZoneID)
sSubject
- the subject of this appointment.date
- the date of this appointment.bAllDay
- true
to make this appointment an all day event;
false
otherwise.timeZoneID
- the timezone ID (must not be null
).public Appointment(java.util.Date startDate, java.util.Date endDate, TimeZoneId timeZoneID)
startDate
- the start date of this appointment (must not be null
).endDate
- the end date of this appointment.timeZoneID
- the timezone ID (must not be null
).public Appointment(java.lang.String sSubject, java.util.Date startDate, java.util.Date endDate, TimeZoneId timeZoneID)
sSubject
- the subject of this appointment.startDate
- the start date of this appointment (must not be null
.endDate
- the end date of this appointment.timeZoneID
- the timezone ID (must not be null
).public Appointment(java.util.Date startDate, java.util.Date endDate, TimeZoneId timeZoneID, DateRecurrence pattern)
Appointment
object.startDate
- the start date of this appointment (must not be null
).endDate
- the end date of this appointment.timeZoneID
- the timezone ID (must not be null
).pattern
- the date recurrence pattern (must not be null
)public Appointment(java.lang.String sSubject, java.util.Date startDate, java.util.Date endDate, TimeZoneId timezoneId, DateRecurrence pattern)
Appointment
object.sSubject
- the subject of this appointment.startDate
- the start date of this appointment (must not be null
).endDate
- the end date of this appointment.timeZoneID
- the timezone ID (must not be null
).pattern
- the date recurrence pattern (must not be null
)public Appointment(java.lang.String sSubject, DateRange dateRange, TimeZoneId timeZoneID)
Appointment
object.sSubject
- the subject of the appointment.dateRange
- the start and end time of the appointment
(must not be null
).timeZoneID
- the timezone ID (must not be null
).public Appointment(java.lang.String sSubject, DateRange dateRange, DateRecurrence pattern, TimeZoneId timezoneId)
Appointment
object.sSubject
- the subject of the appointment or meeting (must not be
null
or empty)dateRange
- the start and end time of the appointment or meeting
(must not be null
)pattern
- the date recurrence pattern (must not be null
)timezoneID
- the timezone ID (must not be null
)Method Detail |
public java.lang.String getTimeZone()
All time zone definintions are defined as a VTIMEZONE calendar component. For instance, this would be the definiton for Eastern Standard Time as a VTIMEZONE calendar component:
BEGIN:VTIMEZONE TZID:GMT -0500 (Standard) / GMT -0400 (Daylight) BEGIN:STANDARD DTSTART:19671029T020000 RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10 TZOFFSETFROM:-0400 TZOFFSETTO:-0500 END:STANDARD BEGIN:DAYLIGHT DTSTART:19670402T020000 RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4 TZOFFSETFROM:-0500 TZOFFSETTO:-0400 END:DAYLIGHT END:VTIMEZONE
For more information pertaining to iCalendar components, see specification RFC 2445 "Internet Calendaring and Scheduling Core Object Specification (iCalendar)".
null
)CalendarProperty.TIME_ZONE
,
getTimeZoneID()
public void setTimeZone(java.lang.String sTimeZone)
TimeZoneId
. If setting a time zone definition,
setting a time zone id will be ignored.
All time zone definintions must be defined as a VTIMEZONE calendar component. For instance, this would be the definiton for Eastern Standard Time as a VTIMEZONE calendar component:
BEGIN:VTIMEZONE TZID:GMT -0500 (Standard) / GMT -0400 (Daylight) BEGIN:STANDARD DTSTART:19671029T020000 RRULE:FREQ=YEARLY;BYDAY=-1SU;BYMONTH=10 TZOFFSETFROM:-0400 TZOFFSETTO:-0500 END:STANDARD BEGIN:DAYLIGHT DTSTART:19670402T020000 RRULE:FREQ=YEARLY;BYDAY=1SU;BYMONTH=4 TZOFFSETFROM:-0500 TZOFFSETTO:-0400 END:DAYLIGHT END:VTIMEZONE
For more information pertaining to iCalendar components, see specification RFC 2445 "Internet Calendaring and Scheduling Core Object Specification (iCalendar)".
sTimeZone
- the time zone as a VTIMEZONE calendar componentCalendarProperty.TIME_ZONE
,
setTimeZoneID(TimeZoneId)
public boolean isReminderSet()
true
if reminder is set for the appointment.public void setReminderSet(boolean bReminderSet)
true
),
set either a reminder time (setReminderTime(Date)
or a reminder offset
(setReminderOffset(long)
). If reminder is not set (false
),
the reminder for this appointment is turned off.bReminderSet
- true
if reminder is set for the appointment;
false
otherwise.public java.util.Date getReminderTime()
null
if not set.public void setReminderTime(java.util.Date reminderTime)
reminderTime
- the reminder time for the appointment
(must not be null
).public int getReminderOffsetMinutes()
ExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.REMINDER_OFFSET
public void setReminderOffsetMinutes(int iMinutes)
iMinutes
- the reminder in minutesExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.REMINDER_OFFSET
public int getReminderOffset()
ExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.REMINDER_OFFSET
public void setReminderOffset(int iSeconds)
iSeconds
- the reminder in secondsExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.REMINDER_OFFSET
public AppointmentStatus getStatus()
null
if the appointment status
is not setpublic void setStatus(AppointmentStatus status)
status
- the status of the appointment (may not be null
)public ResponseStatus getResponseStatus()
null
if not set.MapiProperty.APPOINTMENT_RESPONSE_STATUS
public void setResponseStatus(ResponseStatus status)
status
- the response status.MapiProperty.APPOINTMENT_RESPONSE_STATUS
public java.lang.String getSubject()
getSubject
in class AbstractMessage
null
if not setExchangeRuntimeException
- if this object has been released and can
no longer be usedHttpMailProperty.SUBJECT
public java.lang.String getSubject(int iLength)
iLength
- the maximum length of the result (string plus "...")null
if not setHttpMailProperty.SUBJECT
public void setSubject(java.lang.String sSubject)
setSubject
in class AbstractMessage
sSubject
- the subject of this appointmentExchangeRuntimeException
- if this object has been released and can
no longer be usedHttpMailProperty.SUBJECT
public boolean isAllDayEvent()
true
if appointment is all day,
false
otherwise. All Day Events run from
midnight to midnight over the course of at least 1 day.public boolean isSpanning()
true
if appointment spans at least 24 hours,
false
otherwisepublic void setAllDayEvent(boolean bAllDayEvent)
bAllDayEvent
- true
if event is scheduled all dayExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.ALLDAYEVENT
public BusyStatus getBusyStatus()
null
if not setExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.BUSY_STATUS
public void setBusyStatus(BusyStatus busyStatus)
busyStatus
- the busy status of the attendeeExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.BUSY_STATUS
public java.util.Date getCreated()
null
if not setExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.CREATED
public java.lang.String getDescriptionURL()
null
if not setExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.DESCRIPTION_URL
public void setDescriptionURL(java.net.URL descriptionURL)
descriptionURL
- the URL to the descriptionExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.DESCRIPTION_URL
public void setDescriptionURL(java.lang.String sDescriptionURL)
sDescriptionURL
- the URL to the descriptionExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.DESCRIPTION_URL
public java.util.Date getEndDate()
ExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.DATE_END
public void setEndDate(java.util.Date endDate)
endDate
- the end dateExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.DATE_END
public DateRange getDateRange()
ExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.DATE_START
,
CalendarProperty.DATE_END
public void setDateRange(DateRange dateRange)
dateRange
- the date rangeExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.DATE_START
,
CalendarProperty.DATE_END
public java.util.Date getStartDate()
ExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.DATE_START
public void setStartDate(java.util.Date startDate)
startDate
- the start dateExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.DATE_START
public int getDurationMintues()
CalendarProperty.DURATION
public void setDurationMinutes(int iDuration)
iDuration
- the duration in minutesCalendarProperty.DURATION
public int getDuration()
CalendarProperty.DURATION
public void setDuration(int iDuration)
iDuration
- the duration in secondsExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.DURATION
public double getGeoLatitude()
ExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.GEO_LATITUDE
public void setGeoLatitude(double dGeoLatitude)
dGeoLatitude
- the latitude of the locationExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.GEO_LATITUDE
public double getGeoLongitude()
ExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.GEO_LONGITUDE
public void setGeoLongitude(double dGeoLongitude)
dGeoLongitude
- the geolongitude of the locationExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.GEO_LONGITUDE
public InstanceType getInstanceType()
ExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.INSTANCE_TYPE
public void setInstanceType(InstanceType type)
type
- the instance type of the appointment.ExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.INSTANCE_TYPE
public java.lang.String getLocation()
null
if not setExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.LOCATION
public void setLocation(java.lang.String sLocation)
sLocation
- the locationExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.LOCATION
public java.lang.String getLocationURL()
null
if not setExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.LOCATION_URL
public void setLocationURL(java.net.URL locationURL)
locationURL
- the url to location informationExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.LOCATION_URL
public void setLocationURL(java.lang.String sLocationURL)
sLocationURL
- the url to location informationExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.LOCATION_URL
public MeetingStatus getMeetingStatus()
null
if not setExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.MEETING_STATUS
public java.lang.String getOrganizer()
null
if not setExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.ORGANIZER
public void setOrganizer(java.lang.String sOrganizer)
sOrganizer
- orgainzer(email address)ExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.ORGANIZER
public Priority getPriority()
null
if not setExchangeRuntimeException
- if this object has been released and can
no longer be usedHttpMailProperty.PRIORITY
public void setPriority(Priority priority)
priority
- the priority levelExchangeRuntimeException
- if this object has been released and can
no longer be usedHttpMailProperty.PRIORITY
public boolean isRecurring()
true
if the appointment is recurring; false
otherwiseExchangeRuntimeException
- if this object has been released and can
no longer be usedpublic DateRecurrence getRecurrencePattern()
InstanceType.MASTER
).
If this object is an instance(InstanceType.INSTANCE
) or exception
InstanceType.EXCEPTION
of the recurrence pattern, one must call
getParentAppointment()
and then call getRecurrencePattern()
on the returned appointment object.
- Returns:
- the recurrence pattern or
null
if the appointment is not recurring - Throws:
ExchangeRuntimeException
- if this object has been released and can
no longer be used- See Also:
getParentAppointment()
public void setRecurrencePattern(DateRecurrence pattern)
InstanceType.SINGLE
or a master recurring appointment (instance type of InstanceType.MASTER
).pattern
- the recurrence patternExchangeRuntimeException
- if this object has been released and can
no longer be usedUnsupportedOperationException
- if trying to set the reccurrence when
the appointment is an instance of or exception to the recurrence patthernpublic java.util.Date getRecurrenceID()
null
if not setExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.RECURRENCE_ID
public java.util.Date getReplyTime()
null
if not setExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.REPLY_TIME
public boolean isResponseRequested()
true
if originator requested a responseExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.RESPONSE_REQUESTED
public void setResponseRequested(boolean bReponseRequested)
bResponseRequested
- true
if originator requested a responseExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.RESPONSE_REQUESTED
public Sensitivity getSensitivity()
getSensitivity
in class AbstractMessage
null
if not setExchangeRuntimeException
- if this object has been released and can
no longer be usedExchangeProperty.SENSITIVITY
public void setSensitivity(Sensitivity sensitivity)
setSensitivity
in class AbstractMessage
sensitivity
- the sensitivity levelExchangeRuntimeException
- if this object has been released and can
no longer be usedExchangeProperty.SENSITIVITY
public TimeZoneId getTimeZoneID()
ExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.TIME_ZONE_ID
,
getTimeZone()
public void setTimeZoneID(TimeZoneId timeZoneID)
timeZoneID
- the time zone identifierExchangeRuntimeException
- if this object has been released and can
no longer be usedCalendarProperty.TIME_ZONE_ID
,
setTimeZone(String)
public java.lang.String getAppointmentUID()
CalendarProperty.APPOINTMENT_UID
public void setAppointmentUID(java.lang.String sUniqueId)
sUniqueId
- the unique identifier of this appointment or meeting.CalendarProperty.APPOINTMENT_UID
public Appointment getParentAppointment() throws ExchangeException
IntanceType.INSTANCE
or IntanceType.EXCEPTION
of a recurring appointment.ExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedUnsupportedOperationException
- if appointment is a non-recurring
appointment or is the master instance of a recurring appointmentpublic Appointment getParentAppointment(java.util.List properties) throws ExchangeException
IntanceType.INSTANCE
or IntanceType.EXCEPTION
of a recurring appointment.properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)ExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedUnsupportedOperationException
- if appointment is a non-recurring
appointment or is the master instance of a recurring appointmentpublic Appointment serverGetParentAppointment(java.util.List properties) throws ExchangeException
properties
- list of AbstractProperty
objects representing
Exchange WebDAV properties to query from the Exchange store
(must not be null
)ExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedjava.lang.IllegalArgumentException
- if properties are not specifiedUnsupportedOperationException
- if appointment is a non-recurring
appointment or is the master instance of a recurring appointmentpublic java.lang.String getRequiredAttendeesString()
null
if not setExchangeRuntimeException
- if this object has been released and can
no longer be usedMailHeaderProperty.TO
public java.util.List getRequiredAttendees()
String
objects representing internet addresses
of required attendee; or an empty list if not setMailHeaderProperty.TO
public void setRequiredAttendees(java.util.List attendees)
attendees
- list of String
objects representing internet
addresses of required attendeeMailHeaderProperty.TO
public void setRequiredAttendees(java.lang.String sAttendeeList) throws com.compoze.util.mail.AddressException
sAttendeeList
- sequence of internet addressescom.compoze.util.mail.AddressException
- if parsing of internet addresses failMailHeaderProperty.TO
public void setRequiredAttendees(com.compoze.util.mail.InternetAddress[] attendeeList)
attendeeList
- array of InternetAddress
objectsMailHeaderProperty.TO
public java.lang.String getOptionalAttendeesString()
null
if not setExchangeRuntimeException
- if this object has been released and can
no longer be usedMailHeaderProperty.CC
public java.util.List getOptionalAttendees()
String
objects representing internet addresses
of optional attendee; or an empty list if not setMailHeaderProperty.CC
public void setOptionalAttendees(java.util.List attendees)
attendees
- list of String
objects representing internet
addresses of required attendeeMailHeaderProperty.CC
public void setOptionalAttendees(java.lang.String sAttendeeList) throws com.compoze.util.mail.AddressException
sAttendeeList
- sequence of internet addressescom.compoze.util.mail.AddressException
- if parsing of internet addresses failMailHeaderProperty.CC
public void setOptionalAttendees(com.compoze.util.mail.InternetAddress[] attendeeList)
attendeeList
- array of InternetAddress
objectsMailHeaderProperty.CC
public java.lang.String getResourcesString()
Please note, this method does not return the resources of an appointment if those resources have been set using Outlook or OWA. This is bug and has been confirmed by Microsoft.
null
if not setExchangeRuntimeException
- if this object has been released and can
no longer be used.MailHeaderProperty.BCC
public java.util.List getResources()
Please note, this method does not return the resources of an appointment if those resources have been set using Outlook or OWA. This is bug and has been confirmed by Microsoft.
String
objects representing internet addresses
of resources; or an empty list if not setExchangeRuntimeException
- if this object has been released and can
no longer be used.MailHeaderProperty.BCC
public void setResources(java.util.List resources)
resources
- list of String
objects representing internet
addresses of resourcesExchangeRuntimeException
- if this object has been released and can
no longer be used.MailHeaderProperty.BCC
public void setResources(java.lang.String sResourceList) throws com.compoze.util.mail.AddressException
sResourceList
- sequence of internet addressescom.compoze.util.mail.AddressException
- if parsing of internet addresses failMailHeaderProperty.BCC
public void setResources(com.compoze.util.mail.InternetAddress[] resourceList)
resourceList
- array of InternetAddress
objectsMailHeaderProperty.BCC
public void setFromAddress(java.lang.String sFromAddress)
AbstractMessage
setFromAddress
in class AbstractMessage
UnsupportedOperationException
- if the setFromAddress
operation is not supported by this appointment.public void setFromAddresses(java.util.List addresses)
AbstractMessage
setFromAddresses
in class AbstractMessage
UnsupportedOperationException
- if the setFromAddresses
operation is not supported by this appointment.public void setFrom(java.lang.String sAddresses)
AbstractMessage
setFrom
in class AbstractMessage
UnsupportedOperationException
- if the setFrom
operation is not supported by this appointment.public void setFrom(com.compoze.util.mail.InternetAddress[] addresses)
AbstractMessage
setFrom
in class AbstractMessage
UnsupportedOperationException
- if the setFrom
operation is not supported by this appointment.public void setBccAddresses(java.util.List addresses)
AbstractMessage
setBccAddresses
in class AbstractMessage
UnsupportedOperationException
- if the setBccAddresses
operation is not supported by this appointment.public com.compoze.util.webdav.WebdavResponse30 send() throws ExchangeException
serverSend()
ExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeResponseException
- if not sent successfullyExchangeRuntimeException
- if this object has been released and can no longer be usedpublic void serverSend() throws ExchangeException
ExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeResponseException
- if not sent successfullyExchangeRuntimeException
- if this object has been released and can no longer be usedpublic com.compoze.util.webdav.WebdavResponse30 sendCancellation() throws ExchangeException
serverSendCancellation()
ExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeResponseException
- if not sent successfullyExchangeRuntimeException
- if this object has been released and can no longer be usedpublic void serverSendCancellation() throws ExchangeException
ExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeResponseException
- if not sent successfullyExchangeRuntimeException
- if this object has been released and can no longer be usedpublic Meeting accept() throws ExchangeException
serverAccept()
ExchangeException
- if a problem occurred while connecting to or
interacting with Exchange Server.public Meeting serverAccept() throws ExchangeException
ExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedpublic Meeting acceptTentative() throws ExchangeException
serverAcceptTentative()
ExchangeException
- if a problem occurred while connecting to or
interacting with Exchange Server.public Meeting serverAcceptTentative() throws ExchangeException
ExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedpublic Meeting decline() throws ExchangeException
serverDecline()
ExchangeException
- if a problem occurred while connecting to or
interacting with Exchange Server.public Meeting serverDecline() throws ExchangeException
ExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedpublic Meeting respond(ResponseStatus status) throws ExchangeException
serverRespond(ResponseStatus)
status
- the response status: only ResponseStatus.TENTATIVE
,
ResponseStatus.ACCEPTED
, ResponseStatus.DECLINED
.ExchangeException
- if a problem occurred while connecting to or
interacting with Exchange Server.public Meeting serverRespond(ResponseStatus status) throws ExchangeException
status
- the response status: only ResponseStatus.TENTATIVE
,
ResponseStatus.ACCEPTED
, ResponseStatus.DECLINED
ExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedpublic Meeting respond(ResponseStatus status, Folder folder) throws ExchangeException
serverRespond(ResponseStatus, Folder)
status
- the response status: only ResponseStatus.TENTATIVE
,
ResponseStatus.ACCEPTED
, ResponseStatus.DECLINED
.folder
- the folder (Caledendar) to save/remove the appointment.
Must not be null
.ExchangeException
- if a problem occurred while connecting to or
interacting with Exchange Server.public Meeting serverRespond(ResponseStatus status, Folder folder) throws ExchangeException
status
- the response status: only ResponseStatus.TENTATIVE
,
ResponseStatus.ACCEPTED
, ResponseStatus.DECLINED
folder
- the folder (Caledendar) to save/remove the appointment (must not be null
).ExchangeException
- if a problem occurred while interacting with the Exchange storeExchangeRuntimeException
- if this object has been released and can no longer be usedpublic void serverUpdate(boolean bServerRefresh) throws ExchangeException
If the appointment does not exist in the Exchange store, it is created, else the existing appointment is updated.
An AttachmentException
is thrown if any conflicts occur attaching
(uploading) files to the appointment. The exception will state what files failed
to attach. The appointment is still updated and can be sent, but will exclude
the failed attachments.
serverUpdate
in class AbstractMessage
bServerRefresh
- true
requests the server to refresh
the propertiesAttachmentException
- if any files failed to attached to this appointment.ExchangeException
- if a problem occurred while connecting to or interaction with Exchange ServerExchangeRuntimeException
- if this object has been released and can no longer be usedpublic void delete(boolean bAllOccurences) throws ExchangeException
serverDelete(boolean)
true
).
If this appointment is an instance of a recurring appointment, the master
appointment is removed. The expansion agent found within Exchange server will
then remove all instances/exceptions of the master appointment when a search (with
a specifed date range) is performed.bAllOccurrences
- set true
to to remove
all occurrences of this appointmentExchangeException
- if a problem occurred while connecting to or
interaction with Exchange Serverpublic void serverDelete(boolean bAllOccurences) throws ExchangeException
If this appointment is an instance of a recurring appointment, the master appointment is removed. The expansion agent found within Exchange server will then remove all instances/exceptions of the master appointment when a search (with a specifed date range) is performed.
bAllOccurrences
- set true
to to remove
all occurrences of this appointmentExchangeException
- if a problem occurred while connecting to or
interaction with Exchange Serverpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class AbstractMessage
java.lang.CloneNotSupportedException
- if the object's class does not support the Cloneable interface.public java.lang.String toString()
toString
in class AbstractMessage
public static java.util.List getDefaultProperties()
CalendarProperty.ALLDAYEVENT
CalendarProperty.BUSY_STATUS
HttpMailProperty.SUBJECT
CalendarProperty.DATE_START
CalendarProperty.DATE_END
CalendarProperty.DURATION
CalendarProperty.TIME_ZONE
CalendarProperty.TIME_ZONE_ID
CalendarProperty.INSTANCE_TYPE
CalendarProperty.LOCATION
CalendarProperty.ORGANIZER
ExchangeProperty.SENSITIVITY
CalendarProperty.RECURRENCE_ID
CalendarProperty.RECURRENCE_RULE
CalendarProperty.REMINDER_OFFSET
CalendarProperty.EXCEPTION_DATE
CalendarProperty.APPOINTMENT_UID
MapiProperty.APPOINTMENT_APPOINTMENT_STATUS
MapiProperty.APPOINTMENT_RESPONSE_STATUS
AbstractMessage.getDefaultProperties()
public static java.util.List getProperties()
AbstractMessage.getProperties()
public FreeBusy[] serverGetFreeBusy(java.util.List listAttendees) throws ExchangeException
listAttendees
- a list of strings representing the email addresses of the attendeesFreeBusy
informationExchangeException
- public FreeBusy[] serverGetFreeBusy(java.util.List listAttendees, java.util.Date startDate, java.util.Date endDate, int iInterval) throws ExchangeException
listAttendees
- a list of strings representing the email addresses of the attendeesstartDate
- the date to begin searching onendDate
- the date to stop searching oniInterval
- the time interval to return information for (in minutes)FreeBusy
information that is parallel to the
users in listAttendeesExchangeException
-
|
Compoze Software, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |