|
||||||||
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,
java.util.TimeZone timeZone)
Initializes a new instance of the |
Method Summary | ||
---|---|---|
java.util.Collection<DelegateUserResponse> |
addDelegates(Mailbox mailbox,
MeetingRequestsDeliveryScope meetingRequestsDeliveryScope,
DelegateUser... delegateUsers)
* Adds delegates to a specific mailbox. |
|
java.util.Collection<DelegateUserResponse> |
addDelegates(Mailbox mailbox,
MeetingRequestsDeliveryScope meetingRequestsDeliveryScope,
java.lang.Iterable<DelegateUser> delegateUsers)
* Adds delegates to a specific mailbox. |
|
boolean |
autodiscoverRedirectionUrlValidationCallback(java.lang.String redirectionUrl)
Autodiscover redirection url validation callback. |
|
void |
autodiscoverUrl(java.lang.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(java.lang.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 IAsyncResult |
beginGetEvents(microsoft.exchange.webservices.data.AsyncCallback callback,
java.lang.Object state,
java.lang.String subscriptionId,
java.lang.String watermark)
Begins an asynchronous request to retrieve the latest events associated with a pull subscription. |
|
AsyncRequestResult |
beginSubscribeToPullNotifications(microsoft.exchange.webservices.data.AsyncCallback callback,
java.lang.Object state,
java.lang.Iterable<FolderId> folderIds,
int timeout,
java.lang.String watermark,
EventType... eventTypes)
Begins an asynchronous request to subscribes to pull notifications. |
|
IAsyncResult |
beginSubscribeToPullNotificationsOnAllFolders(microsoft.exchange.webservices.data.AsyncCallback callback,
java.lang.Object state,
int timeout,
java.lang.String watermark,
EventType... eventTypes)
Begins an asynchronous request to subscribe to pull notifications on all folders in the authenticated user's mailbox. |
|
IAsyncResult |
beginSubscribeToPushNotifications(microsoft.exchange.webservices.data.AsyncCallback callback,
java.lang.Object state,
java.lang.Iterable<FolderId> folderIds,
java.net.URI url,
int frequency,
java.lang.String watermark,
EventType... eventTypes)
Begins an asynchronous request to subscribe to push notifications. |
|
IAsyncResult |
beginSubscribeToPushNotificationsOnAllFolders(microsoft.exchange.webservices.data.AsyncCallback callback,
java.lang.Object state,
java.net.URI url,
int frequency,
java.lang.String watermark,
EventType... eventTypes)
Begins an asynchronous request to subscribe to push notifications on all folders in the authenticated user's mailbox. |
|
IAsyncResult |
beginSubscribeToStreamingNotifications(microsoft.exchange.webservices.data.AsyncCallback callback,
java.lang.Object state,
java.lang.Iterable<FolderId> folderIds,
EventType... eventTypes)
Begins an asynchronous request to subscribe to streaming notifications. |
|
IAsyncResult |
beginSubscribeToStreamingNotificationsOnAllFolders(microsoft.exchange.webservices.data.AsyncCallback callback,
java.lang.Object state,
EventType... eventTypes)
Begins an asynchronous request to subscribe to streaming notifications on all folders in the authenticated user's mailbox. |
|
IAsyncResult |
beginSyncFolderHierarchy(microsoft.exchange.webservices.data.AsyncCallback callback,
java.lang.Object state,
FolderId syncFolderId,
PropertySet propertySet,
java.lang.String syncState)
Begins an asynchronous request to synchronize the sub-folders of a specific folder. |
|
IAsyncResult |
beginSyncFolderItems(microsoft.exchange.webservices.data.AsyncCallback callback,
java.lang.Object state,
FolderId syncFolderId,
PropertySet propertySet,
java.lang.Iterable<ItemId> ignoredItemIds,
int maxChangesReturned,
SyncFolderItemsScope syncScope,
java.lang.String syncState)
Begins an asynchronous request to synchronize the items of a specific folder. |
|
protected IAsyncResult |
beginUnsubscribe(microsoft.exchange.webservices.data.AsyncCallback callback,
java.lang.Object state,
java.lang.String subscriptionId)
Begins an asynchronous request to unsubscribe from a subscription. |
|
protected
|
bindToFolder(java.lang.Class<TFolder> cls,
FolderId folderId,
PropertySet propertySet)
Binds to folder. |
|
protected Folder |
bindToFolder(FolderId folderId,
PropertySet propertySet)
Binds to a folder. |
|
protected
|
bindToItem(java.lang.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(java.lang.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(java.lang.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(java.lang.Iterable<ItemId> itemIds,
FolderId destinationFolderId)
* Copies multiple items in a single call to EWS. |
|
ServiceResponseCollection<MoveCopyItemResponse> |
copyItems(java.lang.Iterable<ItemId> itemIds,
FolderId destinationFolderId,
boolean returnNewItemIds)
Copies multiple items in a single call to EWS. |
|
ServiceResponseCollection<ServiceResponse> |
copyItemsInConversations(java.lang.Iterable<java.util.HashMap<ConversationId,java.util.Date>> idLastSyncTimePairs,
FolderId contextFolderId,
FolderId destinationFolderId)
Copies the items in the specified conversation to the specified destination folder. |
|
protected ServiceResponseCollection<CreateAttachmentResponse> |
createAttachments(java.lang.String parentItemId,
java.lang.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(java.util.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(java.lang.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(java.lang.Iterable<ItemId> itemIds,
DeleteMode deleteMode,
SendCancellationsMode sendCancellationsMode,
AffectedTaskOccurrence affectedTaskOccurrences)
Deletes multiple items in a single call to EWS. |
|
ServiceResponseCollection<ServiceResponse> |
deleteItemsInConversations(java.lang.Iterable<java.util.HashMap<ConversationId,java.util.Date>> idLastSyncTimePairs,
FolderId contextFolderId,
DeleteMode deleteMode)
Deletes the items in the specified conversation. |
|
protected void |
deleteUserConfiguration(java.lang.String name,
FolderId parentFolderId)
* Creates a UserConfiguration. |
|
ServiceResponseCollection<ServiceResponse> |
disableAlwaysCategorizeItemsInConversations(java.lang.Iterable<ConversationId> conversationId,
boolean processSynchronously)
Sets up a conversation so that any item received within that conversation is no longer categorized. |
|
ServiceResponseCollection<ServiceResponse> |
disableAlwaysDeleteItemsInConversations(java.lang.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(java.lang.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(java.lang.Iterable<ConversationId> conversationId,
java.lang.Iterable<java.lang.String> categories,
boolean processSynchronously)
Sets up a conversation so that any item received within that conversation is always categorized. |
|
ServiceResponseCollection<ServiceResponse> |
enableAlwaysDeleteItemsInConversations(java.lang.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(java.lang.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 GetEventsResults |
endGetEvents(IAsyncResult asyncResult)
Ends an asynchronous request to retrieve the latest events associated with a pull subscription. |
|
PullSubscription |
endSubscribeToPullNotifications(IAsyncResult asyncResult)
Ends an asynchronous request to subscribe to pull notifications in the authenticated user's mailbox. |
|
PushSubscription |
endSubscribeToPushNotifications(IAsyncResult asyncResult)
Ends an asynchronous request to subscribe to push notifications in the authenticated user's mailbox. |
|
StreamingSubscription |
endSubscribeToStreamingNotifications(IAsyncResult asyncResult)
Ends an asynchronous request to subscribe to push notifications in the authenticated user's mailbox. |
|
ChangeCollection<FolderChange> |
endSyncFolderHierarchy(IAsyncResult asyncResult)
Ends an asynchronous request to synchronize the specified folder hierarchy of the mailbox this Service is connected to. |
|
ChangeCollection<ItemChange> |
endSyncFolderItems(IAsyncResult asyncResult)
Ends an asynchronous request to synchronize the items of a specific folder. |
|
protected void |
endUnsubscribe(IAsyncResult asyncResult)
Ends an asynchronous request to unsubscribe from a subscription. |
|
protected org.w3c.dom.Document |
executeDiagnosticMethod(java.lang.String verb,
org.w3c.dom.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(java.lang.String smtpAddress)
* Expands a group by retrieving a list of its members. |
|
ExpandGroupResults |
expandGroup(java.lang.String address,
java.lang.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. |
|
java.util.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(java.lang.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,
java.lang.String queryString,
ItemView view)
Obtains a list of items by searching the contents of a specific folder. |
|
GroupedFindItemsResults<Item> |
findItems(FolderId parentFolderId,
java.lang.String queryString,
ItemView view,
Grouping groupBy)
Obtains a grouped list of items by searching the contents of a specific folder. |
|
protected
|
findItems(java.lang.Iterable<FolderId> parentFolderIds,
SearchFilter searchFilter,
java.lang.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,
java.lang.String queryString,
ItemView view)
Obtains a list of items by searching the contents of a specific folder. |
|
GroupedFindItemsResults<Item> |
findItems(WellKnownFolderName parentFolderName,
java.lang.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,
java.lang.Iterable<PropertyDefinitionBase> additionalProperties)
Gets the attachment. |
|
protected ServiceResponseCollection<microsoft.exchange.webservices.data.GetAttachmentResponse> |
getAttachments(Attachment[] attachments,
BodyType bodyType,
java.lang.Iterable<PropertyDefinitionBase> additionalProperties)
Gets attachments. |
|
DateTimePrecision |
getDateTimePrecision()
Gets the DateTime precision for DateTime values returned from Exchange Web Services. |
|
DelegateInformation |
getDelegates(Mailbox mailbox,
boolean includePermissions,
java.lang.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(java.lang.String subscriptionId,
java.lang.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(java.lang.String mailboxSmtpAddress)
Retrieves the inbox rules of the specified user. |
|
java.util.Date |
getPasswordExpirationDate(java.lang.String mailboxSmtpAddress)
Get the password expiration date |
|
java.util.Locale |
getPreferredCulture()
Gets the preferred culture. |
|
EmailAddressCollection |
getRoomLists()
* Retrieves a collection of all room lists in the organization. |
|
java.util.Collection<EmailAddress> |
getRooms(EmailAddress emailAddress)
* Retrieves a collection of all room lists in the specified room list in the organization. |
|
java.util.Collection<TimeZoneDefinition> |
getServerTimeZones()
Retrieves the definitions of all server-side time zones. |
|
java.util.Collection<TimeZoneDefinition> |
getServerTimeZones(java.lang.Iterable<java.lang.String> timeZoneIds)
* Retrieves the definitions of the specified server-side time zones. |
|
UnifiedMessaging |
getUnifiedMessaging()
* Provides access to the Unified Messaging functionalities. |
|
java.net.URI |
getUrl()
Gets the URL of the Exchange Web Services. |
|
GetUserAvailabilityResults |
getUserAvailability(java.lang.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(java.lang.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(java.lang.String name,
FolderId parentFolderId,
UserConfigurationProperties properties)
* Creates a UserConfiguration. |
|
OofSettings |
getUserOofSettings(java.lang.String smtpAddress)
* Gets Out of Office (OOF) settings for a specific user. |
|
protected java.util.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(java.lang.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(java.lang.Iterable<ItemId> itemIds,
FolderId destinationFolderId)
* Moves multiple items in a single call to EWS. |
|
ServiceResponseCollection<MoveCopyItemResponse> |
moveItems(java.lang.Iterable<ItemId> itemIds,
FolderId destinationFolderId,
boolean returnNewItemIds)
Moves multiple items in a single call to EWS. |
|
ServiceResponseCollection<ServiceResponse> |
moveItemsInConversations(java.lang.Iterable<java.util.HashMap<ConversationId,java.util.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,
java.lang.Exception webException)
Processes an HTTP error response. |
|
java.util.Collection<DelegateUserResponse> |
removeDelegates(Mailbox mailbox,
java.lang.Iterable<UserId> userIds)
* Removes delegates on a specific mailbox. |
|
java.util.Collection<DelegateUserResponse> |
removeDelegates(Mailbox mailbox,
UserId... userIds)
* Removes delegates on a specific mailbox. |
|
NameResolutionCollection |
resolveName(java.lang.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(java.lang.String nameToResolve,
java.lang.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(java.lang.String nameToResolve,
java.lang.Iterable<FolderId> parentFolderIds,
ResolveNameSearchLocation searchScope,
boolean returnContactDetails,
PropertySet contactDataPropertySet)
Finds contacts in the Global Address List and/or in specific contact folders that have names that match the one passed as a parameter. |
|
NameResolutionCollection |
resolveName(java.lang.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. |
|
NameResolutionCollection |
resolveName(java.lang.String nameToResolve,
ResolveNameSearchLocation searchScope,
boolean returnContactDetails,
PropertySet contactDataPropertySet)
Finds contacts in the Global Address List that have names that match the one passed as a parameter. |
|
protected void |
sendItem(Item item,
FolderId savedCopyDestinationFolderId)
Send item. |
|
void |
setDateTimePrecision(DateTimePrecision d)
Sets the DateTime precision for DateTime values Web Services. |
|
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(DateTimePrecision dateTimePrecision)
Sets the DateTime precision for DateTime values returned from Exchange Web Services. |
|
void |
setPreferredCulture(java.util.Locale preferredCulture)
Sets the preferred culture. |
|
ServiceResponseCollection<ServiceResponse> |
setReadStateForItemsInConversations(java.lang.Iterable<java.util.HashMap<ConversationId,java.util.Date>> idLastSyncTimePairs,
FolderId contextFolderId,
boolean isRead)
Sets the read state for items in conversation. |
|
void |
setUrl(java.net.URI url)
Sets the URL of the Exchange Web Services. |
|
void |
setUserOofSettings(java.lang.String smtpAddress,
OofSettings oofSettings)
* Sets Out of Office (OOF) settings for a specific user. |
|
PullSubscription |
subscribeToPullNotifications(java.lang.Iterable<FolderId> folderIds,
int timeout,
java.lang.String watermark,
EventType... eventTypes)
Subscribes to pull notifications. |
|
PullSubscription |
subscribeToPullNotificationsOnAllFolders(int timeout,
java.lang.String watermark,
EventType... eventTypes)
* Subscribes to pull notifications on all folders in the authenticated user's mailbox. |
|
PushSubscription |
subscribeToPushNotifications(java.lang.Iterable<FolderId> folderIds,
java.net.URI url,
int frequency,
java.lang.String watermark,
EventType... eventTypes)
* Subscribes to push notifications. |
|
PushSubscription |
subscribeToPushNotificationsOnAllFolders(java.net.URI url,
int frequency,
java.lang.String watermark,
EventType... eventTypes)
* Subscribes to push notifications on all folders in the authenticated user's mailbox. |
|
StreamingSubscription |
subscribeToStreamingNotifications(java.lang.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,
java.lang.String syncState)
* Synchronizes the sub-folders of a specific folder. |
|
ChangeCollection<FolderChange> |
syncFolderHierarchy(PropertySet propertySet,
java.lang.String syncState)
Synchronizes the entire folder hierarchy of the mailbox this Service is connected to. |
|
ChangeCollection<ItemChange> |
syncFolderItems(FolderId syncFolderId,
PropertySet propertySet,
java.lang.Iterable<ItemId> ignoredItemIds,
int maxChangesReturned,
SyncFolderItemsScope syncScope,
java.lang.String syncState)
* Synchronizes the items of a specific folder. |
|
protected void |
unsubscribe(java.lang.String subscriptionId)
Unsubscribes from a pull subscription. |
|
java.util.Collection<DelegateUserResponse> |
updateDelegates(Mailbox mailbox,
MeetingRequestsDeliveryScope meetingRequestsDeliveryScope,
DelegateUser... delegateUsers)
* Updates delegates on a specific mailbox. |
|
java.util.Collection<DelegateUserResponse> |
updateDelegates(Mailbox mailbox,
MeetingRequestsDeliveryScope meetingRequestsDeliveryScope,
java.lang.Iterable<DelegateUser> delegateUsers)
* Updates delegates on a specific mailbox. |
|
protected void |
updateFolder(Folder folder)
Updates a folder. |
|
void |
updateInboxRules(java.lang.Iterable<RuleOperation> operations,
boolean removeOutlookRuleBlob)
Updates the authenticated user's inbox rules by applying the specified operations. |
|
void |
updateInboxRules(java.lang.Iterable<RuleOperation> operations,
boolean removeOutlookRuleBlob,
java.lang.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(java.lang.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 versionpublic ExchangeService(ExchangeVersion requestedServerVersion, java.util.TimeZone timeZone)
requestedServerVersion
- The version of EWS that the service targets.timeZone
- The time zone to which the service is scoped.Method Detail |
---|
protected java.util.List<Item> internalCreateResponseObject(ServiceObject responseObject, FolderId parentFolderId, MessageDisposition messageDisposition) throws java.lang.Exception
responseObject
- the response objectparentFolderId
- the parent folder idmessageDisposition
- the message disposition
java.lang.Exception
- the exceptionprotected void createFolder(Folder folder, FolderId parentFolderId) throws java.lang.Exception
folder
- The folder.parentFolderId
- The parent folder Id
java.lang.Exception
- the exceptionprotected void updateFolder(Folder folder) throws java.lang.Exception
folder
- The folder.
java.lang.Exception
- the exceptionprotected Folder copyFolder(FolderId folderId, FolderId destinationFolderId) throws java.lang.Exception
folderId
- The folderId.destinationFolderId
- The destination folder id.
java.lang.Exception
- the exceptionprotected Folder moveFolder(FolderId folderId, FolderId destinationFolderId) throws java.lang.Exception
folderId
- The folderId.destinationFolderId
- The destination folder id.
java.lang.Exception
- the exceptionpublic FindFoldersResults findFolders(FolderId parentFolderId, SearchFilter searchFilter, FolderView view) throws java.lang.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.
java.lang.Exception
- the exceptionpublic FindFoldersResults findFolders(FolderId parentFolderId, FolderView view) throws java.lang.Exception
parentFolderId
- The Id of the folder in which to search for folders.view
- The view controlling the number of folders returned.
java.lang.Exception
- the exceptionpublic FindFoldersResults findFolders(WellKnownFolderName parentFolderName, SearchFilter searchFilter, FolderView view) throws java.lang.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.
java.lang.Exception
- the exceptionpublic FindFoldersResults findFolders(WellKnownFolderName parentFolderName, FolderView view) throws java.lang.Exception
parentFolderName
- the parent folder nameview
- the view
java.lang.Exception
- the exceptionprotected void loadPropertiesForFolder(Folder folder, PropertySet propertySet) throws java.lang.Exception
folder
- The folderpropertySet
- The property set
java.lang.Exception
- the exceptionprotected Folder bindToFolder(FolderId folderId, PropertySet propertySet) throws java.lang.Exception
folderId
- the folder idpropertySet
- the property set
java.lang.Exception
- the exceptionprotected <TFolder extends Folder> TFolder bindToFolder(java.lang.Class<TFolder> cls, FolderId folderId, PropertySet propertySet) throws java.lang.Exception
TFolder
- The type of the folder.cls
- Folder classfolderId
- The folder id.propertySet
- The property set.
java.lang.Exception
- the exceptionprotected void deleteFolder(FolderId folderId, DeleteMode deleteMode) throws java.lang.Exception
folderId
- The folder iddeleteMode
- The delete mode
java.lang.Exception
- the exceptionprotected void emptyFolder(FolderId folderId, DeleteMode deleteMode, boolean deleteSubFolders) throws java.lang.Exception
folderId
- The folder iddeleteMode
- The delete modedeleteSubFolders
- if set to java.lang.Exception
- the exceptionpublic ServiceResponseCollection<ServiceResponse> createItems(java.util.Collection<Item> items, FolderId parentFolderId, MessageDisposition messageDisposition, SendInvitationsMode sendInvitationsMode) throws java.lang.Exception
items
- the itemsparentFolderId
- the parent folder idmessageDisposition
- the message dispositionsendInvitationsMode
- the send invitations mode
java.lang.Exception
- the exceptionprotected void createItem(Item item, FolderId parentFolderId, MessageDisposition messageDisposition, SendInvitationsMode sendInvitationsMode) throws java.lang.Exception
item
- the itemparentFolderId
- the parent folder idmessageDisposition
- the message dispositionsendInvitationsMode
- the send invitations mode
java.lang.Exception
- the exceptionpublic ServiceResponseCollection<UpdateItemResponse> updateItems(java.lang.Iterable<Item> items, FolderId savedItemsDestinationFolderId, ConflictResolutionMode conflictResolution, MessageDisposition messageDisposition, SendInvitationsOrCancellationsMode sendInvitationsOrCancellationsMode) throws java.lang.Exception
items
- the itemssavedItemsDestinationFolderId
- the saved items destination folder idconflictResolution
- the conflict resolutionmessageDisposition
- the message dispositionsendInvitationsOrCancellationsMode
- the send invitations or cancellations mode
java.lang.Exception
- the exceptionprotected Item updateItem(Item item, FolderId savedItemsDestinationFolderId, ConflictResolutionMode conflictResolution, MessageDisposition messageDisposition, SendInvitationsOrCancellationsMode sendInvitationsOrCancellationsMode) throws java.lang.Exception
item
- the itemsavedItemsDestinationFolderId
- the saved items destination folder idconflictResolution
- the conflict resolutionmessageDisposition
- the message dispositionsendInvitationsOrCancellationsMode
- the send invitations or cancellations mode
java.lang.Exception
- the exceptionprotected void sendItem(Item item, FolderId savedCopyDestinationFolderId) throws java.lang.Exception
item
- the itemsavedCopyDestinationFolderId
- the saved copy destination folder id
java.lang.Exception
- the exceptionpublic ServiceResponseCollection<MoveCopyItemResponse> copyItems(java.lang.Iterable<ItemId> itemIds, FolderId destinationFolderId) throws java.lang.Exception
itemIds
- the item idsdestinationFolderId
- the destination folder id
java.lang.Exception
- the exceptionpublic ServiceResponseCollection<MoveCopyItemResponse> copyItems(java.lang.Iterable<ItemId> itemIds, FolderId destinationFolderId, boolean returnNewItemIds) throws java.lang.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.
java.lang.Exception
protected Item copyItem(ItemId itemId, FolderId destinationFolderId) throws java.lang.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
java.lang.Exception
- the exceptionpublic ServiceResponseCollection<MoveCopyItemResponse> moveItems(java.lang.Iterable<ItemId> itemIds, FolderId destinationFolderId) throws java.lang.Exception
itemIds
- the item idsdestinationFolderId
- the destination folder id
java.lang.Exception
- the exceptionpublic ServiceResponseCollection<MoveCopyItemResponse> moveItems(java.lang.Iterable<ItemId> itemIds, FolderId destinationFolderId, boolean returnNewItemIds) throws java.lang.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.
java.lang.Exception
protected Item moveItem(ItemId itemId, FolderId destinationFolderId) throws java.lang.Exception
itemId
- the item iddestinationFolderId
- the destination folder id
java.lang.Exception
- the exceptionprotected <TItem extends Item> ServiceResponseCollection<FindItemResponse<TItem>> findItems(java.lang.Iterable<FolderId> parentFolderIds, SearchFilter searchFilter, java.lang.String queryString, ViewBase view, Grouping groupBy, microsoft.exchange.webservices.data.ServiceErrorHandling errorHandlingMode) throws java.lang.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.
java.lang.Exception
- the exceptionpublic FindItemsResults<Item> findItems(FolderId parentFolderId, java.lang.String queryString, ItemView view) throws java.lang.Exception
parentFolderId
- the parent folder idqueryString
- the query stringview
- the view
java.lang.Exception
- the exceptionpublic FindItemsResults<Item> findItems(FolderId parentFolderId, SearchFilter searchFilter, ItemView view) throws java.lang.Exception
parentFolderId
- the parent folder idsearchFilter
- the search filterview
- the view
java.lang.Exception
- the exceptionpublic FindItemsResults<Item> findItems(FolderId parentFolderId, ItemView view) throws java.lang.Exception
parentFolderId
- the parent folder idview
- the view
java.lang.Exception
- the exceptionpublic FindItemsResults<Item> findItems(WellKnownFolderName parentFolderName, java.lang.String queryString, ItemView view) throws java.lang.Exception
parentFolderName
- the parent folder namequeryString
- the query stringview
- the view
java.lang.Exception
- the exceptionpublic FindItemsResults<Item> findItems(WellKnownFolderName parentFolderName, SearchFilter searchFilter, ItemView view) throws java.lang.Exception
parentFolderName
- the parent folder namesearchFilter
- the search filterview
- the view
java.lang.Exception
- the exceptionpublic FindItemsResults<Item> findItems(WellKnownFolderName parentFolderName, ItemView view) throws java.lang.Exception
parentFolderName
- the parent folder nameview
- the view
java.lang.Exception
- the exceptionpublic GroupedFindItemsResults<Item> findItems(FolderId parentFolderId, java.lang.String queryString, ItemView view, Grouping groupBy) throws java.lang.Exception
parentFolderId
- the parent folder idqueryString
- the query stringview
- the viewgroupBy
- the group by
java.lang.Exception
- the exceptionpublic GroupedFindItemsResults<Item> findItems(FolderId parentFolderId, SearchFilter searchFilter, ItemView view, Grouping groupBy) throws java.lang.Exception
parentFolderId
- the parent folder idsearchFilter
- the search filterview
- the viewgroupBy
- the group by
java.lang.Exception
- the exceptionpublic GroupedFindItemsResults<Item> findItems(FolderId parentFolderId, ItemView view, Grouping groupBy) throws java.lang.Exception
parentFolderId
- the parent folder idview
- the viewgroupBy
- the group by
java.lang.Exception
- the exceptionprotected <TItem extends Item> ServiceResponseCollection<FindItemResponse<TItem>> findItems(java.lang.Class<TItem> cls, FolderId parentFolderId, SearchFilter searchFilter, ViewBase view, Grouping groupBy) throws java.lang.Exception
TItem
- the generic typecls
- the clsparentFolderId
- the parent folder idsearchFilter
- the search filterview
- the viewgroupBy
- the group by
java.lang.Exception
- the exceptionpublic GroupedFindItemsResults<Item> findItems(WellKnownFolderName parentFolderName, java.lang.String queryString, ItemView view, Grouping groupBy) throws java.lang.Exception
parentFolderName
- the parent folder namequeryString
- the query stringview
- the viewgroupBy
- the group by
java.lang.Exception
- the exceptionpublic GroupedFindItemsResults<Item> findItems(WellKnownFolderName parentFolderName, SearchFilter searchFilter, ItemView view, Grouping groupBy) throws java.lang.Exception
parentFolderName
- the parent folder namesearchFilter
- the search filterview
- the viewgroupBy
- the group by
java.lang.Exception
- the exceptionpublic FindItemsResults<Appointment> findAppointments(FolderId parentFolderId, CalendarView calendarView) throws java.lang.Exception
parentFolderId
- the parent folder idcalendarView
- the calendar view
java.lang.Exception
- the exceptionpublic FindItemsResults<Appointment> findAppointments(WellKnownFolderName parentFolderName, CalendarView calendarView) throws java.lang.Exception
parentFolderName
- the parent folder namecalendarView
- the calendar view
java.lang.Exception
- the exceptionpublic ServiceResponseCollection<ServiceResponse> loadPropertiesForItems(java.lang.Iterable<Item> items, PropertySet propertySet) throws java.lang.Exception
items
- the itemspropertySet
- the property set
java.lang.Exception
- the exceptionpublic ServiceResponseCollection<GetItemResponse> bindToItems(java.lang.Iterable<ItemId> itemIds, PropertySet propertySet) throws java.lang.Exception
itemIds
- the item idspropertySet
- the property set
java.lang.Exception
- the exceptionprotected Item bindToItem(ItemId itemId, PropertySet propertySet) throws java.lang.Exception
itemId
- the item idpropertySet
- the property set
java.lang.Exception
- the exceptionprotected <TItem extends Item> TItem bindToItem(java.lang.Class<TItem> c, ItemId itemId, PropertySet propertySet) throws java.lang.Exception
TItem
- The type of the item.c
- the citemId
- the item idpropertySet
- the property set
java.lang.Exception
- the exceptionpublic ServiceResponseCollection<ServiceResponse> deleteItems(java.lang.Iterable<ItemId> itemIds, DeleteMode deleteMode, SendCancellationsMode sendCancellationsMode, AffectedTaskOccurrence affectedTaskOccurrences) throws java.lang.Exception
itemIds
- the item idsdeleteMode
- the delete modesendCancellationsMode
- the send cancellations modeaffectedTaskOccurrences
- the affected task occurrences
java.lang.Exception
- the exceptionprotected void deleteItem(ItemId itemId, DeleteMode deleteMode, SendCancellationsMode sendCancellationsMode, AffectedTaskOccurrence affectedTaskOccurrences) throws java.lang.Exception
itemId
- the item iddeleteMode
- the delete modesendCancellationsMode
- the send cancellations modeaffectedTaskOccurrences
- the affected task occurrences
java.lang.Exception
- the exceptionprotected ServiceResponseCollection<microsoft.exchange.webservices.data.GetAttachmentResponse> getAttachments(Attachment[] attachments, BodyType bodyType, java.lang.Iterable<PropertyDefinitionBase> additionalProperties) throws java.lang.Exception
attachments
- the attachmentsbodyType
- the body typeadditionalProperties
- the additional properties
java.lang.Exception
protected void getAttachment(Attachment attachment, BodyType bodyType, java.lang.Iterable<PropertyDefinitionBase> additionalProperties) throws java.lang.Exception
attachment
- the attachmentbodyType
- the body typeadditionalProperties
- the additional properties
java.lang.Exception
- the exceptionprotected ServiceResponseCollection<CreateAttachmentResponse> createAttachments(java.lang.String parentItemId, java.lang.Iterable<Attachment> attachments) throws ServiceResponseException, java.lang.Exception
parentItemId
- the parent item idattachments
- the attachments
ServiceResponseException
- the service response exception
java.lang.Exception
- the exceptionprotected ServiceResponseCollection<DeleteAttachmentResponse> deleteAttachments(java.lang.Iterable<Attachment> attachments) throws ServiceResponseException, java.lang.Exception
attachments
- the attachments
ServiceResponseException
- the service response exception
java.lang.Exception
- the exceptionpublic NameResolutionCollection resolveName(java.lang.String nameToResolve) throws java.lang.Exception
nameToResolve
- the name to resolve
java.lang.Exception
- the exceptionpublic NameResolutionCollection resolveName(java.lang.String nameToResolve, java.lang.Iterable<FolderId> parentFolderIds, ResolveNameSearchLocation searchScope, boolean returnContactDetails) throws java.lang.Exception
nameToResolve
- the name to resolveparentFolderIds
- the parent folder idssearchScope
- the search scopereturnContactDetails
- the return contact details
java.lang.Exception
- the exceptionpublic NameResolutionCollection resolveName(java.lang.String nameToResolve, java.lang.Iterable<FolderId> parentFolderIds, ResolveNameSearchLocation searchScope, boolean returnContactDetails, PropertySet contactDataPropertySet) throws java.lang.Exception
nameToResolve
- The name to resolve.parentFolderIds
- The Ids of the contact folders in which to look for matching
contacts.searchScope
- The scope of the search.returnContactDetails
- Indicates whether full contact information should be returned
for each of the found contacts.contactDataPropertySet
- The property set for the contact details
java.lang.Exception
public NameResolutionCollection resolveName(java.lang.String nameToResolve, ResolveNameSearchLocation searchScope, boolean returnContactDetails, PropertySet contactDataPropertySet) throws java.lang.Exception
nameToResolve
- The name to resolve.searchScope
- The scope of the search.returnContactDetails
- Indicates whether full contact information should be returned
for each of the found contacts.contactDataPropertySet
- The property set for the contact details
java.lang.Exception
public NameResolutionCollection resolveName(java.lang.String nameToResolve, ResolveNameSearchLocation searchScope, boolean returnContactDetails) throws java.lang.Exception
nameToResolve
- the name to resolvesearchScope
- the search scopereturnContactDetails
- the return contact details
java.lang.Exception
- the exceptionpublic ExpandGroupResults expandGroup(EmailAddress emailAddress) throws java.lang.Exception
emailAddress
- the email address
java.lang.Exception
- the exceptionpublic ExpandGroupResults expandGroup(ItemId groupId) throws java.lang.Exception
groupId
- the group id
java.lang.Exception
- the exceptionpublic ExpandGroupResults expandGroup(java.lang.String smtpAddress) throws java.lang.Exception
smtpAddress
- the smtp address
java.lang.Exception
- the exceptionpublic ExpandGroupResults expandGroup(java.lang.String address, java.lang.String routingType) throws java.lang.Exception
address
- the addressroutingType
- the routing type
java.lang.Exception
- the exceptionpublic java.util.Date getPasswordExpirationDate(java.lang.String mailboxSmtpAddress) throws java.lang.Exception
mailboxSmtpAddress
- The e-mail address of the user.
java.lang.Exception
public PullSubscription subscribeToPullNotifications(java.lang.Iterable<FolderId> folderIds, int timeout, java.lang.String watermark, EventType... eventTypes) throws java.lang.Exception
folderIds
- The Ids of the folder to subscribe totimeout
- The timeout, in minutes, after which the subscription expires.
Timeout must be between 1 and 1440.watermark
- An optional watermark representing a previously opened
subscription.EventType
- The event types to subscribe to.
java.lang.Exception
public AsyncRequestResult beginSubscribeToPullNotifications(microsoft.exchange.webservices.data.AsyncCallback callback, java.lang.Object state, java.lang.Iterable<FolderId> folderIds, int timeout, java.lang.String watermark, EventType... eventTypes) throws java.lang.Exception
callback
- The AsyncCallback delegate.state
- An object that contains state information for this request.folderIds
- The Ids of the folder to subscribe to.timeout
- The timeout, in minutes, after which the subscription expires.
Timeout must be between 1 and 1440.watermark
- An optional watermark representing a previously opened
subscription.eventTypes
- The event types to subscribe to.
java.lang.Exception
public PullSubscription subscribeToPullNotificationsOnAllFolders(int timeout, java.lang.String watermark, EventType... eventTypes) throws java.lang.Exception
timeout
- the timeoutwatermark
- the watermarkeventTypes
- the event types
java.lang.Exception
- the exceptionpublic IAsyncResult beginSubscribeToPullNotificationsOnAllFolders(microsoft.exchange.webservices.data.AsyncCallback callback, java.lang.Object state, int timeout, java.lang.String watermark, EventType... eventTypes) throws java.lang.Exception
callback
- The AsyncCallback delegate.state
- An object that contains state information for this request.timeout
- The timeout, in minutes, after which the subscription expires.
Timeout must be between 1 and 1440.watermark
- An optional watermark representing a previously opened
subscription.eventTypes
- The event types to subscribe to.
java.lang.Exception
public PullSubscription endSubscribeToPullNotifications(IAsyncResult asyncResult) throws java.lang.Exception
asyncResult
- An IAsyncResult that references the asynchronous request.
java.lang.Exception
protected void unsubscribe(java.lang.String subscriptionId) throws java.lang.Exception
subscriptionId
- the subscription id
java.lang.Exception
- the exceptionprotected IAsyncResult beginUnsubscribe(microsoft.exchange.webservices.data.AsyncCallback callback, java.lang.Object state, java.lang.String subscriptionId) throws java.lang.Exception
callback
- The AsyncCallback delegate.state
- An object that contains state information for this request.subscriptionId
- The Id of the pull subscription to unsubscribe from.
java.lang.Exception
protected void endUnsubscribe(IAsyncResult asyncResult) throws java.lang.Exception
asyncResult
- An IAsyncResult that references the asynchronous request.
java.lang.Exception
protected GetEventsResults getEvents(java.lang.String subscriptionId, java.lang.String waterMark) throws java.lang.Exception
subscriptionId
- the subscription idwaterMark
- the water mark
java.lang.Exception
- the exceptionprotected IAsyncResult beginGetEvents(microsoft.exchange.webservices.data.AsyncCallback callback, java.lang.Object state, java.lang.String subscriptionId, java.lang.String watermark) throws java.lang.Exception
callback
- The AsyncCallback delegate.state
- An object that contains state information for this request.subscriptionId
- The id of the pull subscription for which to get the eventswatermark
- The watermark representing the point in time where to start
receiving events
java.lang.Exception
protected GetEventsResults endGetEvents(IAsyncResult asyncResult) throws java.lang.Exception
asyncResult
- An IAsyncResult that references the asynchronous request.
java.lang.Exception
public PushSubscription subscribeToPushNotifications(java.lang.Iterable<FolderId> folderIds, java.net.URI url, int frequency, java.lang.String watermark, EventType... eventTypes) throws java.lang.Exception
folderIds
- the folder idsurl
- the urlfrequency
- the frequencywatermark
- the watermarkeventTypes
- the event types
java.lang.Exception
- the exceptionpublic IAsyncResult beginSubscribeToPushNotifications(microsoft.exchange.webservices.data.AsyncCallback callback, java.lang.Object state, java.lang.Iterable<FolderId> folderIds, java.net.URI url, int frequency, java.lang.String watermark, EventType... eventTypes) throws java.lang.Exception
callback
- The asynccallback delegatestate
- An object that contains state information for this requestfolderIds
- The ids of the folder to subscribeurl
- the url of web service endpoint the exchange server shouldfrequency
- the frequency,in minutes at which the exchange server should
contact the web Service endpoint. Frequency must be between 1
and 1440.watermark
- An optional watermark representing a previously opened
subscriptioneventTypes
- The event types to subscribe to.
java.lang.Exception
java.lang.Exception
- the exceptionpublic PushSubscription subscribeToPushNotificationsOnAllFolders(java.net.URI url, int frequency, java.lang.String watermark, EventType... eventTypes) throws java.lang.Exception
url
- the urlfrequency
- the frequencywatermark
- the watermarkeventTypes
- the event types
java.lang.Exception
- the exceptionpublic IAsyncResult beginSubscribeToPushNotificationsOnAllFolders(microsoft.exchange.webservices.data.AsyncCallback callback, java.lang.Object state, java.net.URI url, int frequency, java.lang.String watermark, EventType... eventTypes) throws java.lang.Exception
callback
- The asynccallback delegatestate
- An object that contains state inforamtion for this requesturl
- the urlfrequency
- the frequency,in minutes at which the exchange server should
contact the web Service endpoint. Frequency must be between 1
and 1440.watermark
- An optional watermark representing a previously opened
subscriptioneventTypes
- The event types to subscribe to.
java.lang.Exception
public PushSubscription endSubscribeToPushNotifications(IAsyncResult asyncResult) throws java.lang.Exception
asyncResult
- An IAsyncResult that references the asynchronous request.
java.lang.Exception
public StreamingSubscription subscribeToStreamingNotifications(java.lang.Iterable<FolderId> folderIds, EventType... eventTypes) throws java.lang.Exception
folderIds
- The Ids of the folder to subscribe to.EventType
- The event types to subscribe to.
java.lang.Exception
public StreamingSubscription subscribeToStreamingNotificationsOnAllFolders(EventType... eventTypes) throws java.lang.Exception
eventTypes
- The event types to subscribe to.
java.lang.Exception
public IAsyncResult beginSubscribeToStreamingNotifications(microsoft.exchange.webservices.data.AsyncCallback callback, java.lang.Object state, java.lang.Iterable<FolderId> folderIds, EventType... eventTypes) throws java.lang.Exception
callback
- The AsyncCallback delegatestate
- An object that contains state information for this request.folderIds
- The Ids of the folder to subscribe to.EventType
- The event types to subscribe to.
java.lang.Exception
public IAsyncResult beginSubscribeToStreamingNotificationsOnAllFolders(microsoft.exchange.webservices.data.AsyncCallback callback, java.lang.Object state, EventType... eventTypes) throws java.lang.Exception
callback
- The AsyncCallback delegatestate
- An object that contains state information for this request.eventTypes
-
java.lang.Exception
public StreamingSubscription endSubscribeToStreamingNotifications(IAsyncResult asyncResult) throws java.lang.IndexOutOfBoundsException, java.lang.Exception
asyncResult
- An IAsyncResult that references the asynchronous request.
java.lang.Exception
java.lang.IndexOutOfBoundsException
public ChangeCollection<ItemChange> syncFolderItems(FolderId syncFolderId, PropertySet propertySet, java.lang.Iterable<ItemId> ignoredItemIds, int maxChangesReturned, SyncFolderItemsScope syncScope, java.lang.String syncState) throws java.lang.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.
java.lang.Exception
- the exceptionpublic IAsyncResult beginSyncFolderItems(microsoft.exchange.webservices.data.AsyncCallback callback, java.lang.Object state, FolderId syncFolderId, PropertySet propertySet, java.lang.Iterable<ItemId> ignoredItemIds, int maxChangesReturned, SyncFolderItemsScope syncScope, java.lang.String syncState) throws java.lang.Exception
callback
- The AsyncCallback delegatestate
- An object that contains state information for this requestsyncFolderId
- The Id of the folder containing the items to synchronize withpropertySet
- 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
ChangeCollectionsyncState
- The optional sync state representing the point in time when to
start the synchronization
java.lang.Exception
public ChangeCollection<ItemChange> endSyncFolderItems(IAsyncResult asyncResult) throws java.lang.Exception
asyncResult
- An IAsyncResult that references the asynchronous request.
java.lang.Exception
public ChangeCollection<FolderChange> syncFolderHierarchy(FolderId syncFolderId, PropertySet propertySet, java.lang.String syncState) throws java.lang.Exception
syncFolderId
- the sync folder idpropertySet
- the property setsyncState
- the sync state
java.lang.Exception
- the exceptionpublic IAsyncResult beginSyncFolderHierarchy(microsoft.exchange.webservices.data.AsyncCallback callback, java.lang.Object state, FolderId syncFolderId, PropertySet propertySet, java.lang.String syncState) throws java.lang.Exception
callback
- The AsyncCallback delegatestate
- An object that contains state information for this request.syncFolderId
- The Id of the folder containing the items to synchronize with.
A null value indicates the root folder of the mailbox.propertySet
- The set of properties to retrieve for synchronized items.syncState
- The optional sync state representing the point in time when to
start the synchronization.
java.lang.Exception
public ChangeCollection<FolderChange> syncFolderHierarchy(PropertySet propertySet, java.lang.String syncState) throws java.lang.Exception
propertySet
- The set of properties to retrieve for synchronized items.syncState
- The optional sync state representing the point in time when to
start the synchronization.
java.lang.Exception
public ChangeCollection<FolderChange> endSyncFolderHierarchy(IAsyncResult asyncResult) throws java.lang.Exception
asyncResult
- An IAsyncResult that references the asynchronous request.
java.lang.Exception
public OofSettings getUserOofSettings(java.lang.String smtpAddress) throws java.lang.Exception
smtpAddress
- the smtp address
java.lang.Exception
- the exceptionpublic void setUserOofSettings(java.lang.String smtpAddress, OofSettings oofSettings) throws java.lang.Exception
smtpAddress
- the smtp addressoofSettings
- the oof settings
java.lang.Exception
- the exceptionpublic GetUserAvailabilityResults getUserAvailability(java.lang.Iterable<AttendeeInfo> attendees, TimeWindow timeWindow, AvailabilityData requestedData, AvailabilityOptions options) throws java.lang.Exception
attendees
- the attendeestimeWindow
- the time windowrequestedData
- the requested dataoptions
- the options
java.lang.Exception
- the exceptionpublic GetUserAvailabilityResults getUserAvailability(java.lang.Iterable<AttendeeInfo> attendees, TimeWindow timeWindow, AvailabilityData requestedData) throws java.lang.Exception
attendees
- the attendeestimeWindow
- the time windowrequestedData
- the requested data
java.lang.Exception
- the exceptionpublic EmailAddressCollection getRoomLists() throws java.lang.Exception
java.lang.Exception
- the exceptionpublic java.util.Collection<EmailAddress> getRooms(EmailAddress emailAddress) throws java.lang.Exception
emailAddress
- the email address
java.lang.Exception
- the exceptionpublic java.util.Collection<Conversation> findConversation(ConversationIndexedItemView view, FolderId folderId) throws java.lang.Exception
view
- The view controlling the number of conversations returned.folderId
- The Id of the folder in which to search for conversations.
java.lang.Exception
public ServiceResponseCollection<ServiceResponse> enableAlwaysCategorizeItemsInConversations(java.lang.Iterable<ConversationId> conversationId, java.lang.Iterable<java.lang.String> categories, boolean processSynchronously) throws java.lang.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.
java.lang.Exception
public ServiceResponseCollection<ServiceResponse> disableAlwaysCategorizeItemsInConversations(java.lang.Iterable<ConversationId> conversationId, boolean processSynchronously) throws java.lang.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.
java.lang.Exception
public ServiceResponseCollection<ServiceResponse> enableAlwaysDeleteItemsInConversations(java.lang.Iterable<ConversationId> conversationId, boolean processSynchronously) throws java.lang.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.
java.lang.Exception
public ServiceResponseCollection<ServiceResponse> disableAlwaysDeleteItemsInConversations(java.lang.Iterable<ConversationId> conversationId, boolean processSynchronously) throws java.lang.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.
java.lang.Exception
public ServiceResponseCollection<ServiceResponse> enableAlwaysMoveItemsInConversations(java.lang.Iterable<ConversationId> conversationId, FolderId destinationFolderId, boolean processSynchronously) throws java.lang.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.
java.lang.Exception
public ServiceResponseCollection<ServiceResponse> disableAlwaysMoveItemsInConversations(java.lang.Iterable<ConversationId> conversationIds, boolean processSynchronously) throws java.lang.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.
java.lang.Exception
public ServiceResponseCollection<ServiceResponse> moveItemsInConversations(java.lang.Iterable<java.util.HashMap<ConversationId,java.util.Date>> idLastSyncTimePairs, FolderId contextFolderId, FolderId destinationFolderId) throws java.lang.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.
java.lang.Exception
public ServiceResponseCollection<ServiceResponse> copyItemsInConversations(java.lang.Iterable<java.util.HashMap<ConversationId,java.util.Date>> idLastSyncTimePairs, FolderId contextFolderId, FolderId destinationFolderId) throws java.lang.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.
java.lang.Exception
public ServiceResponseCollection<ServiceResponse> deleteItemsInConversations(java.lang.Iterable<java.util.HashMap<ConversationId,java.util.Date>> idLastSyncTimePairs, FolderId contextFolderId, DeleteMode deleteMode) throws java.lang.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
java.lang.Exception
java.lang.Exception
public ServiceResponseCollection<ServiceResponse> setReadStateForItemsInConversations(java.lang.Iterable<java.util.HashMap<ConversationId,java.util.Date>> idLastSyncTimePairs, FolderId contextFolderId, boolean isRead) throws java.lang.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 java.lang.Exception
java.lang.Exception
public ServiceResponseCollection<ConvertIdResponse> convertIds(java.lang.Iterable<AlternateIdBase> ids, IdFormat destinationFormat) throws java.lang.Exception
ids
- the idsdestinationFormat
- the destination format
java.lang.Exception
- the exceptionpublic AlternateIdBase convertId(AlternateIdBase id, IdFormat destinationFormat) throws java.lang.Exception
id
- the iddestinationFormat
- the destination format
java.lang.Exception
- the exceptionpublic java.util.Collection<DelegateUserResponse> addDelegates(Mailbox mailbox, MeetingRequestsDeliveryScope meetingRequestsDeliveryScope, DelegateUser... delegateUsers) throws java.lang.Exception
mailbox
- the mailboxmeetingRequestsDeliveryScope
- the meeting requests delivery scopedelegateUsers
- the delegate users
java.lang.Exception
- the exceptionpublic java.util.Collection<DelegateUserResponse> addDelegates(Mailbox mailbox, MeetingRequestsDeliveryScope meetingRequestsDeliveryScope, java.lang.Iterable<DelegateUser> delegateUsers) throws java.lang.Exception
mailbox
- the mailboxmeetingRequestsDeliveryScope
- the meeting requests delivery scopedelegateUsers
- the delegate users
java.lang.Exception
- the exceptionpublic java.util.Collection<DelegateUserResponse> updateDelegates(Mailbox mailbox, MeetingRequestsDeliveryScope meetingRequestsDeliveryScope, DelegateUser... delegateUsers) throws java.lang.Exception
mailbox
- the mailboxmeetingRequestsDeliveryScope
- the meeting requests delivery scopedelegateUsers
- the delegate users
java.lang.Exception
- the exceptionpublic java.util.Collection<DelegateUserResponse> updateDelegates(Mailbox mailbox, MeetingRequestsDeliveryScope meetingRequestsDeliveryScope, java.lang.Iterable<DelegateUser> delegateUsers) throws java.lang.Exception
mailbox
- the mailboxmeetingRequestsDeliveryScope
- the meeting requests delivery scopedelegateUsers
- the delegate users
java.lang.Exception
- the exceptionpublic java.util.Collection<DelegateUserResponse> removeDelegates(Mailbox mailbox, UserId... userIds) throws java.lang.Exception
mailbox
- the mailboxuserIds
- the user ids
java.lang.Exception
- the exceptionpublic java.util.Collection<DelegateUserResponse> removeDelegates(Mailbox mailbox, java.lang.Iterable<UserId> userIds) throws java.lang.Exception
mailbox
- the mailboxuserIds
- the user ids
java.lang.Exception
- the exceptionpublic DelegateInformation getDelegates(Mailbox mailbox, boolean includePermissions, UserId... userIds) throws java.lang.Exception
mailbox
- the mailboxincludePermissions
- the include permissionsuserIds
- the user ids
java.lang.Exception
- the exceptionpublic DelegateInformation getDelegates(Mailbox mailbox, boolean includePermissions, java.lang.Iterable<UserId> userIds) throws java.lang.Exception
mailbox
- the mailboxincludePermissions
- the include permissionsuserIds
- the user ids
java.lang.Exception
- the exceptionprotected void createUserConfiguration(UserConfiguration userConfiguration) throws java.lang.Exception
userConfiguration
- the user configuration
java.lang.Exception
- the exceptionprotected void deleteUserConfiguration(java.lang.String name, FolderId parentFolderId) throws java.lang.Exception
name
- the nameparentFolderId
- the parent folder id
java.lang.Exception
- the exceptionprotected UserConfiguration getUserConfiguration(java.lang.String name, FolderId parentFolderId, UserConfigurationProperties properties) throws java.lang.Exception
name
- the nameparentFolderId
- the parent folder idproperties
- the properties
java.lang.Exception
- the exceptionprotected void loadPropertiesForUserConfiguration(UserConfiguration userConfiguration, UserConfigurationProperties properties) throws java.lang.Exception
userConfiguration
- the user configurationproperties
- the properties
java.lang.Exception
- the exceptionprotected void updateUserConfiguration(UserConfiguration userConfiguration) throws java.lang.Exception
userConfiguration
- the user configuration
java.lang.Exception
- the exceptionpublic RuleCollection getInboxRules() throws java.lang.Exception
java.lang.Exception
public RuleCollection getInboxRules(java.lang.String mailboxSmtpAddress) throws java.lang.Exception
mailboxSmtpAddress
- The SMTP address of the user whose inbox rules should be
retrieved
java.lang.Exception
public void updateInboxRules(java.lang.Iterable<RuleOperation> operations, boolean removeOutlookRuleBlob) throws java.lang.Exception
operations
- The operations that should be applied to the user's inbox
rules.removeOutlookRuleBlob
- Indicate whether or not to remove Outlook Rule Blob.
java.lang.Exception
public void updateInboxRules(java.lang.Iterable<RuleOperation> operations, boolean removeOutlookRuleBlob, java.lang.String mailboxSmtpAddress) throws java.lang.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
java.lang.Exception
public void autodiscoverUrl(java.lang.String emailAddress) throws java.lang.Exception
emailAddress
- the email address
java.lang.Exception
- the exceptionpublic void autodiscoverUrl(java.lang.String emailAddress, IAutodiscoverRedirectionUrl validateRedirectionUrlCallback) throws java.lang.Exception
emailAddress
- the email address to use.validateRedirectionUrlCallback
- The callback used to validate redirection URL
java.lang.Exception
- the exceptionprotected org.w3c.dom.Document executeDiagnosticMethod(java.lang.String verb, org.w3c.dom.Node parameter) throws java.lang.Exception
verb
- The verb.parameter
- The parameter.
java.lang.Exception
protected void validate() throws ServiceLocalException
validate
in class ExchangeServiceBase
ServiceLocalException
- the service local exceptionprotected microsoft.exchange.webservices.data.HttpWebRequest prepareHttpWebRequest() throws ServiceLocalException, java.net.URISyntaxException
ServiceLocalException
- the service local exception
java.net.URISyntaxException
- the uRI syntax exceptionprotected void processHttpErrorResponse(microsoft.exchange.webservices.data.HttpWebRequest httpWebResponse, java.lang.Exception webException) throws java.lang.Exception
processHttpErrorResponse
in class ExchangeServiceBase
httpWebResponse
- The HTTP web response.webException
- The web exception
java.lang.Exception
public java.net.URI getUrl()
public void setUrl(java.net.URI url)
url
- URL of the Exchange Web Services.public ImpersonatedUserId getImpersonatedUserId()
public void setImpersonatedUserId(ImpersonatedUserId impersonatedUserId)
impersonatedUserId
- the new impersonated user idpublic java.util.Locale getPreferredCulture()
public void setPreferredCulture(java.util.Locale preferredCulture)
preferredCulture
- the new preferred culturepublic DateTimePrecision getDateTimePrecision()
public void setDateTimePrecision(DateTimePrecision d)
public void setPreferredCulture(DateTimePrecision dateTimePrecision)
DateTimePrecisione
- the new DateTimePrecisionpublic 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 java.util.Collection<TimeZoneDefinition> getServerTimeZones(java.lang.Iterable<java.lang.String> timeZoneIds)
timeZoneIds
- the time zone ids
public java.util.Collection<TimeZoneDefinition> getServerTimeZones()
public boolean autodiscoverRedirectionUrlValidationCallback(java.lang.String redirectionUrl) throws AutodiscoverLocalException
IAutodiscoverRedirectionUrl
autodiscoverRedirectionUrlValidationCallback
in interface IAutodiscoverRedirectionUrl
redirectionUrl
- the redirection url
AutodiscoverLocalException
- the autodiscover local exception
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |