Class SearchFolder
- java.lang.Object
-
- microsoft.exchange.webservices.data.core.service.ServiceObject
-
- microsoft.exchange.webservices.data.core.service.folder.Folder
-
- microsoft.exchange.webservices.data.core.service.folder.SearchFolder
-
public class SearchFolder extends Folder
Represents a search folder.
-
-
Constructor Summary
Constructors Constructor Description SearchFolder(ExchangeService service)Initializes an unsaved local instance of the class.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SearchFolderbind(ExchangeService service, WellKnownFolderName name)Binds to an existing search folder and loads the specified set of property.static SearchFolderbind(ExchangeService service, WellKnownFolderName name, PropertySet propertySet)Binds to an existing search folder and loads the specified set of property.static SearchFolderbind(ExchangeService service, FolderId id)Binds to an existing search folder and loads its first class property.static SearchFolderbind(ExchangeService service, FolderId id, PropertySet propertySet)Binds to an existing search folder and loads the specified set of property.ExchangeVersiongetMinimumRequiredServerVersion()Gets the minimum required server version.ServiceObjectSchemagetSchema()Internal method to return the schema associated with this type of object.SearchFolderParametersgetSearchParameters()Gets the search parameters associated with the search folder.voidvalidate()Validates this instance.-
Methods inherited from class microsoft.exchange.webservices.data.core.service.folder.Folder
copy, copy, delete, empty, findFolders, findFolders, findItems, findItems, findItems, findItems, findItems, findItems, getChangeXmlElementName, getChildFolderCount, getDeleteFieldXmlElementName, getDisplayName, getEffectiveRights, getExtendedProperties, getExtendedPropertiesForService, getFolderClass, getId, getIdPropertyDefinition, getManagedFolderInformation, getParentFolderId, getPermissions, getSetFieldXmlElementName, getTotalCount, getUnreadCount, getWellKnownFolderName, internalDelete, internalLoad, move, move, removeExtendedProperty, save, save, setDisplayName, setExtendedProperty, setFolderClass, update
-
Methods inherited from class microsoft.exchange.webservices.data.core.service.ServiceObject
addServiceObjectChangedEvent, changed, clearChangeLog, clearServiceObjectChangedEvent, getIsCustomDateTimeScopingRequired, getIsTimeZoneHeaderRequired, getLoadedPropertyDefinitions, getObjectFromPropertyDefinition, getPropertyBag, getService, getXmlElementName, getXmlElementNameOverride, isDirty, isNew, load, load, loadFromXml, loadFromXml, removeServiceObjectChangedEvent, schema, setService, throwIfThisIsNew, throwIfThisIsNotNew, tryGetExtendedProperty, tryGetProperty, tryGetProperty, writeToXml, writeToXmlForUpdate
-
-
-
-
Constructor Detail
-
SearchFolder
public SearchFolder(ExchangeService service) throws Exception
Initializes an unsaved local instance of the class. To bind to an existing search folder, use SearchFolder.Bind() instead.- Parameters:
service- the service- Throws:
Exception- the exception
-
-
Method Detail
-
bind
public static SearchFolder bind(ExchangeService service, FolderId id, PropertySet propertySet) throws Exception
Binds to an existing search folder and loads the specified set of property. Calling this method results in a call to EWS.- Parameters:
service- the serviceid- the idpropertySet- the property set- Returns:
- A SearchFolder instance representing the search folder corresponding to the specified Id.
- Throws:
Exception- the exception
-
bind
public static SearchFolder bind(ExchangeService service, FolderId id) throws Exception
Binds to an existing search folder and loads its first class property. Calling this method results in a call to EWS.- Parameters:
service- the serviceid- the id- Returns:
- A SearchFolder instance representing the search folder corresponding to the specified Id.
- Throws:
Exception- the exception
-
bind
public static SearchFolder bind(ExchangeService service, WellKnownFolderName name, PropertySet propertySet) throws Exception
Binds to an existing search folder and loads the specified set of property. Calling this method results in a call to EWS.- Parameters:
service- the servicename- the namepropertySet- the property set- Returns:
- A SearchFolder instance representing the search folder with the specified name.
- Throws:
Exception- the exception
-
bind
public static SearchFolder bind(ExchangeService service, WellKnownFolderName name) throws Exception
Binds to an existing search folder and loads the specified set of property. Calling this method results in a call to EWS.- Parameters:
service- the servicename- the name- Returns:
- A SearchFolder instance representing the search folder with the specified name.
- Throws:
Exception- the exception
-
getSchema
public ServiceObjectSchema getSchema()
Internal method to return the schema associated with this type of object.
-
getMinimumRequiredServerVersion
public ExchangeVersion getMinimumRequiredServerVersion()
Gets the minimum required server version.- Overrides:
getMinimumRequiredServerVersionin classFolder- Returns:
- Earliest Exchange version in which this service object type is supported.
-
getSearchParameters
public SearchFolderParameters getSearchParameters() throws Exception
Gets the search parameters associated with the search folder.- Returns:
- the search parameters
- Throws:
Exception- the exception
-
-