/** * 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 * @param propertySet the property set * @return A SearchFolder instance representing the search folder with the * specified name. * @throws Exception the exception */ public static SearchFolder bind(ExchangeService service, WellKnownFolderName name, PropertySet propertySet) throws Exception { return SearchFolder.bind(service, new FolderId(name), propertySet); }
/** * Binds to an existing search 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 SearchFolder instance representing the search folder * corresponding to the specified Id. * @throws Exception the exception */ public static SearchFolder bind(ExchangeService service, FolderId id) throws Exception { return SearchFolder.bind(service, id, 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()); }
/** * Binds to an existing search 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 SearchFolder instance representing the search folder * corresponding to the specified Id. * @throws Exception the exception */ public static SearchFolder bind(ExchangeService service, FolderId id) throws Exception { return SearchFolder.bind(service, id, 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 * @param propertySet the property set * @return A SearchFolder instance representing the search folder with the * specified name. * @throws Exception the exception */ public static SearchFolder bind(ExchangeService service, WellKnownFolderName name, PropertySet propertySet) throws Exception { return SearchFolder.bind(service, new FolderId(name), propertySet); }
/** * 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()); }