|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmicrosoft.exchange.webservices.data.ServiceObject
microsoft.exchange.webservices.data.Item
microsoft.exchange.webservices.data.Appointment
public class Appointment
Represents an appointment or a meeting. Properties available on appointments are defined in the AppointmentSchema class.
| Constructor Summary | |
|---|---|
|
Appointment(ExchangeService service)
Initializes an unsaved local instance of Appointment". |
protected |
Appointment(ItemAttachment parentAttachment,
boolean isNew)
Initializes a new instance of Appointment. |
| Method Summary | |
|---|---|
CalendarActionResults |
accept(boolean sendResponse)
Accepts the meeting. |
CalendarActionResults |
acceptTentatively(boolean sendResponse)
Tentatively accepts the meeting. |
static Appointment |
bind(ExchangeService service,
ItemId id)
Binds to an existing appointment and loads its first class properties. |
static Appointment |
bind(ExchangeService service,
ItemId id,
PropertySet propertySet)
Binds to an existing appointment and loads the specified set of properties. |
static Appointment |
bindToOccurrence(ExchangeService service,
ItemId recurringMasterId,
int occurenceIndex)
Binds to an existing appointment and loads its first class properties. |
static Appointment |
bindToOccurrence(ExchangeService service,
ItemId recurringMasterId,
int occurenceIndex,
PropertySet propertySet)
Binds to an existing appointment and loads its first class properties. |
static Appointment |
bindToRecurringMaster(ExchangeService service,
ItemId occurrenceId)
Binds to the master appointment of a recurring series and loads its first class properties. |
static Appointment |
bindToRecurringMaster(ExchangeService service,
ItemId occurrenceId,
PropertySet propertySet)
Binds to the master appointment of a recurring series and loads its first class properties. |
CalendarActionResults |
cancelMeeting()
Cancels the meeting and sends cancellation messages to all attendees. |
CalendarActionResults |
cancelMeeting(String cancellationMessageText)
Cancels the meeting and sends cancellation messages to all attendees. |
AcceptMeetingInvitationMessage |
createAcceptMessage(boolean tentative)
Creates a local meeting acceptance message that can be customized and sent. |
CancelMeetingMessage |
createCancelMeetingMessage()
Creates a local meeting acceptance message that can be customized and sent. |
DeclineMeetingInvitationMessage |
createDeclineMessage()
Creates a local meeting declination message that can be customized and sent. |
ResponseMessage |
createForward()
Creates a forward message from this appointment. |
ResponseMessage |
createReply(boolean replyAll)
Creates a reply response to the organizer and/or attendees of the meeting. |
CalendarActionResults |
decline(boolean sendResponse)
Declines the meeting invitation. |
void |
delete(DeleteMode deleteMode,
SendCancellationsMode sendCancellationsMode)
Deletes this appointment. |
void |
forward(MessageBody bodyPrefix,
EmailAddress... toRecipients)
Forwards the appointment. |
void |
forward(MessageBody bodyPrefix,
Iterable<EmailAddress> toRecipients)
Forwards the appointment. |
Date |
gaetICalDateTimeStmp()
Gets the ICalendar DateTimeStamp. |
Integer |
getAdjacentMeetingCount()
Gets the number of calendar entries that are adjacent to this appointment in the authenticated user's calendar. |
ItemCollection<Appointment> |
getAdjacentMeetings()
Gets a list of meetings that conflict with this appointment in the authenticated user's calendar. |
Boolean |
getAllowNewTimeProposal()
Gets a value indicating whether new time proposals are allowed for attendees of this meeting. |
Date |
getAppointmentReplyTime()
Gets the time when the attendee replied to the meeting request. |
Integer |
getAppointmentSequenceNumber()
Gets the sequence number of this appointment. |
Integer |
getAppointmentState()
Gets the state of this appointment. |
AppointmentType |
getAppointmentType()
Gets a value indicating the type of this appointment. |
Integer |
getConferenceType()
Gets the type of conferencing that will be used during the meeting. |
Integer |
getConflictingMeetingCount()
Gets the number of calendar entries that conflict with this appointment in the authenticated user's calendar. |
ItemCollection<Appointment> |
getConflictingMeetings()
Gets a list of meetings that conflict with this appointment in the authenticated user's calendar. |
protected SendCancellationsMode |
getDefaultSendCancellationsMode()
Gets the default setting for sending cancellations on Delete. |
protected SendInvitationsMode |
getDefaultSendInvitationsMode()
Gets the default settings for sending invitations on Save. |
protected SendInvitationsOrCancellationsMode |
getDefaultSendInvitationsOrCancellationsMode()
Gets the default settings for sending invitations on Save. |
DeletedOccurrenceInfoCollection |
getDeletedOccurrences()
Gets a list of deleted occurrences for this meeting. |
TimeSpan |
getDuration()
Gets the duration of this appointment. |
Date |
getEnd()
Gets or sets the end time of the appointment. |
TimeZoneDefinition |
getEndTimeZone()
Gets the start time zone. |
OccurrenceInfo |
getFirstOccurrence()
Gets an OccurrenceInfo identifying the first occurrence of this meeting. |
Date |
getICalRecurrenceId()
Gets the ICalendar RecurrenceId. |
String |
getICalUid()
Gets the ICalendar Uid. |
Boolean |
getIsAllDayEvent()
Gets a value indicating whether this appointment is an all day event. |
Boolean |
getIsCancelled()
Gets a value indicating whether the appointment has been cancelled. |
protected boolean |
getIsCustomDateTimeScopingRequired()
Determines whether properties defined with ScopedDateTimePropertyDefinition require custom time zone scoping. |
Boolean |
getIsMeeting()
Gets a value indicating whether the appointment is a meeting. |
Boolean |
getIsOnlineMeeting()
Gets a value indicating whether this is an online meeting. |
Boolean |
getIsRecurring()
Gets a value indicating whether the appointment is recurring. |
Boolean |
getIsResponseRequested()
Gets a value indicating whether responses are requested when invitations are sent for this meeting. |
OccurrenceInfo |
getLastOccurrence()
Gets an OccurrenceInfo identifying the first occurrence of this meeting. |
LegacyFreeBusyStatus |
getLegacyFreeBusyStatus()
Gets a value indicating the free/busy status of the owner of this appointment. |
String |
getLocation()
Gets the location of this appointment. |
Boolean |
getMeetingRequestWasSent()
Gets a value indicating whether the meeting request has already been sent. |
String |
getMeetingWorkspaceUrl()
Gets the URL of the meeting workspace. |
protected ExchangeVersion |
getMinimumRequiredServerVersion()
Gets the minimum required server version. |
OccurrenceInfoCollection |
getModifiedOccurrences()
Gets a list of modified occurrences for this meeting. |
MeetingResponseType |
getMyResponseType()
Gets a value indicating what was the last response of the user that loaded this meeting. |
String |
getNetShowUrl()
Gets the URL of the Microsoft NetShow online meeting. |
AttendeeCollection |
getOptionalAttendees()
Gets a list of optional attendeed for this meeting. |
EmailAddress |
getOrganizer()
Gets the organizer of this meeting. |
Date |
getOriginalStart()
Gets the original start time of this appointment. |
Recurrence |
getRecurrence()
Gets the recurrence pattern for this appointment. |
AttendeeCollection |
getRequiredAttendees()
Gets a list of required attendees for this meeting. |
AttendeeCollection |
getResources()
Gets a list of resources for this meeting. |
protected ServiceObjectSchema |
getSchema()
Internal method to return the schema associated with this type of object. |
Date |
getStart()
Gets the start time of the appointment. |
TimeZoneDefinition |
getStartTimeZone()
Gets the start time zone. |
String |
getTimeZone()
Gets the name of the time zone this appointment is defined in. |
String |
getWhen()
Gets a text indicating when this appointment occurs. |
protected CalendarActionResults |
internalAccept(boolean tentative,
boolean sendResponse)
Accepts the meeting. |
void |
reply(MessageBody bodyPrefix,
boolean replyAll)
Replies to the organizer and/or the attendees of the meeting. |
void |
save(FolderId destinationFolderId,
SendInvitationsMode sendInvitationsMode)
Saves this appointment in the specified folder. |
void |
save(SendInvitationsMode sendInvitationsMode)
Saves this appointment in the Calendar folder. |
void |
save(WellKnownFolderName destinationFolderName,
SendInvitationsMode sendInvitationsMode)
Saves this appointment in the specified folder. |
void |
setAllowNewTimeProposal(Boolean value)
Sets the allow new time proposal. |
void |
setConferenceType(Integer value)
Sets the conference type. |
void |
setEnd(Date value)
Sets the end. |
void |
setEndTimeZone(TimeZoneDefinition value)
Sets the start time zone. |
void |
setICalUid(String value)
Sets the ICalendar Uid. |
void |
setIsAllDayEvent(Boolean value)
Sets the checks if is all day event. |
void |
setIsOnlineMeeting(Boolean value)
Sets the checks if is online meeting. |
void |
setIsResponseRequested(Boolean value)
Sets the checks if is response requested. |
void |
setLegacyFreeBusyStatus(LegacyFreeBusyStatus value)
Sets the legacy free busy status. |
void |
setLocation(String value)
Sets the location. |
void |
setMeetingWorkspaceUrl(String value)
Sets the meeting workspace url. |
void |
setNetShowUrl(String value)
Sets the net show url. |
void |
setRecurrence(Recurrence value)
Sets the recurrence. |
void |
setStart(Date value)
Sets the start. |
void |
setStartTimeZone(TimeZoneDefinition value)
Sets the start time zone. |
void |
update(ConflictResolutionMode conflictResolutionMode,
SendInvitationsOrCancellationsMode sendInvitationsOrCancellationsMode)
Applies the local changes that have been made to this appointment. |
protected void |
validate()
Validates this instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Appointment(ExchangeService service)
throws Exception
service - The ExchangeService instance to which this appointmtnt is
bound.
Exception - the exception
protected Appointment(ItemAttachment parentAttachment,
boolean isNew)
throws Exception
parentAttachment - the parent attachmentisNew - If true, attachment is new.
Exception - the exception| Method Detail |
|---|
public static Appointment bind(ExchangeService service,
ItemId id,
PropertySet propertySet)
throws Exception
service - the serviceid - the idpropertySet - the property set
Exception - the exception
public static Appointment bind(ExchangeService service,
ItemId id)
throws Exception
service - the serviceid - the id
Exception - the exception
public static Appointment bindToOccurrence(ExchangeService service,
ItemId recurringMasterId,
int occurenceIndex)
throws Exception
service - the servicerecurringMasterId - the recurring master idoccurenceIndex - the occurence index
Exception - the exception
public static Appointment bindToOccurrence(ExchangeService service,
ItemId recurringMasterId,
int occurenceIndex,
PropertySet propertySet)
throws Exception
service - the servicerecurringMasterId - the recurring master idoccurenceIndex - the occurence indexpropertySet - the property set
Exception - the exception
public static Appointment bindToRecurringMaster(ExchangeService service,
ItemId occurrenceId)
throws Exception
service - the serviceoccurrenceId - the occurrence id
Exception - the exception
public static Appointment bindToRecurringMaster(ExchangeService service,
ItemId occurrenceId,
PropertySet propertySet)
throws Exception
service - the serviceoccurrenceId - the occurrence idpropertySet - the property set
Exception - the exceptionprotected ServiceObjectSchema getSchema()
getSchema in class Itemprotected ExchangeVersion getMinimumRequiredServerVersion()
getMinimumRequiredServerVersion in class Itemprotected boolean getIsCustomDateTimeScopingRequired()
getIsCustomDateTimeScopingRequired in class ServiceObject
protected void validate()
throws Exception
validate in class ItemException
public ResponseMessage createReply(boolean replyAll)
throws Exception
replyAll - the reply all
Exception - the exception
public void reply(MessageBody bodyPrefix,
boolean replyAll)
throws Exception
bodyPrefix - the body prefixreplyAll - the reply all
Exception - the exception
public ResponseMessage createForward()
throws Exception
Exception - the exception
public void forward(MessageBody bodyPrefix,
EmailAddress... toRecipients)
throws Exception
bodyPrefix - the body prefixtoRecipients - the to recipients
Exception - the exception
public void forward(MessageBody bodyPrefix,
Iterable<EmailAddress> toRecipients)
throws Exception
bodyPrefix - the body prefixtoRecipients - the to recipients
Exception - the exception
public void save(WellKnownFolderName destinationFolderName,
SendInvitationsMode sendInvitationsMode)
throws Exception
destinationFolderName - the destination folder namesendInvitationsMode - the send invitations mode
Exception - the exception
public void save(FolderId destinationFolderId,
SendInvitationsMode sendInvitationsMode)
throws Exception
destinationFolderId - the destination folder idsendInvitationsMode - the send invitations mode
Exception - the exception
public void save(SendInvitationsMode sendInvitationsMode)
throws Exception
sendInvitationsMode - the send invitations mode
Exception - the exception
public void update(ConflictResolutionMode conflictResolutionMode,
SendInvitationsOrCancellationsMode sendInvitationsOrCancellationsMode)
throws Exception
conflictResolutionMode - the conflict resolution modesendInvitationsOrCancellationsMode - the send invitations or cancellations mode
Exception - the exception
public void delete(DeleteMode deleteMode,
SendCancellationsMode sendCancellationsMode)
throws Exception
deleteMode - the delete modesendCancellationsMode - the send cancellations mode
Exception - the exception
public AcceptMeetingInvitationMessage createAcceptMessage(boolean tentative)
throws Exception
tentative - the tentative
Exception - the exception
public CancelMeetingMessage createCancelMeetingMessage()
throws Exception
Exception - the exception
public DeclineMeetingInvitationMessage createDeclineMessage()
throws Exception
Exception - the exception
public CalendarActionResults accept(boolean sendResponse)
throws Exception
sendResponse - the send response
Exception - the exception
public CalendarActionResults acceptTentatively(boolean sendResponse)
throws Exception
sendResponse - the send response
Exception - the exception
protected CalendarActionResults internalAccept(boolean tentative,
boolean sendResponse)
throws Exception
tentative - the tentativesendResponse - the send response
Exception - the exception
public CalendarActionResults cancelMeeting()
throws Exception
Exception - the exception
public CalendarActionResults cancelMeeting(String cancellationMessageText)
throws Exception
cancellationMessageText - the cancellation message text
Exception - the exception
public CalendarActionResults decline(boolean sendResponse)
throws Exception
sendResponse - the send response
Exception - the exceptionprotected SendCancellationsMode getDefaultSendCancellationsMode()
getDefaultSendCancellationsMode in class Itemprotected SendInvitationsMode getDefaultSendInvitationsMode()
getDefaultSendInvitationsMode in class Itemprotected SendInvitationsOrCancellationsMode getDefaultSendInvitationsOrCancellationsMode()
getDefaultSendInvitationsOrCancellationsMode in class Item
public Date getStart()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setStart(Date value)
throws Exception
value - the new start
Exception - the exception
public Date getEnd()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setEnd(Date value)
throws Exception
value - the new end
Exception - the exception
public Date getOriginalStart()
throws ServiceLocalException
ServiceLocalException - the service local exception
public Boolean getIsAllDayEvent()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setIsAllDayEvent(Boolean value)
throws Exception
value - the new checks if is all day event
Exception - the exception
public LegacyFreeBusyStatus getLegacyFreeBusyStatus()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setLegacyFreeBusyStatus(LegacyFreeBusyStatus value)
throws Exception
value - the new legacy free busy status
Exception - the exception
public String getLocation()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setLocation(String value)
throws Exception
value - the new location
Exception - the exception
public String getWhen()
throws ServiceLocalException
ServiceLocalException - the service local exception
public Boolean getIsMeeting()
throws ServiceLocalException
ServiceLocalException - the service local exception
public Boolean getIsCancelled()
throws ServiceLocalException
ServiceLocalException - the service local exception
public Boolean getIsRecurring()
throws ServiceLocalException
ServiceLocalException - the service local exception
public Boolean getMeetingRequestWasSent()
throws ServiceLocalException
ServiceLocalException - the service local exception
public Boolean getIsResponseRequested()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setIsResponseRequested(Boolean value)
throws Exception
value - the new checks if is response requested
Exception - the exception
public AppointmentType getAppointmentType()
throws ServiceLocalException
ServiceLocalException - the service local exception
public MeetingResponseType getMyResponseType()
throws ServiceLocalException
ServiceLocalException - the service local exception
public EmailAddress getOrganizer()
throws ServiceLocalException
ServiceLocalException - the service local exception
public AttendeeCollection getRequiredAttendees()
throws ServiceLocalException
ServiceLocalException - the service local exception
public AttendeeCollection getOptionalAttendees()
throws ServiceLocalException
ServiceLocalException - the service local exception
public AttendeeCollection getResources()
throws ServiceLocalException
ServiceLocalException - the service local exception
public Integer getConflictingMeetingCount()
throws ServiceLocalException
ServiceLocalException - the service local exception
public Integer getAdjacentMeetingCount()
throws ServiceLocalException
ServiceLocalException - the service local exception
public ItemCollection<Appointment> getConflictingMeetings()
throws ServiceLocalException
ServiceLocalException - the service local exception
public ItemCollection<Appointment> getAdjacentMeetings()
throws ServiceLocalException
ServiceLocalException - the service local exception
public TimeSpan getDuration()
throws ServiceLocalException
ServiceLocalException - the service local exception
public String getTimeZone()
throws ServiceLocalException
ServiceLocalException - the service local exception
public Date getAppointmentReplyTime()
throws ServiceLocalException
ServiceLocalException - the service local exception
public Integer getAppointmentSequenceNumber()
throws ServiceLocalException
ServiceLocalException - the service local exception
public Integer getAppointmentState()
throws ServiceLocalException
ServiceLocalException - the service local exception
public Recurrence getRecurrence()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setRecurrence(Recurrence value)
throws Exception
value - the new recurrence
Exception - the exception
public OccurrenceInfo getFirstOccurrence()
throws ServiceLocalException
ServiceLocalException - the service local exception
public OccurrenceInfo getLastOccurrence()
throws ServiceLocalException
ServiceLocalException - the service local exception
public OccurrenceInfoCollection getModifiedOccurrences()
throws ServiceLocalException
ServiceLocalException - the service local exception
public DeletedOccurrenceInfoCollection getDeletedOccurrences()
throws ServiceLocalException
ServiceLocalException - the service local exception
public TimeZoneDefinition getStartTimeZone()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setStartTimeZone(TimeZoneDefinition value)
throws Exception
value - the new start time zone
Exception - the exception
public TimeZoneDefinition getEndTimeZone()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setEndTimeZone(TimeZoneDefinition value)
throws Exception
value - the new end time zone
Exception - the exception
public Integer getConferenceType()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setConferenceType(Integer value)
throws Exception
value - the new conference type
Exception - the exception
public Boolean getAllowNewTimeProposal()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setAllowNewTimeProposal(Boolean value)
throws Exception
value - the new allow new time proposal
Exception - the exception
public Boolean getIsOnlineMeeting()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setIsOnlineMeeting(Boolean value)
throws Exception
value - the new checks if is online meeting
Exception - the exception
public String getMeetingWorkspaceUrl()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setMeetingWorkspaceUrl(String value)
throws Exception
value - the new meeting workspace url
Exception - the exception
public String getNetShowUrl()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setNetShowUrl(String value)
throws Exception
value - the new net show url
Exception - the exception
public String getICalUid()
throws ServiceLocalException
ServiceLocalException - the service local exception
public void setICalUid(String value)
throws Exception
value - the i cal uid
Exception
public Date getICalRecurrenceId()
throws ServiceLocalException
ServiceLocalException - the service local exception
public Date gaetICalDateTimeStmp()
throws ServiceLocalException
ServiceLocalException - the service local exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||