Moyosoft Products | Services | Download | Contact us    
Java Outlook Connector
Products  >  Java Outlook Connector  >  API Reference    
API Reference
   
Overview  |  
Classic JavaDoc

Class OutlookAppointment

java.lang.Object
  └ com.moyosoft.connector.ms.outlook.item.OutlookItemcom.moyosoft.connector.ms.outlook.appointment.OutlookAppointment

Implemented Interfaces:

public class OutlookAppointment extends OutlookItem implements IAttachmentsContainer

Represents an appointment or meeting item stored in the Outlook calendar.

A new appointment can be created by instantiating this class. To save the new appointment to the calendar, call the method save().

This class provides getter and setter methods to access or modify the appointment's properties.

See Also:

Constructors

public
OutlookAppointment (OutlookFolder folder)
Creates a new appointment in the specified folder
public
OutlookAppointment (Outlook outlookApplication)
Creates a new appointment item in the default calendar folder
public
OutlookAppointment (com.moyosoft.connector.com.Dispatch dispatch)

Methods

void
clearRecurrencePattern ()
void
close (InspectorClose saveMode)
createAttachment (java.io.File pAttachmentFile, AttachmentType pType)
forwardAsVcal ()
getAttachments ()
int
getAttachmentsCount ()
String
getBillingInformation ()
String
getBody ()
getBusyStatus ()
String
getCategories ()
int
getColorLabel ()
String
getCompanies ()
String
getConferenceServerPassword ()
getConflicts ()
String
getConversationIndex ()
String
getConversationTopic ()
getDownloadState ()
int
getDuration ()
java.util.Date
getEnd ()
getFormDescription ()
String
getGlobalAppointmentId ()
getImportance ()
getInspector ()
int
getInternetCodepage ()
The 'InternetCodepage' property is only supported by Outlook 2002 or higher. With other versions this method will throw an ComponentObjectModelException.
boolean
getIsRecurring ()
Deprecated - Use the isRecurring() method instead.
getItemProperties ()
String
getLocation ()
getMarkForDownload ()
getMeetingStatus ()
String
getMeetingWorkspaceURL ()
The 'MeetingWorkspaceURL' property is only supported by Outlook 2003 or higher. With other versions this method will throw an ComponentObjectModelException.
String
getMessageClass ()
String
getMileage ()
String
getNetMeetingDocPathName ()
String
getNetMeetingOrganizerAlias ()
String
getNetMeetingServer ()
getNetMeetingType ()
String
getNetShowURL ()
String
getOptionalAttendees ()
String
getOrganizer ()
getRecipients ()
getRecurrencePattern ()
getRecurrenceState ()
int
getReminderMinutesBeforeStart ()
String
getReminderSoundFile ()
java.util.Date
getReplyTime ()
String
getRequiredAttendees ()
String
getResources ()
getResponseStatus ()
getSendUsingAccount ()
Returns the account used when sending this message. The accounts are only supported by Outlook 2007 or later; with other versions this method will throw an ComponentObjectModelException. This method is only available in the Professional edition of Java Outlook Connector.
getSensitivity ()
int
getSize ()
java.util.Date
getStart ()
String
getSubject ()
getType ()
getUserProperties ()
boolean
isAllDayEvent ()
boolean
isAutoResolvedWinner ()
boolean
isConferenceServerAllowExternal ()
boolean
isConflict ()
boolean
isNetMeetingAutoStart ()
boolean
isNoAging ()
boolean
isOnlineMeeting ()
boolean
isRecurring ()
boolean
isReminderOverrideDefault ()
boolean
isReminderPlaySound ()
boolean
isReminderSet ()
boolean
isResponseRequested ()
boolean
isSaved ()
boolean
isUnRead ()
respond (MeetingResponse response)
respond (MeetingResponse response, boolean dontDisplayDialogBox)
respond (MeetingResponse response, boolean dontDisplayDialogBox, boolean promptUser)
void
send ()
void
setAllDayEvent (boolean value)
void
setBillingInformation (String value)
void
setBody (String value)
void
setBusyStatus (BusyStatus value)
void
setCategories (String value)
void
setColorLabel (int value)
void
setCompanies (String value)
void
setConferenceServerAllowExternal (boolean value)
void
setConferenceServerPassword (String value)
void
setDuration (int value)
void
setEnd (java.util.Date value)
void
setImportance (ImportanceType value)
void
setInternetCodepage (int value)
The 'InternetCodepage' property is only supported by Outlook 2002 or higher. With other versions this method will throw an ComponentObjectModelException.
void
setIsOnlineMeeting (boolean value)
void
setLocation (String value)
void
setMarkForDownload (RemoteStatus value)
void
setMeetingStatus (MeetingStatus value)
void
setMessageClass (String value)
void
setMileage (String value)
void
setNetMeetingAutoStart (boolean value)
void
setNetMeetingDocPathName (String value)
void
setNetMeetingOrganizerAlias (String value)
void
setNetMeetingServer (String value)
void
setNetMeetingType (NetMeetingType value)
void
setNetShowURL (String value)
void
setNoAging (boolean value)
void
setOptionalAttendees (String value)
void
setReminderMinutesBeforeStart (int value)
void
setReminderOverrideDefault (boolean value)
void
setReminderPlaySound (boolean value)
void
setReminderSet (boolean value)
void
setReminderSoundFile (String value)
void
setReplyTime (java.util.Date value)
void
setRequiredAttendees (String value)
void
setResources (String value)
void
setResponseRequested (boolean value)
void
setSendUsingAccount (Account account)
Define the account to be used when sending this message. The accounts are only supported by Outlook 2007 or later; with other versions this method will throw an ComponentObjectModelException. This method is only available in the Professional edition of Java Outlook Connector.
void
setSensitivity (SensitivityType value)
void
setStart (java.util.Date value)
void
setSubject (String value)
void
setUnRead (boolean value)
void
showCategoriesDialog ()

Inherited methods

Community comments


Recurring appointment
Vote up  |  Vote down
Here's how to create a recurring appointment:

Calendar calendar = Calendar.getInstance();
Outlook outlookApplication = new Outlook();

// Create a new appointment object:
OutlookAppointment appointment = new OutlookAppointment(outlookApplication.getDefaultFolder(FolderType.CALENDAR));

// Start the appointment now:
appointment.setStart(calendar.getTime());
            
// Set subject and duration:
appointment.setSubject("My appointment");
appointment.setDuration(30);

// Get the recurrence pattern:
RecurrencePattern pattern = appointment.getRecurrencePattern();

// Set as a daily recurring appointment:
pattern.setRecurrenceType(RecurrenceType.RECURS_DAILY);
pattern.setInterval(1); // Occurs every day

// End the recurrence pattern in 3 days (4 occurrences will exist):
calendar.add(Calendar.DAY_OF_MONTH, 3);
pattern.setPatternEndDate(calendar.getTime());

// Need to save for the modification to take effect:
appointment.save();
            
// Once saved, the appointment is recurring:
System.out.println("Is recurring: " + appointment.isRecurring());
            
outlookApplication.dispose();


Powered by JavaDocPlus