public Object createServiceObjectWithServiceParam( ExchangeService srv) throws Exception { return new SearchFolder(srv); } }, null);
/** * 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); }
/** * Gets the search parameters associated with the search folder. * * @return the search parameters * @throws Exception the exception */ public SearchFolderParameters getSearchParameters() throws Exception { return getPropertyBag().getObjectFromPropertyDefinition( SearchFolderSchema.SearchParameters); }
/** * Validates this instance. * * @throws Exception the exception */ @Override public void validate() throws Exception { super.validate(); if (this.getSearchParameters() != null) { this.getSearchParameters().validate(); } }
/** * Validates this instance. * * @throws Exception the exception */ @Override public void validate() throws Exception { super.validate(); if (this.getSearchParameters() != null) { this.getSearchParameters().validate(); } }
/** * 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()); }
/** * Gets the search parameters associated with the search folder. * * @return the search parameters * @throws Exception the exception */ public SearchFolderParameters getSearchParameters() throws Exception { return getPropertyBag().getObjectFromPropertyDefinition( SearchFolderSchema.SearchParameters); }
public Object createServiceObjectWithServiceParam( ExchangeService srv) throws Exception { return new SearchFolder(srv); } }, null);
/** * 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()); }