|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectmicrosoft.exchange.webservices.data.ExchangeServiceBase
microsoft.exchange.webservices.data.ExchangeService
public final class ExchangeService
Represents a binding to the Exchange Web Services.
| Constructor Summary | |
|---|---|
ExchangeService()
Initializes a new instance of the |
|
ExchangeService(ExchangeVersion requestedServerVersion)
* Initializes a new instance of the |
|
ExchangeService(ExchangeVersion requestedServerVersion,
TimeZone timeZone)
Initializes a new instance of the |
|
| Method Summary | ||
|---|---|---|
Collection<DelegateUserResponse> |
addDelegates(Mailbox mailbox,
MeetingRequestsDeliveryScope meetingRequestsDeliveryScope,
DelegateUser... delegateUsers)
* Adds delegates to a specific mailbox. |
|
Collection<DelegateUserResponse> |
addDelegates(Mailbox mailbox,
MeetingRequestsDeliveryScope meetingRequestsDeliveryScope,
Iterable<DelegateUser> delegateUsers)
* Adds delegates to a specific mailbox. |
|
boolean |
autodiscoverRedirectionUrlValidationCallback(String redirectionUrl)
Autodiscover redirection url validation callback. |
|
void |
autodiscoverUrl(String emailAddress)
Initializes the Url property to the Exchange Web Services URL for the specified e-mail address by calling the Autodiscover service. |
|
void |
autodiscoverUrl(String emailAddress,
IAutodiscoverRedirectionUrl validateRedirectionUrlCallback)
Initializes the Url property to the Exchange Web Services URL for the specified e-mail address by calling the Autodiscover service. |
|
protected
|
bindToFolder(Class<TFolder> cls,
FolderId folderId,
PropertySet propertySet)
Binds to folder. |
|
protected Folder |
bindToFolder(FolderId folderId,
PropertySet propertySet)
Binds to a folder. |
|
protected
|
bindToItem(Class<TItem> c,
ItemId itemId,
PropertySet propertySet)
Bind to item. |
|
protected Item |
bindToItem(ItemId itemId,
PropertySet propertySet)
* Binds to multiple items in a single call to EWS. |
|
ServiceResponseCollection<GetItemResponse> |
bindToItems(Iterable<ItemId> itemIds,
PropertySet propertySet)
* Binds to multiple items in a single call to EWS. |
|
AlternateIdBase |
convertId(AlternateIdBase id,
IdFormat destinationFormat)
* Converts Id from one format to another in a single call to EWS. |
|
ServiceResponseCollection<ConvertIdResponse> |
convertIds(Iterable<AlternateIdBase> ids,
IdFormat destinationFormat)
* Converts multiple Ids from one format to another in a single call to EWS. |
|
protected Folder |
copyFolder(FolderId folderId,
FolderId destinationFolderId)
Copies a folder. |
|
protected Item |
copyItem(ItemId itemId,
FolderId destinationFolderId)
Copies an item. |
|
ServiceResponseCollection<MoveCopyItemResponse> |
copyItems(Iterable<ItemId> itemIds,
FolderId destinationFolderId)
* Copies multiple items in a single call to EWS. |
|
ServiceResponseCollection<MoveCopyItemResponse> |
copyItems(Iterable<ItemId> itemIds,
FolderId destinationFolderId,
boolean returnNewItemIds)
Copies multiple items in a single call to EWS. |
|
ServiceResponseCollection<ServiceResponse> |
copyItemsInConversations(Iterable<HashMap<ConversationId,Date>> idLastSyncTimePairs,
FolderId contextFolderId,
FolderId destinationFolderId)
Copies the items in the specified conversation to the specified destination folder. |
|
protected ServiceResponseCollection<CreateAttachmentResponse> |
createAttachments(String parentItemId,
Iterable<Attachment> attachments)
* Creates attachments. |
|
protected void |
createFolder(Folder folder,
FolderId parentFolderId)
Creates a folder. |
|
protected void |
createItem(Item item,
FolderId parentFolderId,
MessageDisposition messageDisposition,
SendInvitationsMode sendInvitationsMode)
* Creates an item. |
|
ServiceResponseCollection<ServiceResponse> |
createItems(Collection<Item> items,
FolderId parentFolderId,
MessageDisposition messageDisposition,
SendInvitationsMode sendInvitationsMode)
* Creates multiple items in a single EWS call. |
|
protected void |
createUserConfiguration(UserConfiguration userConfiguration)
Creates the user configuration. |
|
protected ServiceResponseCollection<DeleteAttachmentResponse> |
deleteAttachments(Iterable<Attachment> attachments)
* Deletes attachments. |
|
protected void |
deleteFolder(FolderId folderId,
DeleteMode deleteMode)
Deletes a folder. |
|
protected void |
deleteItem(ItemId itemId,
DeleteMode deleteMode,
SendCancellationsMode sendCancellationsMode,
AffectedTaskOccurrence affectedTaskOccurrences)
Deletes an item. |
|
ServiceResponseCollection<ServiceResponse> |
deleteItems(Iterable<ItemId> itemIds,
DeleteMode deleteMode,
SendCancellationsMode sendCancellationsMode,
AffectedTaskOccurrence affectedTaskOccurrences)
Deletes multiple items in a single call to EWS. |
|
ServiceResponseCollection<ServiceResponse> |
deleteItemsInConversations(Iterable<HashMap<ConversationId,Date>> idLastSyncTimePairs,
FolderId contextFolderId,
DeleteMode deleteMode)
Deletes the items in the specified conversation. |
|
protected void |
deleteUserConfiguration(String name,
FolderId parentFolderId)
* Creates a UserConfiguration. |
|
ServiceResponseCollection<ServiceResponse> |
disableAlwaysCategorizeItemsInConversations(Iterable<ConversationId> conversationId,
boolean processSynchronously)
Sets up a conversation so that any item received within that conversation is no longer categorized. |
|
ServiceResponseCollection<ServiceResponse> |
disableAlwaysDeleteItemsInConversations(Iterable<ConversationId> conversationId,
boolean processSynchronously)
Sets up a conversation so that any item received within that conversation is no longer moved to Deleted Items folder. |
|
ServiceResponseCollection<ServiceResponse> |
disableAlwaysMoveItemsInConversations(Iterable<ConversationId> conversationIds,
boolean processSynchronously)
Sets up a conversation so that any item received within that conversation is no longer moved to a specific folder. |
|
protected void |
emptyFolder(FolderId folderId,
DeleteMode deleteMode,
boolean deleteSubFolders)
Empties a folder. |
|
ServiceResponseCollection<ServiceResponse> |
enableAlwaysCategorizeItemsInConversations(Iterable<ConversationId> conversationId,
Iterable<String> categories,
boolean processSynchronously)
Sets up a conversation so that any item received within that conversation is always categorized. |
|
ServiceResponseCollection<ServiceResponse> |
enableAlwaysDeleteItemsInConversations(Iterable<ConversationId> conversationId,
boolean processSynchronously)
Sets up a conversation so that any item received within that conversation is always moved to Deleted Items folder. |
|
ServiceResponseCollection<ServiceResponse> |
enableAlwaysMoveItemsInConversations(Iterable<ConversationId> conversationId,
FolderId destinationFolderId,
boolean processSynchronously)
Sets up a conversation so that any item received within that conversation is always moved to a specific folder. |
|
protected Document |
executeDiagnosticMethod(String verb,
Node parameter)
Executes the diagnostic method. |
|
ExpandGroupResults |
expandGroup(EmailAddress emailAddress)
* Expands a group by retrieving a list of its members. |
|
ExpandGroupResults |
expandGroup(ItemId groupId)
* Expands a group by retrieving a list of its members. |
|
ExpandGroupResults |
expandGroup(String smtpAddress)
* Expands a group by retrieving a list of its members. |
|
ExpandGroupResults |
expandGroup(String address,
String routingType)
* Expands a group by retrieving a list of its members. |
|
FindItemsResults<Appointment> |
findAppointments(FolderId parentFolderId,
CalendarView calendarView)
* Obtains a list of appointments by searching the contents of a specific folder. |
|
FindItemsResults<Appointment> |
findAppointments(WellKnownFolderName parentFolderName,
CalendarView calendarView)
* Obtains a list of appointments by searching the contents of a specific folder. |
|
Collection<Conversation> |
findConversation(ConversationIndexedItemView view,
FolderId folderId)
Retrieves a collection of all Conversations in the specified Folder. |
|
FindFoldersResults |
findFolders(FolderId parentFolderId,
FolderView view)
Obtains a list of folders by searching the sub-folders of the specified folder. |
|
FindFoldersResults |
findFolders(FolderId parentFolderId,
SearchFilter searchFilter,
FolderView view)
Obtains a list of folders by searching the sub-folders of the specified folder. |
|
FindFoldersResults |
findFolders(WellKnownFolderName parentFolderName,
FolderView view)
* Obtains a list of folders by searching the sub-folders of the specified folder. |
|
FindFoldersResults |
findFolders(WellKnownFolderName parentFolderName,
SearchFilter searchFilter,
FolderView view)
Obtains a list of folders by searching the sub-folders of the specified folder. |
|
protected
|
findItems(Class<TItem> cls,
FolderId parentFolderId,
SearchFilter searchFilter,
ViewBase view,
Grouping groupBy)
Obtains a grouped list of items by searching the contents of a specific folder. |
|
FindItemsResults<Item> |
findItems(FolderId parentFolderId,
ItemView view)
Obtains a list of items by searching the contents of a specific folder. |
|
GroupedFindItemsResults<Item> |
findItems(FolderId parentFolderId,
ItemView view,
Grouping groupBy)
Obtains a grouped list of items by searching the contents of a specific folder. |
|
FindItemsResults<Item> |
findItems(FolderId parentFolderId,
SearchFilter searchFilter,
ItemView view)
Obtains a list of items by searching the contents of a specific folder. |
|
GroupedFindItemsResults<Item> |
findItems(FolderId parentFolderId,
SearchFilter searchFilter,
ItemView view,
Grouping groupBy)
Obtains a grouped list of items by searching the contents of a specific folder. |
|
FindItemsResults<Item> |
findItems(FolderId parentFolderId,
String queryString,
ItemView view)
Obtains a list of items by searching the contents of a specific folder. |
|
GroupedFindItemsResults<Item> |
findItems(FolderId parentFolderId,
String queryString,
ItemView view,
Grouping groupBy)
Obtains a grouped list of items by searching the contents of a specific folder. |
|
protected
|
findItems(Iterable<FolderId> parentFolderIds,
SearchFilter searchFilter,
String queryString,
ViewBase view,
Grouping groupBy,
microsoft.exchange.webservices.data.ServiceErrorHandling errorHandlingMode)
Finds items. |
|
FindItemsResults<Item> |
findItems(WellKnownFolderName parentFolderName,
ItemView view)
Obtains a list of items by searching the contents of a specific folder. |
|
FindItemsResults<Item> |
findItems(WellKnownFolderName parentFolderName,
SearchFilter searchFilter,
ItemView view)
Obtains a list of items by searching the contents of a specific folder. |
|
GroupedFindItemsResults<Item> |
findItems(WellKnownFolderName parentFolderName,
SearchFilter searchFilter,
ItemView view,
Grouping groupBy)
Obtains a grouped list of items by searching the contents of a specific folder. |
|
FindItemsResults<Item> |
findItems(WellKnownFolderName parentFolderName,
String queryString,
ItemView view)
Obtains a list of items by searching the contents of a specific folder. |
|
GroupedFindItemsResults<Item> |
findItems(WellKnownFolderName parentFolderName,
String queryString,
ItemView view,
Grouping groupBy)
Obtains a grouped list of items by searching the contents of a specific folder. |
|
protected void |
getAttachment(Attachment attachment,
BodyType bodyType,
Iterable<PropertyDefinitionBase> additionalProperties)
Gets the attachment. |
|
protected ServiceResponseCollection<microsoft.exchange.webservices.data.GetAttachmentResponse> |
getAttachments(Attachment[] attachments,
BodyType bodyType,
Iterable<PropertyDefinitionBase> additionalProperties)
Gets attachments. |
|
DelegateInformation |
getDelegates(Mailbox mailbox,
boolean includePermissions,
Iterable<UserId> userIds)
* Retrieves the delegates of a specific mailbox. |
|
DelegateInformation |
getDelegates(Mailbox mailbox,
boolean includePermissions,
UserId... userIds)
* Retrieves the delegates of a specific mailbox. |
|
boolean |
getEnableScpLookup()
Gets or sets a value indicating whether the AutodiscoverUrl method should perform SCP (Service Connection Point) record lookup when determining the Autodiscover service URL. |
|
protected GetEventsResults |
getEvents(String subscriptionId,
String waterMark)
* Retrieves the latests events associated with a pull subscription. |
|
protected boolean |
getExchange2007CompatibilityMode()
Gets or sets a value indicating whether Exchange2007 compatibility mode is enabled. |
|
IFileAttachmentContentHandler |
getFileAttachmentContentHandler()
Gets the file attachment content handler. |
|
ImpersonatedUserId |
getImpersonatedUserId()
Gets the impersonated user id. |
|
RuleCollection |
getInboxRules()
Retrieves inbox rules of the authenticated user. |
|
RuleCollection |
getInboxRules(String mailboxSmtpAddress)
Retrieves the inbox rules of the specified user. |
|
Locale |
getPreferredCulture()
Gets the preferred culture. |
|
EmailAddressCollection |
getRoomLists()
* Retrieves a collection of all room lists in the organization. |
|
Collection<EmailAddress> |
getRooms(EmailAddress emailAddress)
* Retrieves a collection of all room lists in the specified room list in the organization. |
|
Collection<TimeZoneDefinition> |
getServerTimeZones()
Retrieves the definitions of all server-side time zones. |
|
Collection<TimeZoneDefinition> |
getServerTimeZones(Iterable<String> timeZoneIds)
* Retrieves the definitions of the specified server-side time zones. |
|
UnifiedMessaging |
getUnifiedMessaging()
* Provides access to the Unified Messaging functionalities. |
|
URI |
getUrl()
Gets the URL of the Exchange Web Services. |
|
GetUserAvailabilityResults |
getUserAvailability(Iterable<AttendeeInfo> attendees,
TimeWindow timeWindow,
AvailabilityData requestedData)
* Gets detailed information about the availability of a set of users, rooms, and resources within a specified time window. |
|
GetUserAvailabilityResults |
getUserAvailability(Iterable<AttendeeInfo> attendees,
TimeWindow timeWindow,
AvailabilityData requestedData,
AvailabilityOptions options)
* Gets detailed information about the availability of a set of users, rooms, and resources within a specified time window. |
|
protected UserConfiguration |
getUserConfiguration(String name,
FolderId parentFolderId,
UserConfigurationProperties properties)
* Creates a UserConfiguration. |
|
OofSettings |
getUserOofSettings(String smtpAddress)
* Gets Out of Office (OOF) settings for a specific user. |
|
protected List<Item> |
internalCreateResponseObject(ServiceObject responseObject,
FolderId parentFolderId,
MessageDisposition messageDisposition)
Create response object. |
|
protected void |
loadPropertiesForFolder(Folder folder,
PropertySet propertySet)
Load specified properties for a folder. |
|
ServiceResponseCollection<ServiceResponse> |
loadPropertiesForItems(Iterable<Item> items,
PropertySet propertySet)
* Loads the properties of multiple items in a single call to EWS. |
|
protected void |
loadPropertiesForUserConfiguration(UserConfiguration userConfiguration,
UserConfigurationProperties properties)
* Loads the properties of the specified userConfiguration. |
|
protected Folder |
moveFolder(FolderId folderId,
FolderId destinationFolderId)
Move a folder. |
|
protected Item |
moveItem(ItemId itemId,
FolderId destinationFolderId)
Copies multiple items in a single call to EWS. |
|
ServiceResponseCollection<MoveCopyItemResponse> |
moveItems(Iterable<ItemId> itemIds,
FolderId destinationFolderId)
* Moves multiple items in a single call to EWS. |
|
ServiceResponseCollection<MoveCopyItemResponse> |
moveItems(Iterable<ItemId> itemIds,
FolderId destinationFolderId,
boolean returnNewItemIds)
Moves multiple items in a single call to EWS. |
|
ServiceResponseCollection<ServiceResponse> |
moveItemsInConversations(Iterable<HashMap<ConversationId,Date>> idLastSyncTimePairs,
FolderId contextFolderId,
FolderId destinationFolderId)
Moves the items in the specified conversation to the specified destination folder. |
|
protected microsoft.exchange.webservices.data.HttpWebRequest |
prepareHttpWebRequest()
Prepare http web request. |
|
protected void |
processHttpErrorResponse(microsoft.exchange.webservices.data.HttpWebRequest httpWebResponse,
Exception webException)
Processes an HTTP error response. |
|
Collection<DelegateUserResponse> |
removeDelegates(Mailbox mailbox,
Iterable<UserId> userIds)
* Removes delegates on a specific mailbox. |
|
Collection<DelegateUserResponse> |
removeDelegates(Mailbox mailbox,
UserId... userIds)
* Removes delegates on a specific mailbox. |
|
NameResolutionCollection |
resolveName(String nameToResolve)
* Finds contacts in the user's Contacts folder and the Global Address List (in that order) that have names that match the one passed as a parameter. |
|
NameResolutionCollection |
resolveName(String nameToResolve,
Iterable<FolderId> parentFolderIds,
ResolveNameSearchLocation searchScope,
boolean returnContactDetails)
* Finds contacts in the user's Contacts folder and the Global Address List (in that order) that have names that match the one passed as a parameter. |
|
NameResolutionCollection |
resolveName(String nameToResolve,
ResolveNameSearchLocation searchScope,
boolean returnContactDetails)
* Finds contacts in the user's Contacts folder and the Global Address List (in that order) that have names that match the one passed as a parameter. |
|
protected void |
sendItem(Item item,
FolderId savedCopyDestinationFolderId)
Send item. |
|
void |
setEnableScpLookup(boolean value)
|
|
protected void |
setExchange2007CompatibilityMode(boolean value)
|
|
void |
setFileAttachmentContentHandler(IFileAttachmentContentHandler fileAttachmentContentHandler)
Sets the file attachment content handler. |
|
void |
setImpersonatedUserId(ImpersonatedUserId impersonatedUserId)
Sets the impersonated user id. |
|
void |
setPreferredCulture(Locale preferredCulture)
Sets the preferred culture. |
|
ServiceResponseCollection<ServiceResponse> |
setReadStateForItemsInConversations(Iterable<HashMap<ConversationId,Date>> idLastSyncTimePairs,
FolderId contextFolderId,
boolean isRead)
Sets the read state for items in conversation. |
|
void |
setUrl(URI url)
Sets the URL of the Exchange Web Services. |
|
void |
setUserOofSettings(String smtpAddress,
OofSettings oofSettings)
* Sets Out of Office (OOF) settings for a specific user. |
|
PullSubscription |
subscribeToPullNotifications(Iterable<FolderId> folderIds,
int timeout,
String watermark,
EventType... eventTypes)
* Subscribes to pull notifications. |
|
PullSubscription |
subscribeToPullNotificationsOnAllFolders(int timeout,
String watermark,
EventType... eventTypes)
* Subscribes to pull notifications on all folders in the authenticated user's mailbox. |
|
PushSubscription |
subscribeToPushNotifications(Iterable<FolderId> folderIds,
URI url,
int frequency,
String watermark,
EventType... eventTypes)
* Subscribes to push notifications. |
|
PushSubscription |
subscribeToPushNotificationsOnAllFolders(URI url,
int frequency,
String watermark,
EventType... eventTypes)
* Subscribes to push notifications on all folders in the authenticated user's mailbox. |
|
StreamingSubscription |
subscribeToStreamingNotifications(Iterable<FolderId> folderIds,
EventType... eventTypes)
Subscribes to streaming notifications. |
|
StreamingSubscription |
subscribeToStreamingNotificationsOnAllFolders(EventType... eventTypes)
Subscribes to streaming notifications on all folders in the authenticated user's mailbox. |
|
ChangeCollection<FolderChange> |
syncFolderHierarchy(FolderId syncFolderId,
PropertySet propertySet,
String syncState)
* Synchronizes the sub-folders of a specific folder. |
|
ChangeCollection<FolderChange> |
syncFolderHierarchy(PropertySet propertySet,
String syncState)
* Synchronizes the entire folder hierarchy of the mailbox this Service is connected to. |
|
ChangeCollection<ItemChange> |
syncFolderItems(FolderId syncFolderId,
PropertySet propertySet,
Iterable<ItemId> ignoredItemIds,
int maxChangesReturned,
SyncFolderItemsScope syncScope,
String syncState)
* Synchronizes the items of a specific folder. |
|
protected void |
unsubscribe(String subscriptionId)
* Unsubscribes from a pull subscription. |
|
Collection<DelegateUserResponse> |
updateDelegates(Mailbox mailbox,
MeetingRequestsDeliveryScope meetingRequestsDeliveryScope,
DelegateUser... delegateUsers)
* Updates delegates on a specific mailbox. |
|
Collection<DelegateUserResponse> |
updateDelegates(Mailbox mailbox,
MeetingRequestsDeliveryScope meetingRequestsDeliveryScope,
Iterable<DelegateUser> delegateUsers)
* Updates delegates on a specific mailbox. |
|
protected void |
updateFolder(Folder folder)
Updates a folder. |
|
void |
updateInboxRules(Iterable<RuleOperation> operations,
boolean removeOutlookRuleBlob)
Updates the authenticated user's inbox rules by applying the specified operations. |
|
void |
updateInboxRules(Iterable<RuleOperation> operations,
boolean removeOutlookRuleBlob,
String mailboxSmtpAddress)
Updates the authenticated user's inbox rules by applying the specified operations. |
|
protected Item |
updateItem(Item item,
FolderId savedItemsDestinationFolderId,
ConflictResolutionMode conflictResolution,
MessageDisposition messageDisposition,
SendInvitationsOrCancellationsMode sendInvitationsOrCancellationsMode)
Updates an item. |
|
ServiceResponseCollection<UpdateItemResponse> |
updateItems(Iterable<Item> items,
FolderId savedItemsDestinationFolderId,
ConflictResolutionMode conflictResolution,
MessageDisposition messageDisposition,
SendInvitationsOrCancellationsMode sendInvitationsOrCancellationsMode)
* Updates multiple items in a single EWS call. |
|
protected void |
updateUserConfiguration(UserConfiguration userConfiguration)
* Updates a UserConfiguration. |
|
protected void |
validate()
* Validates this instance. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExchangeService()
public ExchangeService(ExchangeVersion requestedServerVersion)
requestedServerVersion - the requested server version
public ExchangeService(ExchangeVersion requestedServerVersion,
TimeZone timeZone)
requestedServerVersion - The version of EWS that the service targets.timeZone - The time zone to which the service is scoped.| Method Detail |
|---|
protected List<Item> internalCreateResponseObject(ServiceObject responseObject,
FolderId parentFolderId,
MessageDisposition messageDisposition)
throws Exception
responseObject - the response objectparentFolderId - the parent folder idmessageDisposition - the message disposition
Exception - the exception
protected void createFolder(Folder folder,
FolderId parentFolderId)
throws Exception
folder - The folder.parentFolderId - The parent folder Id
Exception - the exception
protected void updateFolder(Folder folder)
throws Exception
folder - The folder.
Exception - the exception
protected Folder copyFolder(FolderId folderId,
FolderId destinationFolderId)
throws Exception
folderId - The folderId.destinationFolderId - The destination folder id.
Exception - the exception
protected Folder moveFolder(FolderId folderId,
FolderId destinationFolderId)
throws Exception
folderId - The folderId.destinationFolderId - The destination folder id.
Exception - the exception
public FindFoldersResults findFolders(FolderId parentFolderId,
SearchFilter searchFilter,
FolderView view)
throws Exception
parentFolderId - The Id of the folder in which to search for folders.searchFilter - The search filter. Available search filter classes include
SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and
SearchFilter.SearchFilterCollectionview - The view controlling the number of folders returned.
Exception - the exception
public FindFoldersResults findFolders(FolderId parentFolderId,
FolderView view)
throws Exception
parentFolderId - The Id of the folder in which to search for folders.view - The view controlling the number of folders returned.
Exception - the exception
public FindFoldersResults findFolders(WellKnownFolderName parentFolderName,
SearchFilter searchFilter,
FolderView view)
throws Exception
parentFolderName - The name of the folder in which to search for folders.searchFilter - The search filter. Available search filter classes include
SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and
SearchFilter.SearchFilterCollectionview - The view controlling the number of folders returned.
Exception - the exception
public FindFoldersResults findFolders(WellKnownFolderName parentFolderName,
FolderView view)
throws Exception
parentFolderName - the parent folder nameview - the view
Exception - the exception
protected void loadPropertiesForFolder(Folder folder,
PropertySet propertySet)
throws Exception
folder - The folderpropertySet - The property set
Exception - the exception
protected Folder bindToFolder(FolderId folderId,
PropertySet propertySet)
throws Exception
folderId - the folder idpropertySet - the property set
Exception - the exception
protected <TFolder extends Folder> TFolder bindToFolder(Class<TFolder> cls,
FolderId folderId,
PropertySet propertySet)
throws Exception
TFolder - The type of the folder.cls - Folder classfolderId - The folder id.propertySet - The property set.
Exception - the exception
protected void deleteFolder(FolderId folderId,
DeleteMode deleteMode)
throws Exception
folderId - The folder iddeleteMode - The delete mode
Exception - the exception
protected void emptyFolder(FolderId folderId,
DeleteMode deleteMode,
boolean deleteSubFolders)
throws Exception
folderId - The folder iddeleteMode - The delete modedeleteSubFolders - if set to Exception - the exception
public ServiceResponseCollection<ServiceResponse> createItems(Collection<Item> items,
FolderId parentFolderId,
MessageDisposition messageDisposition,
SendInvitationsMode sendInvitationsMode)
throws Exception
items - the itemsparentFolderId - the parent folder idmessageDisposition - the message dispositionsendInvitationsMode - the send invitations mode
Exception - the exception
protected void createItem(Item item,
FolderId parentFolderId,
MessageDisposition messageDisposition,
SendInvitationsMode sendInvitationsMode)
throws Exception
item - the itemparentFolderId - the parent folder idmessageDisposition - the message dispositionsendInvitationsMode - the send invitations mode
Exception - the exception
public ServiceResponseCollection<UpdateItemResponse> updateItems(Iterable<Item> items,
FolderId savedItemsDestinationFolderId,
ConflictResolutionMode conflictResolution,
MessageDisposition messageDisposition,
SendInvitationsOrCancellationsMode sendInvitationsOrCancellationsMode)
throws Exception
items - the itemssavedItemsDestinationFolderId - the saved items destination folder idconflictResolution - the conflict resolutionmessageDisposition - the message dispositionsendInvitationsOrCancellationsMode - the send invitations or cancellations mode
Exception - the exception
protected Item updateItem(Item item,
FolderId savedItemsDestinationFolderId,
ConflictResolutionMode conflictResolution,
MessageDisposition messageDisposition,
SendInvitationsOrCancellationsMode sendInvitationsOrCancellationsMode)
throws Exception
item - the itemsavedItemsDestinationFolderId - the saved items destination folder idconflictResolution - the conflict resolutionmessageDisposition - the message dispositionsendInvitationsOrCancellationsMode - the send invitations or cancellations mode
Exception - the exception
protected void sendItem(Item item,
FolderId savedCopyDestinationFolderId)
throws Exception
item - the itemsavedCopyDestinationFolderId - the saved copy destination folder id
Exception - the exception
public ServiceResponseCollection<MoveCopyItemResponse> copyItems(Iterable<ItemId> itemIds,
FolderId destinationFolderId)
throws Exception
itemIds - the item idsdestinationFolderId - the destination folder id
Exception - the exception
public ServiceResponseCollection<MoveCopyItemResponse> copyItems(Iterable<ItemId> itemIds,
FolderId destinationFolderId,
boolean returnNewItemIds)
throws Exception
itemIds - The Ids of the items to copy.destinationFolderId - The Id of the folder to copy the items to.returnNewItemIds - Flag indicating whether service should return new ItemIds or not.
Exception
protected Item copyItem(ItemId itemId,
FolderId destinationFolderId)
throws IndexOutOfBoundsException,
Exception
itemId - The Id of the item to copy.destinationFolderId - The folder in which to save sent messages, meeting invitations
or cancellations. If null, the message, meeting invitation or
cancellation is saved in the Sent Items folder
IndexOutOfBoundsException - the index out of bounds exception
Exception - the exception
public ServiceResponseCollection<MoveCopyItemResponse> moveItems(Iterable<ItemId> itemIds,
FolderId destinationFolderId)
throws Exception
itemIds - the item idsdestinationFolderId - the destination folder id
Exception - the exception
public ServiceResponseCollection<MoveCopyItemResponse> moveItems(Iterable<ItemId> itemIds,
FolderId destinationFolderId,
boolean returnNewItemIds)
throws Exception
itemIds - The Ids of the items to move.destinationFolderId - The Id of the folder to move the items to.returnNewItemIds - Flag indicating whether service should return new ItemIds or not.
Exception
protected Item moveItem(ItemId itemId,
FolderId destinationFolderId)
throws IndexOutOfBoundsException,
Exception
itemId - the item iddestinationFolderId - the destination folder id
IndexOutOfBoundsException - the index out of bounds exception
Exception - the exception
protected <TItem extends Item> ServiceResponseCollection<FindItemResponse<TItem>> findItems(Iterable<FolderId> parentFolderIds,
SearchFilter searchFilter,
String queryString,
ViewBase view,
Grouping groupBy,
microsoft.exchange.webservices.data.ServiceErrorHandling errorHandlingMode)
throws Exception
TItem - The type of itemparentFolderIds - The parent folder ids.searchFilter - The search filter. Available search filter classes include
SearchFilter.IsEqualTo, SearchFilter.ContainsSubstring and
SearchFilter.SearchFilterCollectionqueryString - the query stringview - The view controlling the number of folders returned.groupBy - The group by.errorHandlingMode - Indicates the type of error handling should be done.
Exception - the exception
public FindItemsResults<Item> findItems(FolderId parentFolderId,
String queryString,
ItemView view)
throws Exception
parentFolderId - the parent folder idqueryString - the query stringview - the view
Exception - the exception
public FindItemsResults<Item> findItems(FolderId parentFolderId,
SearchFilter searchFilter,
ItemView view)
throws Exception
parentFolderId - the parent folder idsearchFilter - the search filterview - the view
Exception - the exception
public FindItemsResults<Item> findItems(FolderId parentFolderId,
ItemView view)
throws Exception
parentFolderId - the parent folder idview - the view
Exception - the exception
public FindItemsResults<Item> findItems(WellKnownFolderName parentFolderName,
String queryString,
ItemView view)
throws Exception
parentFolderName - the parent folder namequeryString - the query stringview - the view
Exception - the exception
public FindItemsResults<Item> findItems(WellKnownFolderName parentFolderName,
SearchFilter searchFilter,
ItemView view)
throws Exception
parentFolderName - the parent folder namesearchFilter - the search filterview - the view
Exception - the exception
public FindItemsResults<Item> findItems(WellKnownFolderName parentFolderName,
ItemView view)
throws Exception
parentFolderName - the parent folder nameview - the view
Exception - the exception
public GroupedFindItemsResults<Item> findItems(FolderId parentFolderId,
String queryString,
ItemView view,
Grouping groupBy)
throws Exception
parentFolderId - the parent folder idqueryString - the query stringview - the viewgroupBy - the group by
Exception - the exception
public GroupedFindItemsResults<Item> findItems(FolderId parentFolderId,
SearchFilter searchFilter,
ItemView view,
Grouping groupBy)
throws Exception
parentFolderId - the parent folder idsearchFilter - the search filterview - the viewgroupBy - the group by
Exception - the exception
public GroupedFindItemsResults<Item> findItems(FolderId parentFolderId,
ItemView view,
Grouping groupBy)
throws Exception
parentFolderId - the parent folder idview - the viewgroupBy - the group by
Exception - the exception
protected <TItem extends Item> ServiceResponseCollection<FindItemResponse<TItem>> findItems(Class<TItem> cls,
FolderId parentFolderId,
SearchFilter searchFilter,
ViewBase view,
Grouping groupBy)
throws Exception
TItem - the generic typecls - the clsparentFolderId - the parent folder idsearchFilter - the search filterview - the viewgroupBy - the group by
Exception - the exception
public GroupedFindItemsResults<Item> findItems(WellKnownFolderName parentFolderName,
String queryString,
ItemView view,
Grouping groupBy)
throws Exception
parentFolderName - the parent folder namequeryString - the query stringview - the viewgroupBy - the group by
Exception - the exception
public GroupedFindItemsResults<Item> findItems(WellKnownFolderName parentFolderName,
SearchFilter searchFilter,
ItemView view,
Grouping groupBy)
throws Exception
parentFolderName - the parent folder namesearchFilter - the search filterview - the viewgroupBy - the group by
Exception - the exception
public FindItemsResults<Appointment> findAppointments(FolderId parentFolderId,
CalendarView calendarView)
throws Exception
parentFolderId - the parent folder idcalendarView - the calendar view
Exception - the exception
public FindItemsResults<Appointment> findAppointments(WellKnownFolderName parentFolderName,
CalendarView calendarView)
throws Exception
parentFolderName - the parent folder namecalendarView - the calendar view
Exception - the exception
public ServiceResponseCollection<ServiceResponse> loadPropertiesForItems(Iterable<Item> items,
PropertySet propertySet)
throws Exception
items - the itemspropertySet - the property set
Exception - the exception
public ServiceResponseCollection<GetItemResponse> bindToItems(Iterable<ItemId> itemIds,
PropertySet propertySet)
throws Exception
itemIds - the item idspropertySet - the property set
Exception - the exception
protected Item bindToItem(ItemId itemId,
PropertySet propertySet)
throws Exception
itemId - the item idpropertySet - the property set
Exception - the exception
protected <TItem extends Item> TItem bindToItem(Class<TItem> c,
ItemId itemId,
PropertySet propertySet)
throws Exception
TItem - The type of the item.c - the citemId - the item idpropertySet - the property set
Exception - the exception
public ServiceResponseCollection<ServiceResponse> deleteItems(Iterable<ItemId> itemIds,
DeleteMode deleteMode,
SendCancellationsMode sendCancellationsMode,
AffectedTaskOccurrence affectedTaskOccurrences)
throws Exception
itemIds - the item idsdeleteMode - the delete modesendCancellationsMode - the send cancellations modeaffectedTaskOccurrences - the affected task occurrences
Exception - the exception
protected void deleteItem(ItemId itemId,
DeleteMode deleteMode,
SendCancellationsMode sendCancellationsMode,
AffectedTaskOccurrence affectedTaskOccurrences)
throws Exception
itemId - the item iddeleteMode - the delete modesendCancellationsMode - the send cancellations modeaffectedTaskOccurrences - the affected task occurrences
Exception - the exception
protected ServiceResponseCollection<microsoft.exchange.webservices.data.GetAttachmentResponse> getAttachments(Attachment[] attachments,
BodyType bodyType,
Iterable<PropertyDefinitionBase> additionalProperties)
throws Exception
attachments - the attachmentsbodyType - the body typeadditionalProperties - the additional properties
Exception
protected void getAttachment(Attachment attachment,
BodyType bodyType,
Iterable<PropertyDefinitionBase> additionalProperties)
throws Exception
attachment - the attachmentbodyType - the body typeadditionalProperties - the additional properties
Exception - the exception
protected ServiceResponseCollection<CreateAttachmentResponse> createAttachments(String parentItemId,
Iterable<Attachment> attachments)
throws ServiceResponseException,
Exception
parentItemId - the parent item idattachments - the attachments
ServiceResponseException - the service response exception
Exception - the exception
protected ServiceResponseCollection<DeleteAttachmentResponse> deleteAttachments(Iterable<Attachment> attachments)
throws ServiceResponseException,
Exception
attachments - the attachments
ServiceResponseException - the service response exception
Exception - the exception
public NameResolutionCollection resolveName(String nameToResolve)
throws Exception
nameToResolve - the name to resolve
Exception - the exception
public NameResolutionCollection resolveName(String nameToResolve,
Iterable<FolderId> parentFolderIds,
ResolveNameSearchLocation searchScope,
boolean returnContactDetails)
throws Exception
nameToResolve - the name to resolveparentFolderIds - the parent folder idssearchScope - the search scopereturnContactDetails - the return contact details
Exception - the exception
public NameResolutionCollection resolveName(String nameToResolve,
ResolveNameSearchLocation searchScope,
boolean returnContactDetails)
throws Exception
nameToResolve - the name to resolvesearchScope - the search scopereturnContactDetails - the return contact details
Exception - the exception
public ExpandGroupResults expandGroup(EmailAddress emailAddress)
throws IndexOutOfBoundsException,
Exception
emailAddress - the email address
IndexOutOfBoundsException - the index out of bounds exception
Exception - the exception
public ExpandGroupResults expandGroup(ItemId groupId)
throws Exception
groupId - the group id
Exception - the exception
public ExpandGroupResults expandGroup(String smtpAddress)
throws Exception
smtpAddress - the smtp address
Exception - the exception
public ExpandGroupResults expandGroup(String address,
String routingType)
throws Exception
address - the addressroutingType - the routing type
Exception - the exception
public PullSubscription subscribeToPullNotificationsOnAllFolders(int timeout,
String watermark,
EventType... eventTypes)
throws Exception
timeout - the timeoutwatermark - the watermarkeventTypes - the event types
Exception - the exception
public PullSubscription subscribeToPullNotifications(Iterable<FolderId> folderIds,
int timeout,
String watermark,
EventType... eventTypes)
throws Exception
folderIds - the folder idstimeout - the timeoutwatermark - the watermarkeventTypes - the event types
Exception - the exception
protected void unsubscribe(String subscriptionId)
throws Exception
subscriptionId - the subscription id
Exception - the exception
protected GetEventsResults getEvents(String subscriptionId,
String waterMark)
throws Exception
subscriptionId - the subscription idwaterMark - the water mark
Exception - the exception
public PushSubscription subscribeToPushNotifications(Iterable<FolderId> folderIds,
URI url,
int frequency,
String watermark,
EventType... eventTypes)
throws Exception
folderIds - the folder idsurl - the urlfrequency - the frequencywatermark - the watermarkeventTypes - the event types
Exception - the exception
public PushSubscription subscribeToPushNotificationsOnAllFolders(URI url,
int frequency,
String watermark,
EventType... eventTypes)
throws Exception
url - the urlfrequency - the frequencywatermark - the watermarkeventTypes - the event types
Exception - the exception
public StreamingSubscription subscribeToStreamingNotificationsOnAllFolders(EventType... eventTypes)
throws Exception
eventTypes - The event types to subscribe to.
Exception
public StreamingSubscription subscribeToStreamingNotifications(Iterable<FolderId> folderIds,
EventType... eventTypes)
throws Exception
folderIds - The Ids of the folder to subscribe to.eventTypes - The event types to subscribe to.
Exception
public ChangeCollection<ItemChange> syncFolderItems(FolderId syncFolderId,
PropertySet propertySet,
Iterable<ItemId> ignoredItemIds,
int maxChangesReturned,
SyncFolderItemsScope syncScope,
String syncState)
throws Exception
syncFolderId - The Id of the folder containing the items to synchronize with.propertySet - The set of properties to retrieve for synchronized items.ignoredItemIds - The optional list of item Ids that should be ignored.maxChangesReturned - The maximum number of changes that should be returned.syncScope - The sync scope identifying items to include in the
ChangeCollection.syncState - The optional sync state representing the point in time when to
start the synchronization.
Exception - the exception
public ChangeCollection<FolderChange> syncFolderHierarchy(FolderId syncFolderId,
PropertySet propertySet,
String syncState)
throws Exception
syncFolderId - the sync folder idpropertySet - the property setsyncState - the sync state
Exception - the exception
public ChangeCollection<FolderChange> syncFolderHierarchy(PropertySet propertySet,
String syncState)
throws Exception
propertySet - the property setsyncState - the sync state
Exception - the exception
public OofSettings getUserOofSettings(String smtpAddress)
throws Exception
smtpAddress - the smtp address
Exception - the exception
public void setUserOofSettings(String smtpAddress,
OofSettings oofSettings)
throws Exception
smtpAddress - the smtp addressoofSettings - the oof settings
Exception - the exception
public GetUserAvailabilityResults getUserAvailability(Iterable<AttendeeInfo> attendees,
TimeWindow timeWindow,
AvailabilityData requestedData,
AvailabilityOptions options)
throws Exception
attendees - the attendeestimeWindow - the time windowrequestedData - the requested dataoptions - the options
Exception - the exception
public GetUserAvailabilityResults getUserAvailability(Iterable<AttendeeInfo> attendees,
TimeWindow timeWindow,
AvailabilityData requestedData)
throws Exception
attendees - the attendeestimeWindow - the time windowrequestedData - the requested data
Exception - the exception
public EmailAddressCollection getRoomLists()
throws Exception
Exception - the exception
public Collection<EmailAddress> getRooms(EmailAddress emailAddress)
throws Exception
emailAddress - the email address
Exception - the exception
public Collection<Conversation> findConversation(ConversationIndexedItemView view,
FolderId folderId)
throws Exception
view - The view controlling the number of conversations returned.folderId - The Id of the folder in which to search for conversations.
Exception
public ServiceResponseCollection<ServiceResponse> enableAlwaysCategorizeItemsInConversations(Iterable<ConversationId> conversationId,
Iterable<String> categories,
boolean processSynchronously)
throws Exception
conversationId - The id of the conversation.categories - The categories that should be stamped on
items in the conversation.processSynchronously - Indicates whether the method should
return only once enabling this rule and stamping existing items
in the conversation is completely done. If processSynchronously
is false, the method returns immediately.
Exception
public ServiceResponseCollection<ServiceResponse> disableAlwaysCategorizeItemsInConversations(Iterable<ConversationId> conversationId,
boolean processSynchronously)
throws Exception
conversationId - The id of the conversation.processSynchronously - Indicates whether the method should
return only once enabling this rule and stamping existing items
in the conversation is completely done. If processSynchronously
is false, the method returns immediately.
Exception
public ServiceResponseCollection<ServiceResponse> enableAlwaysDeleteItemsInConversations(Iterable<ConversationId> conversationId,
boolean processSynchronously)
throws Exception
conversationId - The id of the conversation.processSynchronously - Indicates whether the method should
return only once enabling this rule and stamping existing items
in the conversation is completely done. If processSynchronously
is false, the method returns immediately.
Exception
public ServiceResponseCollection<ServiceResponse> disableAlwaysDeleteItemsInConversations(Iterable<ConversationId> conversationId,
boolean processSynchronously)
throws Exception
conversationId - The id of the conversation.processSynchronously - Indicates whether the method should
return only once enabling this rule and stamping existing items
in the conversation is completely done. If processSynchronously
is false, the method returns immediately.
Exception
public ServiceResponseCollection<ServiceResponse> enableAlwaysMoveItemsInConversations(Iterable<ConversationId> conversationId,
FolderId destinationFolderId,
boolean processSynchronously)
throws Exception
conversationId - The Id of the folder to which conversation items should be moved.destinationFolderId - The Id of the destination folder.processSynchronously - Indicates whether the method should return
only once enabling this rule and stamping existing items
in the conversation is completely done. If processSynchronously
is false, the method returns immediately.
Exception
public ServiceResponseCollection<ServiceResponse> disableAlwaysMoveItemsInConversations(Iterable<ConversationId> conversationIds,
boolean processSynchronously)
throws Exception
conversationIds - The conversation ids.processSynchronously - Indicates whether the method should
return only once disabling this rule is completely done.
If processSynchronously is false, the method returns immediately.
Exception
public ServiceResponseCollection<ServiceResponse> moveItemsInConversations(Iterable<HashMap<ConversationId,Date>> idLastSyncTimePairs,
FolderId contextFolderId,
FolderId destinationFolderId)
throws Exception
idLastSyncTimePairs - The pairs of Id of conversation whose
items should be moved and the dateTime
conversation was last synced (Items received after
that dateTime will not be moved).contextFolderId - The Id of the folder that contains the conversation.destinationFolderId - The Id of the destination folder.
Exception
public ServiceResponseCollection<ServiceResponse> copyItemsInConversations(Iterable<HashMap<ConversationId,Date>> idLastSyncTimePairs,
FolderId contextFolderId,
FolderId destinationFolderId)
throws Exception
idLastSyncTimePairs - The pairs of Id of conversation whose items
should be copied and the dateTime
conversation was last synced (Items received after
that dateTime will not be copied).contextFolderId - The context folder id.destinationFolderId - The destination folder id.
Exception
public ServiceResponseCollection<ServiceResponse> deleteItemsInConversations(Iterable<HashMap<ConversationId,Date>> idLastSyncTimePairs,
FolderId contextFolderId,
DeleteMode deleteMode)
throws Exception
idLastSyncTimePairs - The pairs of Id of conversation whose items
should be deleted and the date and time conversation
was last synced (Items received after that date will not be deleted).
conversation was last synced (Items received after that
dateTime will not be copied).contextFolderId - The Id of the folder that contains the conversation.deleteMode - The deletion mode
Exception
Exception
public ServiceResponseCollection<ServiceResponse> setReadStateForItemsInConversations(Iterable<HashMap<ConversationId,Date>> idLastSyncTimePairs,
FolderId contextFolderId,
boolean isRead)
throws Exception
idLastSyncTimePairs - The pairs of Id of conversation whose
items should read state set and the date and time
conversation was last synced (Items received after
that date will not have their read state set).
was last synced (Items received after that date will not be deleted).
conversation was last synced (Items received after that
dateTime will not be copied).contextFolderId - The Id of the folder that contains the conversation.isRead - if set to Exception
Exception
public ServiceResponseCollection<ConvertIdResponse> convertIds(Iterable<AlternateIdBase> ids,
IdFormat destinationFormat)
throws Exception
ids - the idsdestinationFormat - the destination format
Exception - the exception
public AlternateIdBase convertId(AlternateIdBase id,
IdFormat destinationFormat)
throws Exception
id - the iddestinationFormat - the destination format
Exception - the exception
public Collection<DelegateUserResponse> addDelegates(Mailbox mailbox,
MeetingRequestsDeliveryScope meetingRequestsDeliveryScope,
DelegateUser... delegateUsers)
throws Exception
mailbox - the mailboxmeetingRequestsDeliveryScope - the meeting requests delivery scopedelegateUsers - the delegate users
Exception - the exception
public Collection<DelegateUserResponse> addDelegates(Mailbox mailbox,
MeetingRequestsDeliveryScope meetingRequestsDeliveryScope,
Iterable<DelegateUser> delegateUsers)
throws Exception
mailbox - the mailboxmeetingRequestsDeliveryScope - the meeting requests delivery scopedelegateUsers - the delegate users
Exception - the exception
public Collection<DelegateUserResponse> updateDelegates(Mailbox mailbox,
MeetingRequestsDeliveryScope meetingRequestsDeliveryScope,
DelegateUser... delegateUsers)
throws Exception
mailbox - the mailboxmeetingRequestsDeliveryScope - the meeting requests delivery scopedelegateUsers - the delegate users
Exception - the exception
public Collection<DelegateUserResponse> updateDelegates(Mailbox mailbox,
MeetingRequestsDeliveryScope meetingRequestsDeliveryScope,
Iterable<DelegateUser> delegateUsers)
throws Exception
mailbox - the mailboxmeetingRequestsDeliveryScope - the meeting requests delivery scopedelegateUsers - the delegate users
Exception - the exception
public Collection<DelegateUserResponse> removeDelegates(Mailbox mailbox,
UserId... userIds)
throws Exception
mailbox - the mailboxuserIds - the user ids
Exception - the exception
public Collection<DelegateUserResponse> removeDelegates(Mailbox mailbox,
Iterable<UserId> userIds)
throws Exception
mailbox - the mailboxuserIds - the user ids
Exception - the exception
public DelegateInformation getDelegates(Mailbox mailbox,
boolean includePermissions,
UserId... userIds)
throws Exception
mailbox - the mailboxincludePermissions - the include permissionsuserIds - the user ids
Exception - the exception
public DelegateInformation getDelegates(Mailbox mailbox,
boolean includePermissions,
Iterable<UserId> userIds)
throws Exception
mailbox - the mailboxincludePermissions - the include permissionsuserIds - the user ids
Exception - the exception
protected void createUserConfiguration(UserConfiguration userConfiguration)
throws Exception
userConfiguration - the user configuration
Exception - the exception
protected void deleteUserConfiguration(String name,
FolderId parentFolderId)
throws Exception
name - the nameparentFolderId - the parent folder id
Exception - the exception
protected UserConfiguration getUserConfiguration(String name,
FolderId parentFolderId,
UserConfigurationProperties properties)
throws IndexOutOfBoundsException,
Exception
name - the nameparentFolderId - the parent folder idproperties - the properties
IndexOutOfBoundsException - the index out of bounds exception
Exception - the exception
protected void loadPropertiesForUserConfiguration(UserConfiguration userConfiguration,
UserConfigurationProperties properties)
throws Exception
userConfiguration - the user configurationproperties - the properties
Exception - the exception
protected void updateUserConfiguration(UserConfiguration userConfiguration)
throws Exception
userConfiguration - the user configuration
Exception - the exception
public RuleCollection getInboxRules()
throws Exception
Exception
public RuleCollection getInboxRules(String mailboxSmtpAddress)
throws Exception
mailboxSmtpAddress - The SMTP address of the user whose inbox rules should be retrieved
Exception
public void updateInboxRules(Iterable<RuleOperation> operations,
boolean removeOutlookRuleBlob)
throws Exception
operations - The operations that should be applied to the user's inbox rules.removeOutlookRuleBlob - Indicate whether or not to remove Outlook Rule Blob.
Exception
public void updateInboxRules(Iterable<RuleOperation> operations,
boolean removeOutlookRuleBlob,
String mailboxSmtpAddress)
throws Exception
operations - The operations that should be applied to the user's inbox rules.removeOutlookRuleBlob - Indicate whether or not to remove Outlook Rule Blob.mailboxSmtpAddress - The SMTP address of the user whose inbox rules should be retrieved
Exception
public void autodiscoverUrl(String emailAddress)
throws Exception
emailAddress - the email address
Exception - the exception
public void autodiscoverUrl(String emailAddress,
IAutodiscoverRedirectionUrl validateRedirectionUrlCallback)
throws Exception
emailAddress - the email address to use.validateRedirectionUrlCallback - The callback used to validate redirection URL
Exception - the exception
protected Document executeDiagnosticMethod(String verb,
Node parameter)
throws Exception
verb - The verb.parameter - The parameter.
Exception
protected void validate()
throws ServiceLocalException
validate in class ExchangeServiceBaseServiceLocalException - the service local exception
protected microsoft.exchange.webservices.data.HttpWebRequest prepareHttpWebRequest()
throws ServiceLocalException,
URISyntaxException
ServiceLocalException - the service local exception
URISyntaxException - the uRI syntax exception
protected void processHttpErrorResponse(microsoft.exchange.webservices.data.HttpWebRequest httpWebResponse,
Exception webException)
throws Exception
processHttpErrorResponse in class ExchangeServiceBasehttpWebResponse - The HTTP web response.webException - The web exception
Exceptionpublic URI getUrl()
public void setUrl(URI url)
url - URL of the Exchange Web Services.public ImpersonatedUserId getImpersonatedUserId()
public void setImpersonatedUserId(ImpersonatedUserId impersonatedUserId)
impersonatedUserId - the new impersonated user idpublic Locale getPreferredCulture()
public void setPreferredCulture(Locale preferredCulture)
preferredCulture - the new preferred culturepublic IFileAttachmentContentHandler getFileAttachmentContentHandler()
public void setFileAttachmentContentHandler(IFileAttachmentContentHandler fileAttachmentContentHandler)
fileAttachmentContentHandler - the new file attachment content handlerpublic UnifiedMessaging getUnifiedMessaging()
public boolean getEnableScpLookup()
public void setEnableScpLookup(boolean value)
protected boolean getExchange2007CompatibilityMode()
protected void setExchange2007CompatibilityMode(boolean value)
public Collection<TimeZoneDefinition> getServerTimeZones(Iterable<String> timeZoneIds)
timeZoneIds - the time zone ids
public Collection<TimeZoneDefinition> getServerTimeZones()
public boolean autodiscoverRedirectionUrlValidationCallback(String redirectionUrl)
throws AutodiscoverLocalException
IAutodiscoverRedirectionUrl
autodiscoverRedirectionUrlValidationCallback in interface IAutodiscoverRedirectionUrlredirectionUrl - the redirection url
AutodiscoverLocalException - the autodiscover local exception
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||