/** * Load. * * @throws Exception the exception */ public void load() throws Exception { this.internalLoad(PropertySet.getFirstClassProperties()); }
/** * Binds to an existing task and loads its first class property. Calling * this method results in a call to EWS. * * @param service the service * @param id the id * @return A Task instance representing the task corresponding to the * specified Id. * @throws Exception the exception */ public static Task bind(ExchangeService service, ItemId id) throws Exception { return Task.bind(service, id, PropertySet.getFirstClassProperties()); }
/** * Binds to an existing meeting response and loads the specified set of * property. Calling this method results in a call to EWS. * * @param service The service to use to bind to the meeting request. * @param id The Id of the meeting request to bind to. * @return A MeetingResponse instance representing the meeting request * corresponding to the specified Id. */ public static MeetingRequest bind(ExchangeService service, ItemId id) { return MeetingRequest.bind(service, id, PropertySet .getFirstClassProperties()); }
/** * Binds to an existing meeting response and loads the specified set of * property. Calling this method results in a call to EWS. * * @param service The service to use to bind to the meeting response. * @param id The Id of the meeting response to bind to. * @return A MeetingResponse instance representing the meeting response * corresponding to the specified Id. */ public static MeetingResponse bind(ExchangeService service, ItemId id) { return MeetingResponse.bind(service, id, PropertySet .getFirstClassProperties()); }
/** * Binds to an existing meeting cancellation message and loads the specified * set of property. Calling this method results in a call to EWS. * * @param service The service to use to bind to the meeting cancellation * message. * @param id The Id of the meeting cancellation message to bind to. * @return A MeetingCancellation instance representing the meeting * cancellation message corresponding to the specified Id. */ public static MeetingCancellation bind(ExchangeService service, ItemId id) { return MeetingCancellation.bind(service, id, PropertySet .getFirstClassProperties()); }
/** * Binds to an existing contact and loads its first class property. * Calling this method results in a call to EWS. * * @param service the service * @param id the id * @return A Contact instance representing the contact corresponding to the * specified Id. * @throws Exception the exception */ public static Contact bind(ExchangeService service, ItemId id) throws Exception { return Contact.bind(service, id, PropertySet.getFirstClassProperties()); }
/** * Binds to an existing calendar folder and loads the specified set of * property. Calling this method results in a call to EWS. * * @param service the service * @param id the id * @return A CalendarFolder instance representing the calendar folder * corresponding to the specified Id * @throws Exception the exception */ public static CalendarFolder bind(ExchangeService service, FolderId id) throws Exception { return CalendarFolder.bind(service, id, PropertySet .getFirstClassProperties()); }
/** * Binds to an existing meeting message and loads its first class * property. Calling this method results in a call to EWS. * * @param service The service to use to bind to the meeting message. * @param id The Id of the meeting message to bind to. * @return A MeetingMessage instance representing the meeting message * corresponding to the specified Id. * @throws Exception the exception */ public static MeetingMessage bind(ExchangeService service, ItemId id) throws Exception { return MeetingMessage.bind(service, id, PropertySet .getFirstClassProperties()); }
/** * Binds to an existing contacts folder and loads its first class * property. * * @param service the service * @param id the id * @return A ContactsFolder instance representing the contacts folder * corresponding to the specified Id. * @throws Exception the exception */ public static ContactsFolder bind(ExchangeService service, FolderId id) throws Exception { return ContactsFolder.bind(service, id, PropertySet .getFirstClassProperties()); }
/** * Binds to an existing contact group and loads the specified set of * property.Calling this method results in a call to EWS. * * @param service the service * @param id the id * @return A ContactGroup instance representing the contact group * corresponding to the specified Id. * @throws Exception the exception */ public static ContactGroup bind(ExchangeService service, ItemId id) throws Exception { return ContactGroup.bind(service, id, PropertySet .getFirstClassProperties()); }
/** * Binds to an existing e-mail message and loads its first class * property.Calling this method results in a call to EWS. * * @param service the service * @param id the id * @return An EmailMessage instance representing the e-mail message * corresponding to the specified Id * @throws Exception the exception */ public static EmailMessage bind(ExchangeService service, ItemId id) throws Exception { return EmailMessage.bind(service, id, PropertySet .getFirstClassProperties()); }
/** * Binds to an existing tasks folder and loads its first class property. * Calling this method results in a call to EWS. * * @param service the service * @param id the id * @return A TasksFolder instance representing the task folder corresponding * to the specified Id. * @throws Exception the exception */ public static TasksFolder bind(ExchangeService service, FolderId id) throws Exception { return TasksFolder.bind(service, id, PropertySet .getFirstClassProperties()); }
/** * Binds to an existing post item and loads its first class property. * calling this method results in a call to EWS. * * @param service the service * @param id the id * @return An PostItem instance representing the post item corresponding to * the specified Id. * @throws Exception the exception */ public static PostItem bind(ExchangeService service, ItemId id) throws Exception { return PostItem .bind(service, id, PropertySet.getFirstClassProperties()); }
/** * Binds to an existing folder, whatever its actual type is, and loads the * specified set of property. Calling this method results in a call to * EWS. * * @param service , The service to use to bind to the folder. * @param id , The Id of the folder to bind to. * @return A Folder instance representing the folder corresponding to the * specified Id. * @throws Exception the exception */ public static Folder bind(ExchangeService service, FolderId id) throws Exception { return Folder.bind(service, id, PropertySet.getFirstClassProperties()); }
/** * Gets the property set or the default. * * @return PropertySet */ public PropertySet getPropertySetOrDefault() { if (this.getPropertySet() == null) { return PropertySet.getFirstClassProperties(); } else { return this.getPropertySet(); } }
/** * Binds to an existing tasks folder and loads its first class property. * Calling this method results in a call to EWS. * * @param service the service * @param name the name * @return A TasksFolder instance representing the tasks folder with the * specified name. * @throws Exception the exception */ public static TasksFolder bind(ExchangeService service, WellKnownFolderName name) throws Exception { return TasksFolder.bind(service, new FolderId(name), PropertySet .getFirstClassProperties()); }
/** * Binds to an existing calendar folder and loads the specified set of * property. Calling this method results in a call to EWS. * * @param service the service * @param name the name * @return A CalendarFolder instance representing the calendar folder with * the specified name. * @throws Exception the exception */ public static CalendarFolder bind(ExchangeService service, WellKnownFolderName name) throws Exception { return CalendarFolder.bind(service, new FolderId(name), PropertySet .getFirstClassProperties()); }
/** * Binds to an existing folder, whatever its actual type is, and loads the * specified set of property. Calling this method results in a call to * EWS. * * @param service The service to use to bind to the folder. * @param name The name of the folder to bind to. * @return the folder * @throws Exception the exception */ public static Folder bind(ExchangeService service, WellKnownFolderName name) throws Exception { return Folder.bind(service, new FolderId(name), PropertySet .getFirstClassProperties()); }
/** * Binds to an existing contacts folder and loads its first class * property. * * @param service the service * @param name the name * @return A ContactsFolder instance representing the contacts folder * corresponding to the specified name. * @throws Exception the exception */ public static ContactsFolder bind(ExchangeService service, WellKnownFolderName name) throws Exception { return ContactsFolder.bind(service, new FolderId(name), PropertySet .getFirstClassProperties()); }
/** * Binds to an existing search folder and loads the specified set of * property. Calling this method results in a call to EWS. * * @param service the service * @param name the name * @return A SearchFolder instance representing the search folder with the * specified name. * @throws Exception the exception */ public static SearchFolder bind(ExchangeService service, WellKnownFolderName name) throws Exception { return SearchFolder.bind(service, new FolderId(name), PropertySet .getFirstClassProperties()); }