├── .gitignore ├── .travis.yml ├── CONTRIBUTING.md ├── deploy_snapshot.sh ├── images ├── FolderHierarchy.png └── ItemHierarchy.png ├── license.txt ├── pom.xml ├── readme.md └── src ├── main └── java │ └── microsoft │ └── exchange │ └── webservices │ └── data │ ├── EWSConstants.java │ ├── ISelfValidate.java │ ├── attribute │ ├── Attachable.java │ ├── EditorBrowsable.java │ ├── EwsEnum.java │ ├── Flags.java │ ├── RequiredServerVersion.java │ ├── Schema.java │ └── ServiceObjectDefinition.java │ ├── autodiscover │ ├── AlternateMailbox.java │ ├── AlternateMailboxCollection.java │ ├── AutodiscoverDnsClient.java │ ├── AutodiscoverResponseCollection.java │ ├── AutodiscoverService.java │ ├── IAutodiscoverRedirectionUrl.java │ ├── IFunc.java │ ├── IFuncDelegate.java │ ├── IFunctionDelegate.java │ ├── ProtocolConnection.java │ ├── ProtocolConnectionCollection.java │ ├── WebClientUrl.java │ ├── WebClientUrlCollection.java │ ├── configuration │ │ ├── ConfigurationSettingsBase.java │ │ └── outlook │ │ │ ├── OutlookAccount.java │ │ │ ├── OutlookConfigurationSettings.java │ │ │ ├── OutlookProtocol.java │ │ │ └── OutlookUser.java │ ├── enumeration │ │ ├── AutodiscoverEndpoints.java │ │ ├── AutodiscoverErrorCode.java │ │ ├── AutodiscoverResponseType.java │ │ ├── DomainSettingName.java │ │ ├── OutlookProtocolType.java │ │ └── UserSettingName.java │ ├── exception │ │ ├── AutodiscoverLocalException.java │ │ ├── AutodiscoverRemoteException.java │ │ ├── AutodiscoverResponseException.java │ │ ├── MaximumRedirectionHopsExceededException.java │ │ └── error │ │ │ ├── AutodiscoverError.java │ │ │ ├── DomainSettingError.java │ │ │ └── UserSettingError.java │ ├── request │ │ ├── ApplyConversationActionRequest.java │ │ ├── AutodiscoverRequest.java │ │ ├── GetDomainSettingsRequest.java │ │ └── GetUserSettingsRequest.java │ └── response │ │ ├── AutodiscoverResponse.java │ │ ├── GetDomainSettingsResponse.java │ │ ├── GetDomainSettingsResponseCollection.java │ │ ├── GetUserSettingsResponse.java │ │ └── GetUserSettingsResponseCollection.java │ ├── core │ ├── CookieProcessingTargetAuthenticationStrategy.java │ ├── EwsSSLProtocolSocketFactory.java │ ├── EwsServiceMultiResponseXmlReader.java │ ├── EwsServiceXmlReader.java │ ├── EwsServiceXmlWriter.java │ ├── EwsUtilities.java │ ├── EwsX509TrustManager.java │ ├── EwsXmlReader.java │ ├── ExchangeServerInfo.java │ ├── ExchangeService.java │ ├── ExchangeServiceBase.java │ ├── IAction.java │ ├── ICustomXmlSerialization.java │ ├── ICustomXmlUpdateSerializer.java │ ├── IDisposable.java │ ├── IFileAttachmentContentHandler.java │ ├── IGetPropertyDefinitionCallback.java │ ├── ILazyMember.java │ ├── IPredicate.java │ ├── LazyMember.java │ ├── PropertyBag.java │ ├── PropertySet.java │ ├── SimplePropertyBag.java │ ├── WebAsyncCallStateAnchor.java │ ├── WebProxy.java │ ├── XmlAttributeNames.java │ ├── XmlElementNames.java │ ├── enumeration │ │ ├── attribute │ │ │ └── EditorBrowsableState.java │ │ ├── availability │ │ │ ├── AvailabilityData.java │ │ │ ├── FreeBusyViewType.java │ │ │ ├── MeetingAttendeeType.java │ │ │ └── SuggestionQuality.java │ │ ├── dns │ │ │ └── DnsRecordType.java │ │ ├── misc │ │ │ ├── ConnectingIdType.java │ │ │ ├── ConversationActionType.java │ │ │ ├── DateTimePrecision.java │ │ │ ├── ExchangeVersion.java │ │ │ ├── FlaggedForAction.java │ │ │ ├── HangingRequestDisconnectReason.java │ │ │ ├── IdFormat.java │ │ │ ├── TraceFlags.java │ │ │ ├── UserConfigurationProperties.java │ │ │ ├── XmlNamespace.java │ │ │ └── error │ │ │ │ ├── ServiceError.java │ │ │ │ └── WebExceptionStatus.java │ │ ├── notification │ │ │ └── EventType.java │ │ ├── permission │ │ │ ├── PermissionScope.java │ │ │ └── folder │ │ │ │ ├── DelegateFolderPermissionLevel.java │ │ │ │ ├── FolderPermissionLevel.java │ │ │ │ └── FolderPermissionReadAccess.java │ │ ├── property │ │ │ ├── BasePropertySet.java │ │ │ ├── BodyType.java │ │ │ ├── ConflictType.java │ │ │ ├── DefaultExtendedPropertySet.java │ │ │ ├── EmailAddressKey.java │ │ │ ├── ImAddressKey.java │ │ │ ├── Importance.java │ │ │ ├── LegacyFreeBusyStatus.java │ │ │ ├── MailboxType.java │ │ │ ├── MapiPropertyType.java │ │ │ ├── MeetingResponseType.java │ │ │ ├── MemberStatus.java │ │ │ ├── OofExternalAudience.java │ │ │ ├── OofState.java │ │ │ ├── PhoneNumberKey.java │ │ │ ├── PhysicalAddressIndex.java │ │ │ ├── PhysicalAddressKey.java │ │ │ ├── PropertyDefinitionFlags.java │ │ │ ├── RuleProperty.java │ │ │ ├── Sensitivity.java │ │ │ ├── StandardUser.java │ │ │ ├── TaskDelegationState.java │ │ │ ├── UserConfigurationDictionaryObjectType.java │ │ │ ├── WellKnownFolderName.java │ │ │ ├── error │ │ │ │ └── RuleErrorCode.java │ │ │ └── time │ │ │ │ ├── DayOfTheWeek.java │ │ │ │ ├── DayOfTheWeekIndex.java │ │ │ │ └── Month.java │ │ ├── search │ │ │ ├── AggregateType.java │ │ │ ├── ComparisonMode.java │ │ │ ├── ContainmentMode.java │ │ │ ├── FolderTraversal.java │ │ │ ├── ItemTraversal.java │ │ │ ├── LogicalOperator.java │ │ │ ├── OffsetBasePoint.java │ │ │ ├── ResolveNameSearchLocation.java │ │ │ ├── SearchFolderTraversal.java │ │ │ └── SortDirection.java │ │ ├── service │ │ │ ├── ConflictResolutionMode.java │ │ │ ├── ContactSource.java │ │ │ ├── ConversationFlagStatus.java │ │ │ ├── DeleteMode.java │ │ │ ├── EffectiveRights.java │ │ │ ├── FileAsMapping.java │ │ │ ├── MeetingRequestType.java │ │ │ ├── MeetingRequestsDeliveryScope.java │ │ │ ├── MessageDisposition.java │ │ │ ├── PhoneCallState.java │ │ │ ├── ResponseActions.java │ │ │ ├── ResponseMessageType.java │ │ │ ├── SendCancellationsMode.java │ │ │ ├── SendInvitationsMode.java │ │ │ ├── SendInvitationsOrCancellationsMode.java │ │ │ ├── ServiceObjectType.java │ │ │ ├── ServiceResult.java │ │ │ ├── SyncFolderItemsScope.java │ │ │ ├── TaskMode.java │ │ │ ├── TaskStatus.java │ │ │ ├── calendar │ │ │ │ ├── AffectedTaskOccurrence.java │ │ │ │ └── AppointmentType.java │ │ │ └── error │ │ │ │ ├── ConnectionFailureCause.java │ │ │ │ └── ServiceErrorHandling.java │ │ └── sync │ │ │ └── ChangeType.java │ ├── exception │ │ ├── dns │ │ │ └── DnsException.java │ │ ├── http │ │ │ ├── EWSHttpException.java │ │ │ └── HttpErrorException.java │ │ ├── misc │ │ │ ├── ArgumentException.java │ │ │ ├── ArgumentNullException.java │ │ │ ├── ArgumentOutOfRangeException.java │ │ │ ├── FormatException.java │ │ │ └── InvalidOperationException.java │ │ ├── service │ │ │ ├── local │ │ │ │ ├── InvalidOrUnsupportedTimeZoneDefinitionException.java │ │ │ │ ├── PropertyException.java │ │ │ │ ├── ServiceLocalException.java │ │ │ │ ├── ServiceObjectPropertyException.java │ │ │ │ ├── ServiceValidationException.java │ │ │ │ ├── ServiceVersionException.java │ │ │ │ ├── ServiceXmlDeserializationException.java │ │ │ │ ├── ServiceXmlSerializationException.java │ │ │ │ └── TimeZoneConversionException.java │ │ │ └── remote │ │ │ │ ├── AccountIsLockedException.java │ │ │ │ ├── CreateAttachmentException.java │ │ │ │ ├── DeleteAttachmentException.java │ │ │ │ ├── ServiceRemoteException.java │ │ │ │ ├── ServiceRequestException.java │ │ │ │ ├── ServiceResponseException.java │ │ │ │ └── UpdateInboxRulesException.java │ │ └── xml │ │ │ ├── XmlDtdException.java │ │ │ └── XmlException.java │ ├── request │ │ ├── AddDelegateRequest.java │ │ ├── ByteArrayOSRequestEntity.java │ │ ├── ConvertIdRequest.java │ │ ├── CopyFolderRequest.java │ │ ├── CopyItemRequest.java │ │ ├── CreateAttachmentRequest.java │ │ ├── CreateFolderRequest.java │ │ ├── CreateItemRequest.java │ │ ├── CreateItemRequestBase.java │ │ ├── CreateRequest.java │ │ ├── CreateResponseObjectRequest.java │ │ ├── CreateUserConfigurationRequest.java │ │ ├── DelegateManagementRequestBase.java │ │ ├── DeleteAttachmentRequest.java │ │ ├── DeleteFolderRequest.java │ │ ├── DeleteItemRequest.java │ │ ├── DeleteRequest.java │ │ ├── DeleteUserConfigurationRequest.java │ │ ├── DisconnectPhoneCallRequest.java │ │ ├── EmptyFolderRequest.java │ │ ├── ExecuteDiagnosticMethodRequest.java │ │ ├── ExpandGroupRequest.java │ │ ├── FindConversationRequest.java │ │ ├── FindFolderRequest.java │ │ ├── FindItemRequest.java │ │ ├── FindRequest.java │ │ ├── GetAttachmentRequest.java │ │ ├── GetDelegateRequest.java │ │ ├── GetEventsRequest.java │ │ ├── GetFolderRequest.java │ │ ├── GetFolderRequestBase.java │ │ ├── GetFolderRequestForLoad.java │ │ ├── GetInboxRulesRequest.java │ │ ├── GetItemRequest.java │ │ ├── GetItemRequestBase.java │ │ ├── GetItemRequestForLoad.java │ │ ├── GetPasswordExpirationDateRequest.java │ │ ├── GetPhoneCallRequest.java │ │ ├── GetRequest.java │ │ ├── GetRoomListsRequest.java │ │ ├── GetRoomsRequest.java │ │ ├── GetServerTimeZonesRequest.java │ │ ├── GetStreamingEventsRequest.java │ │ ├── GetUserAvailabilityRequest.java │ │ ├── GetUserConfigurationRequest.java │ │ ├── GetUserOofSettingsRequest.java │ │ ├── HangingRequestDisconnectEventArgs.java │ │ ├── HangingServiceRequestBase.java │ │ ├── HttpClientWebRequest.java │ │ ├── HttpWebRequest.java │ │ ├── MoveCopyFolderRequest.java │ │ ├── MoveCopyItemRequest.java │ │ ├── MoveCopyRequest.java │ │ ├── MoveFolderRequest.java │ │ ├── MoveItemRequest.java │ │ ├── MultiResponseServiceRequest.java │ │ ├── PlayOnPhoneRequest.java │ │ ├── RemoveDelegateRequest.java │ │ ├── ResolveNamesRequest.java │ │ ├── SendItemRequest.java │ │ ├── ServiceRequestBase.java │ │ ├── SetUserOofSettingsRequest.java │ │ ├── SimpleServiceRequestBase.java │ │ ├── SubscribeRequest.java │ │ ├── SubscribeToPullNotificationsRequest.java │ │ ├── SubscribeToPushNotificationsRequest.java │ │ ├── SubscribeToStreamingNotificationsRequest.java │ │ ├── SyncFolderHierarchyRequest.java │ │ ├── SyncFolderItemsRequest.java │ │ ├── UnsubscribeRequest.java │ │ ├── UpdateDelegateRequest.java │ │ ├── UpdateFolderRequest.java │ │ ├── UpdateInboxRulesRequest.java │ │ ├── UpdateItemRequest.java │ │ ├── UpdateUserConfigurationRequest.java │ │ └── WaitHandle.java │ ├── response │ │ ├── AttendeeAvailability.java │ │ ├── ConvertIdResponse.java │ │ ├── CreateAttachmentResponse.java │ │ ├── CreateFolderResponse.java │ │ ├── CreateItemResponse.java │ │ ├── CreateItemResponseBase.java │ │ ├── CreateResponseObjectResponse.java │ │ ├── DelegateManagementResponse.java │ │ ├── DelegateUserResponse.java │ │ ├── DeleteAttachmentResponse.java │ │ ├── ExecuteDiagnosticMethodResponse.java │ │ ├── ExpandGroupResponse.java │ │ ├── FindConversationResponse.java │ │ ├── FindFolderResponse.java │ │ ├── FindItemResponse.java │ │ ├── GetAttachmentResponse.java │ │ ├── GetDelegateResponse.java │ │ ├── GetEventsResponse.java │ │ ├── GetFolderResponse.java │ │ ├── GetInboxRulesResponse.java │ │ ├── GetItemResponse.java │ │ ├── GetPasswordExpirationDateResponse.java │ │ ├── GetPhoneCallResponse.java │ │ ├── GetRoomListsResponse.java │ │ ├── GetRoomsResponse.java │ │ ├── GetServerTimeZonesResponse.java │ │ ├── GetStreamingEventsResponse.java │ │ ├── GetUserConfigurationResponse.java │ │ ├── GetUserOofSettingsResponse.java │ │ ├── IGetObjectInstanceDelegate.java │ │ ├── MoveCopyFolderResponse.java │ │ ├── MoveCopyItemResponse.java │ │ ├── PlayOnPhoneResponse.java │ │ ├── ResolveNamesResponse.java │ │ ├── ServiceResponse.java │ │ ├── ServiceResponseCollection.java │ │ ├── SubscribeResponse.java │ │ ├── SuggestionsResponse.java │ │ ├── SyncFolderHierarchyResponse.java │ │ ├── SyncFolderItemsResponse.java │ │ ├── SyncResponse.java │ │ ├── UpdateFolderResponse.java │ │ ├── UpdateInboxRulesResponse.java │ │ └── UpdateItemResponse.java │ └── service │ │ ├── ICreateServiceObjectWithAttachmentParam.java │ │ ├── ICreateServiceObjectWithServiceParam.java │ │ ├── ServiceObject.java │ │ ├── ServiceObjectInfo.java │ │ ├── folder │ │ ├── CalendarFolder.java │ │ ├── ContactsFolder.java │ │ ├── Folder.java │ │ ├── SearchFolder.java │ │ └── TasksFolder.java │ │ ├── item │ │ ├── Appointment.java │ │ ├── Contact.java │ │ ├── ContactGroup.java │ │ ├── Conversation.java │ │ ├── EmailMessage.java │ │ ├── ICalendarActionProvider.java │ │ ├── Item.java │ │ ├── MeetingCancellation.java │ │ ├── MeetingMessage.java │ │ ├── MeetingRequest.java │ │ ├── MeetingResponse.java │ │ ├── PostItem.java │ │ └── Task.java │ │ ├── response │ │ ├── AcceptMeetingInvitationMessage.java │ │ ├── CalendarResponseMessage.java │ │ ├── CalendarResponseMessageBase.java │ │ ├── CancelMeetingMessage.java │ │ ├── DeclineMeetingInvitationMessage.java │ │ ├── PostReply.java │ │ ├── RemoveFromCalendar.java │ │ ├── ResponseMessage.java │ │ ├── ResponseObject.java │ │ └── SuppressReadReceipt.java │ │ └── schema │ │ ├── AppointmentSchema.java │ │ ├── CalendarResponseObjectSchema.java │ │ ├── CancelMeetingMessageSchema.java │ │ ├── ContactGroupSchema.java │ │ ├── ContactSchema.java │ │ ├── ConversationSchema.java │ │ ├── EmailMessageSchema.java │ │ ├── FolderSchema.java │ │ ├── ItemSchema.java │ │ ├── MeetingMessageSchema.java │ │ ├── MeetingRequestSchema.java │ │ ├── PostItemSchema.java │ │ ├── PostReplySchema.java │ │ ├── ResponseMessageSchema.java │ │ ├── ResponseObjectSchema.java │ │ ├── SearchFolderSchema.java │ │ ├── ServiceObjectSchema.java │ │ └── TaskSchema.java │ ├── credential │ ├── CredentialConstants.java │ ├── ExchangeCredentials.java │ ├── TokenCredentials.java │ ├── WSSecurityBasedCredentials.java │ ├── WebCredentials.java │ ├── WebProxyCredentials.java │ └── WindowsLiveCredentials.java │ ├── dns │ ├── DnsClient.java │ ├── DnsRecord.java │ └── DnsSrvRecord.java │ ├── messaging │ ├── PhoneCall.java │ ├── PhoneCallId.java │ └── UnifiedMessaging.java │ ├── misc │ ├── AbstractAsyncCallback.java │ ├── AbstractFolderIdWrapper.java │ ├── AbstractItemIdWrapper.java │ ├── AsyncCallback.java │ ├── AsyncCallbackImplementation.java │ ├── AsyncExecutor.java │ ├── AsyncRequestResult.java │ ├── CalendarActionResults.java │ ├── CallableMethod.java │ ├── Callback.java │ ├── ConversationAction.java │ ├── DelegateInformation.java │ ├── EwsTraceListener.java │ ├── ExpandGroupResults.java │ ├── FolderIdWrapper.java │ ├── FolderIdWrapperList.java │ ├── FolderWrapper.java │ ├── HangingTraceStream.java │ ├── IAsyncResult.java │ ├── IFunction.java │ ├── IFunctions.java │ ├── ITraceListener.java │ ├── ImpersonatedUserId.java │ ├── ItemIdWrapper.java │ ├── ItemIdWrapperList.java │ ├── ItemWrapper.java │ ├── MapiTypeConverter.java │ ├── MapiTypeConverterMap.java │ ├── MapiTypeConverterMapEntry.java │ ├── MobilePhone.java │ ├── NameResolution.java │ ├── NameResolutionCollection.java │ ├── OutParam.java │ ├── Param.java │ ├── RefParam.java │ ├── SoapFaultDetails.java │ ├── Time.java │ ├── TimeSpan.java │ ├── UserConfiguration.java │ ├── availability │ │ ├── AttendeeInfo.java │ │ ├── AvailabilityOptions.java │ │ ├── GetUserAvailabilityResults.java │ │ ├── LegacyAvailabilityTimeZone.java │ │ ├── LegacyAvailabilityTimeZoneTime.java │ │ ├── OofReply.java │ │ └── TimeWindow.java │ └── id │ │ ├── AlternateId.java │ │ ├── AlternateIdBase.java │ │ ├── AlternatePublicFolderId.java │ │ └── AlternatePublicFolderItemId.java │ ├── notification │ ├── FolderEvent.java │ ├── GetEventsResults.java │ ├── GetStreamingEventsResults.java │ ├── ItemEvent.java │ ├── NotificationEvent.java │ ├── NotificationEventArgs.java │ ├── PullSubscription.java │ ├── PushSubscription.java │ ├── StreamingSubscription.java │ ├── StreamingSubscriptionConnection.java │ ├── SubscriptionBase.java │ └── SubscriptionErrorEventArgs.java │ ├── property │ ├── complex │ │ ├── AppointmentOccurrenceId.java │ │ ├── Attachment.java │ │ ├── AttachmentCollection.java │ │ ├── Attendee.java │ │ ├── AttendeeCollection.java │ │ ├── ByteArrayArray.java │ │ ├── CompleteName.java │ │ ├── ComplexFunctionDelegate.java │ │ ├── ComplexProperty.java │ │ ├── ComplexPropertyCollection.java │ │ ├── ConversationId.java │ │ ├── CreateRuleOperation.java │ │ ├── DelegatePermissions.java │ │ ├── DelegateUser.java │ │ ├── DeleteRuleOperation.java │ │ ├── DeletedOccurrenceInfo.java │ │ ├── DeletedOccurrenceInfoCollection.java │ │ ├── DictionaryEntryProperty.java │ │ ├── DictionaryProperty.java │ │ ├── EmailAddress.java │ │ ├── EmailAddressCollection.java │ │ ├── EmailAddressDictionary.java │ │ ├── EmailAddressEntry.java │ │ ├── ExtendedProperty.java │ │ ├── ExtendedPropertyCollection.java │ │ ├── FileAttachment.java │ │ ├── FolderId.java │ │ ├── FolderIdCollection.java │ │ ├── FolderPermission.java │ │ ├── FolderPermissionCollection.java │ │ ├── GenericItemAttachment.java │ │ ├── GroupMember.java │ │ ├── GroupMemberCollection.java │ │ ├── IComplexPropertyChanged.java │ │ ├── IComplexPropertyChangedDelegate.java │ │ ├── ICreateComplexPropertyDelegate.java │ │ ├── IOwnedProperty.java │ │ ├── IPropertyBagChangedDelegate.java │ │ ├── ISearchStringProvider.java │ │ ├── IServiceObjectChangedDelegate.java │ │ ├── ImAddressDictionary.java │ │ ├── ImAddressEntry.java │ │ ├── InternetMessageHeader.java │ │ ├── InternetMessageHeaderCollection.java │ │ ├── ItemAttachment.java │ │ ├── ItemCollection.java │ │ ├── ItemId.java │ │ ├── ItemIdCollection.java │ │ ├── Mailbox.java │ │ ├── ManagedFolderInformation.java │ │ ├── MeetingTimeZone.java │ │ ├── MessageBody.java │ │ ├── MimeContent.java │ │ ├── OccurrenceInfo.java │ │ ├── OccurrenceInfoCollection.java │ │ ├── PhoneNumberDictionary.java │ │ ├── PhoneNumberEntry.java │ │ ├── PhysicalAddressDictionary.java │ │ ├── PhysicalAddressEntry.java │ │ ├── RecurringAppointmentMasterId.java │ │ ├── Rule.java │ │ ├── RuleActions.java │ │ ├── RuleCollection.java │ │ ├── RuleError.java │ │ ├── RuleErrorCollection.java │ │ ├── RuleOperation.java │ │ ├── RuleOperationError.java │ │ ├── RuleOperationErrorCollection.java │ │ ├── RulePredicateDateRange.java │ │ ├── RulePredicateSizeRange.java │ │ ├── RulePredicates.java │ │ ├── SearchFolderParameters.java │ │ ├── ServiceId.java │ │ ├── SetRuleOperation.java │ │ ├── StringList.java │ │ ├── TimeChange.java │ │ ├── TimeChangeRecurrence.java │ │ ├── UniqueBody.java │ │ ├── UserConfigurationDictionary.java │ │ ├── UserId.java │ │ ├── availability │ │ │ ├── CalendarEvent.java │ │ │ ├── CalendarEventDetails.java │ │ │ ├── Conflict.java │ │ │ ├── OofSettings.java │ │ │ ├── Suggestion.java │ │ │ ├── TimeSuggestion.java │ │ │ ├── WorkingHours.java │ │ │ └── WorkingPeriod.java │ │ ├── recurrence │ │ │ ├── DayOfTheWeekCollection.java │ │ │ ├── pattern │ │ │ │ └── Recurrence.java │ │ │ └── range │ │ │ │ ├── EndDateRecurrenceRange.java │ │ │ │ ├── NoEndRecurrenceRange.java │ │ │ │ ├── NumberedRecurrenceRange.java │ │ │ │ └── RecurrenceRange.java │ │ └── time │ │ │ ├── AbsoluteDateTransition.java │ │ │ ├── AbsoluteDayOfMonthTransition.java │ │ │ ├── AbsoluteMonthTransition.java │ │ │ ├── OlsonTimeZoneDefinition.java │ │ │ ├── RelativeDayOfMonthTransition.java │ │ │ ├── TimeZoneDefinition.java │ │ │ ├── TimeZonePeriod.java │ │ │ ├── TimeZoneTransition.java │ │ │ └── TimeZoneTransitionGroup.java │ └── definition │ │ ├── AttachmentsPropertyDefinition.java │ │ ├── BoolPropertyDefinition.java │ │ ├── ByteArrayPropertyDefinition.java │ │ ├── ComplexPropertyDefinition.java │ │ ├── ComplexPropertyDefinitionBase.java │ │ ├── ContainedPropertyDefinition.java │ │ ├── DateTimePropertyDefinition.java │ │ ├── DoublePropertyDefinition.java │ │ ├── EffectiveRightsPropertyDefinition.java │ │ ├── ExtendedPropertyDefinition.java │ │ ├── GenericPropertyDefinition.java │ │ ├── GroupMemberPropertyDefinition.java │ │ ├── IDateTimePropertyDefinition.java │ │ ├── IndexedPropertyDefinition.java │ │ ├── IntPropertyDefinition.java │ │ ├── MeetingTimeZonePropertyDefinition.java │ │ ├── PermissionSetPropertyDefinition.java │ │ ├── PropertyDefinition.java │ │ ├── PropertyDefinitionBase.java │ │ ├── RecurrencePropertyDefinition.java │ │ ├── ResponseObjectsPropertyDefinition.java │ │ ├── ServiceObjectPropertyDefinition.java │ │ ├── StartTimeZonePropertyDefinition.java │ │ ├── StringPropertyDefinition.java │ │ ├── TaskDelegationStatePropertyDefinition.java │ │ ├── TimeSpanPropertyDefinition.java │ │ ├── TimeZonePropertyDefinition.java │ │ └── TypedPropertyDefinition.java │ ├── search │ ├── CalendarView.java │ ├── ConversationIndexedItemView.java │ ├── FindFoldersResults.java │ ├── FindItemsResults.java │ ├── FolderView.java │ ├── GroupedFindItemsResults.java │ ├── Grouping.java │ ├── ItemGroup.java │ ├── ItemView.java │ ├── OrderByCollection.java │ ├── PagedView.java │ ├── ViewBase.java │ └── filter │ │ └── SearchFilter.java │ ├── security │ ├── SafeXmlDocument.java │ ├── SafeXmlFactory.java │ ├── SafeXmlSchema.java │ ├── XmlNameTable.java │ └── XmlNodeType.java │ ├── sync │ ├── Change.java │ ├── ChangeCollection.java │ ├── FolderChange.java │ └── ItemChange.java │ └── util │ ├── DateTimeUtils.java │ └── TimeZoneUtils.java ├── site └── site.xml └── test ├── java └── microsoft │ └── exchange │ └── webservices │ ├── base │ ├── BaseTest.java │ └── util │ │ └── TestUtils.java │ └── data │ ├── autodiscover │ ├── AlternateMailboxCollectionTest.java │ ├── AutodiscoverDnsClientTest.java │ └── request │ │ └── GetUserSettingsRequestTest.java │ ├── core │ ├── EwsUtilitiesTest.java │ ├── EwsXmlReaderTest.java │ ├── LazyMemberTest.java │ ├── PropertyBagTest.java │ ├── XSDurationTest.java │ └── service │ │ └── items │ │ ├── AppointmentTest.java │ │ └── TaskTest.java │ ├── credential │ └── WSSecurityBasedCredentialsTest.java │ ├── dns │ └── DnsClientTest.java │ ├── exception │ ├── InvalidOrUnsupportedTimeZoneDefinitionExceptionTest.java │ └── MaximumRedirectionHopsExceededExceptionTest.java │ ├── misc │ ├── IFunctionsTest.java │ ├── TimeSpanTest.java │ └── availability │ │ └── TimeWindowTest.java │ ├── property │ ├── complex │ │ ├── ComplexPropertyCollectionTest.java │ │ ├── EmailAddressTest.java │ │ ├── ExtendedPropertyCollectionTest.java │ │ ├── OlsonTimeZoneTest.java │ │ ├── RecurrenceReaderTest.java │ │ ├── TimeChangeTest.java │ │ ├── TimeZoneTransitionCompareTest.java │ │ ├── UniqueBodyTest.java │ │ └── UserConfigurationDictionaryTest.java │ └── definition │ │ └── ByteArrayPropertyDefinitionTest.java │ ├── sync │ └── ChangeCollectionTest.java │ └── util │ ├── DateTimeUtilsTest.java │ └── TimeZoneUtilsTest.java └── resources └── logback-test.xml /.gitignore: -------------------------------------------------------------------------------- 1 | *.class 2 | 3 | # Package Files 4 | *.jar 5 | *.war 6 | *.ear 7 | /target 8 | 9 | # Eclipse project files 10 | .settings 11 | .classpath 12 | .project 13 | 14 | # IntelliJ 15 | # User-specific stuff: 16 | .idea 17 | .idea/workspace.xml 18 | .idea/tasks.xml 19 | .idea/findbugs-idea.xml 20 | .idea/codeStyleSettings.xml 21 | .idea/dictionaries 22 | .idea/shelf 23 | *.iws 24 | *.ipr 25 | *.iml 26 | # Sensitive or high-churn files: 27 | .idea/dataSources.ids 28 | .idea/dataSources.xml 29 | .idea/sqlDataSources.xml 30 | .idea/dynamic.xml 31 | .idea/uiDesigner.xml -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | # The MIT License 2 | # Copyright (c) 2012 Microsoft Corporation 3 | # 4 | # Permission is hereby granted, free of charge, to any person obtaining a copy 5 | # of this software and associated documentation files (the "Software"), to deal 6 | # in the Software without restriction, including without limitation the rights 7 | # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | # copies of the Software, and to permit persons to whom the Software is 9 | # furnished to do so, subject to the following conditions: 10 | # 11 | # The above copyright notice and this permission notice shall be included in 12 | # all copies or substantial portions of the Software. 13 | # 14 | # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | # THE SOFTWARE. 21 | 22 | language: java 23 | 24 | jdk: 25 | - oraclejdk8 26 | - oraclejdk7 27 | - openjdk6 28 | 29 | # enable container-based infrastructure 30 | sudo: false 31 | 32 | env: 33 | global: 34 | - secure: "V37/WY3//w4fQUxmtKXw9dsU4iH5Z6HvTpBkZj+5DaX5h2Lj98FzALvkGSt7KvqVKQBbgETjs3HTMQkz6hwbLgX2okLKCQbmhZu3vQLqkWe6KPqnO1NOKSaU4vhCoGpScNWMiVxrzCHLHZf5tQu7d+1WVMk5GNlgGqeKVSnz5LY=" 35 | - secure: "O9Mjx/mU5MLQsngcVbTf7AVMFo2Bh3ZWXwTyiLVXAfU7/VZX39vx30Mf2laNpewYqbiouix7fOkK76YS8459QRoLVBAQSwzjuGsZAwQvz7b7+r3kCS7rwGm7eCobJDbwItoxAxA00rI3gpyX/BnaX8aFutQw/0ZoPSPOH+LzR+4=" 36 | 37 | # cache local repository for speed of build 38 | cache: 39 | directories: 40 | - $HOME/.m2/repository 41 | before_cache: 42 | - rm -rf $HOME/.m2/repository/com/microsoft/ews-java-api 43 | 44 | notifications: 45 | webhooks: 46 | urls: 47 | - https://webhooks.gitter.im/e/04643d955d03eb39e24e 48 | on_success: change 49 | 50 | before_install: 51 | - chmod +x ./deploy_snapshot.sh 52 | 53 | after_success: 54 | - bash <(curl -s https://codecov.io/bash) 55 | - ./deploy_snapshot.sh 56 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | ## Contributing.md 2 | 3 | ### To participate, please visit the project wiki for more information. 4 | *Guidelines can be found* [**HERE**](https://github.com/OfficeDev/ews-java-api/wiki/Contributing) -------------------------------------------------------------------------------- /images/FolderHierarchy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/ews-java-api/33235f37d97871f17c496526aad0b8c458f904c3/images/FolderHierarchy.png -------------------------------------------------------------------------------- /images/ItemHierarchy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/OfficeDev/ews-java-api/33235f37d97871f17c496526aad0b8c458f904c3/images/ItemHierarchy.png -------------------------------------------------------------------------------- /license.txt: -------------------------------------------------------------------------------- 1 | The MIT License 2 | Copyright (c) 2012 Microsoft Corporation 3 | 4 | Permission is hereby granted, free of charge, to any person obtaining a copy 5 | of this software and associated documentation files (the "Software"), to deal 6 | in the Software without restriction, including without limitation the rights 7 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 8 | copies of the Software, and to permit persons to whom the Software is 9 | furnished to do so, subject to the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be included in 12 | all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 15 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 16 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 17 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 18 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 19 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 20 | THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/ISelfValidate.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data; 25 | 26 | import microsoft.exchange.webservices.data.core.exception.service.local.ServiceValidationException; 27 | 28 | /** 29 | * The Interface ISelfValidate. 30 | */ 31 | public interface ISelfValidate { 32 | 33 | /** 34 | * Validate. 35 | * 36 | * @throws ServiceValidationException the service validation exception 37 | * @throws Exception the exception 38 | */ 39 | void validate() throws ServiceValidationException, Exception; 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/attribute/Attachable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.attribute; 25 | 26 | import java.lang.annotation.ElementType; 27 | import java.lang.annotation.Retention; 28 | import java.lang.annotation.RetentionPolicy; 29 | import java.lang.annotation.Target; 30 | 31 | /** 32 | * The Interface Attachable. 33 | */ 34 | @Target(ElementType.TYPE) 35 | @Retention(RetentionPolicy.RUNTIME) public @interface Attachable { 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/attribute/EditorBrowsable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.attribute; 25 | 26 | import microsoft.exchange.webservices.data.core.enumeration.attribute.EditorBrowsableState; 27 | 28 | import java.lang.annotation.ElementType; 29 | import java.lang.annotation.Retention; 30 | import java.lang.annotation.RetentionPolicy; 31 | import java.lang.annotation.Target; 32 | 33 | /** 34 | * The Interface EditorBrowsable. 35 | */ 36 | @Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD}) 37 | @Retention(RetentionPolicy.RUNTIME) public @interface EditorBrowsable { 38 | 39 | /** 40 | * State. 41 | * 42 | * @return the editor browsable state 43 | */ 44 | EditorBrowsableState state(); 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/attribute/EwsEnum.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.attribute; 25 | 26 | import java.lang.annotation.ElementType; 27 | import java.lang.annotation.Retention; 28 | import java.lang.annotation.RetentionPolicy; 29 | import java.lang.annotation.Target; 30 | 31 | /** 32 | * The Interface EwsEnum. 33 | */ 34 | @Target(ElementType.FIELD) 35 | @Retention(RetentionPolicy.RUNTIME) public @interface EwsEnum { 36 | 37 | /** 38 | * Schema name. 39 | * 40 | * @return the string 41 | */ 42 | String schemaName(); 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/attribute/Flags.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.attribute; 25 | 26 | import java.lang.annotation.ElementType; 27 | import java.lang.annotation.Retention; 28 | import java.lang.annotation.RetentionPolicy; 29 | import java.lang.annotation.Target; 30 | 31 | /** 32 | * The Interface Flags. 33 | */ 34 | @Target(ElementType.TYPE) 35 | @Retention(RetentionPolicy.RUNTIME) public @interface Flags { 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/attribute/RequiredServerVersion.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.attribute; 25 | 26 | import microsoft.exchange.webservices.data.core.enumeration.misc.ExchangeVersion; 27 | 28 | import java.lang.annotation.ElementType; 29 | import java.lang.annotation.Retention; 30 | import java.lang.annotation.RetentionPolicy; 31 | import java.lang.annotation.Target; 32 | 33 | /** 34 | * The Interface RequiredServerVersion. 35 | */ 36 | @Target({ElementType.TYPE, ElementType.FIELD, ElementType.METHOD}) 37 | @Retention(RetentionPolicy.RUNTIME) public @interface RequiredServerVersion { 38 | 39 | /** 40 | * Version. 41 | * 42 | * @return the exchange version 43 | */ 44 | ExchangeVersion version(); 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/attribute/Schema.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.attribute; 25 | 26 | import java.lang.annotation.ElementType; 27 | import java.lang.annotation.Retention; 28 | import java.lang.annotation.RetentionPolicy; 29 | import java.lang.annotation.Target; 30 | 31 | /** 32 | * The Interface Schema. 33 | */ 34 | @Target(ElementType.TYPE) 35 | @Retention(RetentionPolicy.RUNTIME) public @interface Schema { 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/attribute/ServiceObjectDefinition.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.attribute; 25 | 26 | import java.lang.annotation.ElementType; 27 | import java.lang.annotation.Retention; 28 | import java.lang.annotation.RetentionPolicy; 29 | import java.lang.annotation.Target; 30 | 31 | /** 32 | * The Interface ServiceObjectDefinition. 33 | */ 34 | @Target(ElementType.TYPE) 35 | @Retention(RetentionPolicy.RUNTIME) public @interface ServiceObjectDefinition { 36 | 37 | /** 38 | * The name of the XML element. 39 | * 40 | * @return the string 41 | */ 42 | String xmlElementName(); 43 | 44 | /** 45 | * True if this ServiceObject can be returned by the server as an object, 46 | * false otherwise. 47 | * 48 | * @return true, if successful 49 | */ 50 | boolean returnedByServer() default true; 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/autodiscover/IAutodiscoverRedirectionUrl.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.autodiscover; 25 | 26 | import microsoft.exchange.webservices.data.autodiscover.exception.AutodiscoverLocalException; 27 | 28 | /** 29 | * Defines a delegate that is used by the AutodiscoverService to ask whether a 30 | * redirectionUrl can be used. 31 | */ 32 | public interface IAutodiscoverRedirectionUrl { 33 | 34 | /** 35 | * Autodiscover redirection url validation callback. 36 | * 37 | * @param redirectionUrl the redirection url 38 | * @return true, if successful 39 | * @throws AutodiscoverLocalException the autodiscover local exception 40 | */ 41 | boolean autodiscoverRedirectionUrlValidationCallback( 42 | String redirectionUrl) throws AutodiscoverLocalException; 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/autodiscover/IFunc.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.autodiscover; 25 | 26 | /** 27 | * The Interface Func. 28 | * 29 | * @param the generic type 30 | * @param the generic type 31 | */ 32 | public interface IFunc { 33 | 34 | /** 35 | * Func. 36 | * 37 | * @param arg the arg 38 | * @return the t result 39 | */ 40 | TResult func(T arg); 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/autodiscover/IFuncDelegate.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.autodiscover; 25 | 26 | import microsoft.exchange.webservices.data.core.exception.misc.FormatException; 27 | 28 | /** 29 | * The Interface FuncDelegate. 30 | * 31 | * @param the generic type 32 | */ 33 | public interface IFuncDelegate { 34 | 35 | /** 36 | * Func. 37 | * 38 | * @return the t result 39 | * @throws FormatException the format exception 40 | */ 41 | TResult func() throws FormatException; 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/autodiscover/IFunctionDelegate.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.autodiscover; 25 | 26 | import microsoft.exchange.webservices.data.core.enumeration.misc.ExchangeVersion; 27 | 28 | import java.net.URI; 29 | import java.util.List; 30 | 31 | /** 32 | * The Interface FuncDelegateInterface. 33 | * 34 | * @param the generic type 35 | * @param the generic type 36 | * @param the generic type 37 | */ 38 | public interface IFunctionDelegate, T2 extends List, TResult> { 39 | 40 | /** 41 | * Func. 42 | * 43 | * @param arg1 the arg1 44 | * @param arg2 the arg2 45 | * @param arg3 the arg3 46 | * @param arg4 the arg4 47 | * @return the t result 48 | * @throws Exception the exception 49 | */ 50 | TResult func(T1 arg1, T2 arg2, ExchangeVersion arg3, URI arg4) throws Exception; 51 | 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/autodiscover/enumeration/AutodiscoverResponseType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.autodiscover.enumeration; 25 | 26 | /** 27 | * Defines the types of response the Autodiscover service can return. 28 | */ 29 | public enum AutodiscoverResponseType { 30 | 31 | // The request returned an error. 32 | /** 33 | * The Error. 34 | */ 35 | Error, 36 | // A URL redirection is necessary. 37 | /** 38 | * The Redirect url. 39 | */ 40 | RedirectUrl, 41 | // An address redirection is necessary. 42 | /** 43 | * The Redirect address. 44 | */ 45 | RedirectAddress, 46 | // The request succeeded. 47 | /** 48 | * The Success. 49 | */ 50 | Success 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/autodiscover/enumeration/DomainSettingName.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.autodiscover.enumeration; 25 | 26 | /** 27 | * Domain setting names. 28 | */ 29 | public enum DomainSettingName { 30 | 31 | // The external URL of the Exchange Web Services. 32 | /** 33 | * The External ews url. 34 | */ 35 | ExternalEwsUrl, 36 | 37 | /// The version of the Exchange server hosting 38 | /// the URL of the Exchange Web Services. 39 | /** 40 | * The External ews version. 41 | */ 42 | ExternalEwsVersion, 43 | 44 | 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/autodiscover/enumeration/OutlookProtocolType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.autodiscover.enumeration; 25 | 26 | /** 27 | * Defines supported Outlook protocls. 28 | */ 29 | public enum OutlookProtocolType { 30 | 31 | // The Remote Procedure Call (RPC) protocol. 32 | /** 33 | * The Rpc. 34 | */ 35 | Rpc, 36 | 37 | // The Remote Procedure Call (RPC) over HTTP protocol. 38 | /** 39 | * The Rpc over http. 40 | */ 41 | RpcOverHttp, 42 | 43 | // The Web protocol. 44 | /** 45 | * The Web. 46 | */ 47 | Web, 48 | 49 | // The protocol is unknown. 50 | /** 51 | * The Unknown. 52 | */ 53 | Unknown 54 | 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/IAction.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core; 25 | 26 | /** 27 | * The Interface IAction. 28 | * 29 | * @param The type of the parameter of the 30 | * method that this delegate encapsulates. 31 | */ 32 | public interface IAction { 33 | 34 | /** 35 | * Encapsulates a method that takes a single parameter and does not return a 36 | * value. 37 | * 38 | * @param obj The parameter of the method that this delegate encapsulates. 39 | */ 40 | void action(T obj); 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/ICustomXmlSerialization.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core; 25 | 26 | import javax.xml.stream.XMLStreamWriter; 27 | 28 | /** 29 | * The Interface CustomXmlSerializationInterface. 30 | */ 31 | public interface ICustomXmlSerialization { 32 | 33 | /** 34 | * Custom xml serialization. 35 | * 36 | * @param writer the writer 37 | */ 38 | void CustomXmlSerialization(XMLStreamWriter writer); 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/IDisposable.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core; 25 | 26 | /** 27 | * The Interface IDisposable. 28 | */ 29 | public interface IDisposable { 30 | 31 | /** 32 | * Dispose. 33 | */ 34 | void dispose(); 35 | } 36 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/IFileAttachmentContentHandler.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core; 25 | 26 | import java.io.OutputStream; 27 | 28 | /** 29 | * Defines a file attachment content handler. Application can implement 30 | * IFileAttachmentContentHandler /// to provide a stream in which the content of 31 | * file attachment should be written. 32 | */ 33 | public interface IFileAttachmentContentHandler { 34 | 35 | /** 36 | * Provides a stream to which the content of the attachment with the 37 | * specified Id should be written. 38 | * 39 | * @param attachmentId The Id of the attachment that is being loaded. 40 | * @return A Stream to which the content of the attachment will be written. 41 | */ 42 | OutputStream getOutputStream(String attachmentId); 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/IGetPropertyDefinitionCallback.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core; 25 | 26 | import microsoft.exchange.webservices.data.core.enumeration.misc.ExchangeVersion; 27 | import microsoft.exchange.webservices.data.property.definition.PropertyDefinition; 28 | 29 | /** 30 | * The Interface GetPropertyDefinitionCallbackInterface. 31 | */ 32 | interface IGetPropertyDefinitionCallback { 33 | 34 | /** 35 | * Gets the property definition callback. 36 | * 37 | * @param version the version 38 | * @return the property definition callback 39 | */ 40 | PropertyDefinition getPropertyDefinitionCallback(ExchangeVersion version); 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/ILazyMember.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core; 25 | 26 | /** 27 | * The Interface ILazyMember. 28 | * 29 | * @param the generic type 30 | */ 31 | public interface ILazyMember { 32 | 33 | /** 34 | * Creates the instance. 35 | * 36 | * @return the t 37 | */ 38 | T createInstance(); 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/IPredicate.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core; 25 | 26 | import microsoft.exchange.webservices.data.core.exception.service.local.ServiceLocalException; 27 | 28 | /** 29 | * The Interface IPredicate. 30 | * 31 | * @param The type of the object to compare. 32 | */ 33 | public interface IPredicate { 34 | 35 | /** 36 | * Represents the method that defines a 37 | * set of criteria and determines whether 38 | * the specified object meets those criteria. 39 | * 40 | * @param obj The object to compare against 41 | * the criteria defined within the method represented 42 | * by this delegate. 43 | * @return true if obj meets the criteria 44 | * defined within the method represented by this 45 | * delegate; otherwise, false. 46 | * @throws ServiceLocalException 47 | */ 48 | boolean predicate(T obj) throws ServiceLocalException; 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/attribute/EditorBrowsableState.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.attribute; 25 | 26 | /** 27 | * The Enum EditorBrowsableState. 28 | */ 29 | public enum EditorBrowsableState { 30 | 31 | // Summary: 32 | // The property or method is always browsable from within an editor. 33 | /** 34 | * The Always. 35 | */ 36 | Always, 37 | // 38 | // Summary: 39 | // The property or method is never browsable from within an editor. 40 | /** 41 | * The Never. 42 | */ 43 | Never, 44 | // 45 | // Summary: 46 | // The property or method is a feature that only advanced users should see. 47 | // An editor can either show or hide such property. 48 | /** 49 | * The Advanced. 50 | */ 51 | Advanced, 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/availability/AvailabilityData.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.availability; 25 | 26 | /** 27 | * Defines the type of data that can be requested via GetUserAvailability. 28 | */ 29 | public enum AvailabilityData { 30 | 31 | // Only return free/busy data. 32 | /** 33 | * The Free busy. 34 | */ 35 | FreeBusy, 36 | 37 | // Only return suggestions. 38 | /** 39 | * The Suggestions. 40 | */ 41 | Suggestions, 42 | 43 | // Return both free/busy data and suggestions. 44 | /** 45 | * The Free busy and suggestions. 46 | */ 47 | FreeBusyAndSuggestions 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/availability/MeetingAttendeeType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.availability; 25 | 26 | /** 27 | * Defines the type of a meeting attendee. 28 | */ 29 | public enum MeetingAttendeeType { 30 | 31 | // The attendee is the organizer of the meeting. 32 | /** 33 | * The Organizer. 34 | */ 35 | Organizer, 36 | 37 | // The attendee is required. 38 | /** 39 | * The Required. 40 | */ 41 | Required, 42 | 43 | // The attendee is optional. 44 | /** 45 | * The Optional. 46 | */ 47 | Optional, 48 | 49 | // The attendee is a room. 50 | /** 51 | * The Room. 52 | */ 53 | Room, 54 | 55 | // The attendee is a resource. 56 | /** 57 | * The Resource. 58 | */ 59 | Resource 60 | 61 | } 62 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/availability/SuggestionQuality.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.availability; 25 | 26 | /** 27 | * Defines the quality of an availability suggestion. 28 | */ 29 | public enum SuggestionQuality { 30 | 31 | // The suggestion is excellent. 32 | /** 33 | * The Excellent. 34 | */ 35 | Excellent, 36 | 37 | // The suggestion is good. 38 | /** 39 | * The Good. 40 | */ 41 | Good, 42 | 43 | // The suggestion is fair. 44 | /** 45 | * The Fair. 46 | */ 47 | Fair, 48 | 49 | // The suggestion is poor. 50 | /** 51 | * The Poor. 52 | */ 53 | Poor 54 | 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/misc/ConnectingIdType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.misc; 25 | 26 | /** 27 | * Defines the type of Id of a ConnectingId object. 28 | */ 29 | public enum ConnectingIdType { 30 | 31 | // / The connecting Id is a principal name. 32 | /** 33 | * The Principal name. 34 | */ 35 | PrincipalName, 36 | 37 | // / The Id is an SID. 38 | /** 39 | * The SID. 40 | */ 41 | SID, 42 | 43 | // / The Id is an SMTP address. 44 | /** 45 | * The Smtp address. 46 | */ 47 | SmtpAddress 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/misc/DateTimePrecision.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.misc; 25 | 26 | /** 27 | * Defines the precision for returned DateTime values 28 | */ 29 | public enum DateTimePrecision { 30 | 31 | // Default value. No SOAP header emitted. 32 | Default, 33 | 34 | // Seconds 35 | 36 | Seconds, 37 | 38 | // Milliseconds 39 | 40 | Milliseconds 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/misc/ExchangeVersion.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.misc; 25 | 26 | /** 27 | * Defines the each available Exchange release version. 28 | */ 29 | public enum ExchangeVersion { 30 | 31 | // / Microsoft Exchange 2007, Service Pack 1 32 | /** 33 | * The Exchange2007_ s p1. 34 | */ 35 | Exchange2007_SP1, 36 | // / Microsoft Exchange 2010 37 | /** 38 | * The Exchange2010. 39 | */ 40 | Exchange2010, 41 | 42 | /// Microsoft Exchange 2010, Service Pack 1 43 | /** 44 | * Exchange2010_SP1. 45 | */ 46 | Exchange2010_SP1, 47 | 48 | // Microsoft Exchange 2010, Service Pack 2 49 | /** 50 | * Exchange2010_SP2. 51 | */ 52 | Exchange2010_SP2, 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/misc/HangingRequestDisconnectReason.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.misc; 25 | 26 | /** 27 | * Enumeration of reasons that a hanging request may disconnect. 28 | */ 29 | public enum HangingRequestDisconnectReason { 30 | 31 | /** 32 | * The server cleanly closed the connection. 33 | */ 34 | Clean, 35 | 36 | /** 37 | * The client closed the connection. 38 | */ 39 | UserInitiated, 40 | 41 | /** 42 | * The connection timed out do to a lack of a heartbeat received. 43 | */ 44 | Timeout, 45 | 46 | /** 47 | * An exception occurred on the connection 48 | */ 49 | Exception 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/misc/IdFormat.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.misc; 25 | 26 | /** 27 | * Defines supported Id formats in ConvertId operations. 28 | */ 29 | public enum IdFormat { 30 | 31 | // The EWS Id format used in Exchange 2007 RTM. 32 | /** 33 | * The Ews legacy id. 34 | */ 35 | EwsLegacyId, 36 | 37 | // The EWS Id format used in Exchange 2007 SP1 and above. 38 | /** 39 | * The Ews id. 40 | */ 41 | EwsId, 42 | 43 | // The base64-encoded PR_ENTRYID property. 44 | /** 45 | * The Entry id. 46 | */ 47 | EntryId, 48 | 49 | // The hexadecimal representation of the PR_ENTRYID property. 50 | /** 51 | * The Hex entry id. 52 | */ 53 | HexEntryId, 54 | 55 | // The Store Id format. 56 | /** 57 | * The Store id. 58 | */ 59 | StoreId, 60 | 61 | // The Outlook Web Access Id format. 62 | /** 63 | * The Owa id. 64 | */ 65 | OwaId 66 | } 67 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/permission/PermissionScope.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.permission; 25 | 26 | /** 27 | * Defines the scope of a user's permission on a folder. 28 | */ 29 | public enum PermissionScope { 30 | 31 | /** 32 | * The user does not have the associated permission. 33 | */ 34 | None, 35 | 36 | /** 37 | * The user has the associated permission on item that it owns. 38 | */ 39 | Owned, 40 | 41 | /** 42 | * The user has the associated permission on all item. 43 | */ 44 | All 45 | 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/permission/folder/DelegateFolderPermissionLevel.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.permission.folder; 25 | 26 | /** 27 | * Defines a delegate user's permission level on a specific folder. 28 | */ 29 | public enum DelegateFolderPermissionLevel { 30 | 31 | // The delegate has no permission. 32 | /** 33 | * The None. 34 | */ 35 | None, 36 | 37 | // The delegate has Editor permissions. 38 | /** 39 | * The Editor. 40 | */ 41 | Editor, 42 | 43 | // The delegate has Reviewer permissions. 44 | /** 45 | * The Reviewer. 46 | */ 47 | Reviewer, 48 | 49 | // The delegate has Author permissions. 50 | /** 51 | * The Author. 52 | */ 53 | Author, 54 | 55 | // The delegate has custom permissions. 56 | /** 57 | * The Custom. 58 | */ 59 | Custom 60 | } 61 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/permission/folder/FolderPermissionReadAccess.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.permission.folder; 25 | 26 | /** 27 | * Defines a user's read access permission on item in a non-calendar folder. 28 | */ 29 | public enum FolderPermissionReadAccess { 30 | 31 | // The user has no read access on the item in the folder. 32 | /** 33 | * The None. 34 | */ 35 | None, 36 | 37 | // The user can read the start and end date and time of appointments. (Can 38 | // only be applied to Calendar folder). 39 | /** 40 | * The Time only. 41 | */ 42 | TimeOnly, 43 | 44 | // The user can read the start and end date and time, subject and location 45 | // of appointments. (Can only be applied to Calendar folder). 46 | /** 47 | * The Time and subject and location. 48 | */ 49 | TimeAndSubjectAndLocation, 50 | 51 | // The user has access to the full details of item. 52 | /** 53 | * The Full details. 54 | */ 55 | FullDetails 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/property/BodyType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.property; 25 | 26 | /** 27 | * Defines the type of body of an item. 28 | */ 29 | public enum BodyType { 30 | /** 31 | * The body is formatted in HTML. 32 | */ 33 | HTML, 34 | /** 35 | * The body is in plain text. 36 | */ 37 | Text 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/property/ConflictType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.property; 25 | 26 | /** 27 | * Defines the conflict types that can be returned in meeting time suggestions. 28 | */ 29 | public enum ConflictType { 30 | 31 | // There is a conflict with an indicidual attendee. 32 | /** 33 | * The Individual attendee conflict. 34 | */ 35 | IndividualAttendeeConflict, 36 | 37 | // There is a conflict with at least one member of a group. 38 | /** 39 | * The Group conflict. 40 | */ 41 | GroupConflict, 42 | 43 | // There is a conflict with at least one member of a group, but the group 44 | // was too big for detailed information to be returned. 45 | /** 46 | * The Group too big conflict. 47 | */ 48 | GroupTooBigConflict, 49 | 50 | // There is a conflict with an unresolvable attendee or an attendee that is 51 | // not a user, group, or contact. 52 | /** 53 | * The Unknown attendee conflict. 54 | */ 55 | UnknownAttendeeConflict 56 | 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/property/EmailAddressKey.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.property; 25 | 26 | /** 27 | * Defines e-mail address entries for a contact. 28 | */ 29 | public enum EmailAddressKey { 30 | 31 | // The first e-mail address. 32 | /** 33 | * The Email address1. 34 | */ 35 | EmailAddress1, 36 | 37 | // The second e-mail address. 38 | /** 39 | * The Email address2. 40 | */ 41 | EmailAddress2, 42 | 43 | // The third e-mail address. 44 | /** 45 | * The Email address3. 46 | */ 47 | EmailAddress3 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/property/ImAddressKey.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.property; 25 | 26 | /** 27 | * Defines Instant Messaging address entries for a contact. 28 | */ 29 | public enum ImAddressKey { 30 | // The first Instant Messaging address. 31 | /** 32 | * The Im address1. 33 | */ 34 | ImAddress1, 35 | 36 | // The second Instant Messaging address. 37 | /** 38 | * The Im address2. 39 | */ 40 | ImAddress2, 41 | 42 | // The third Instant Messaging address. 43 | /** 44 | * The Im address3. 45 | */ 46 | ImAddress3 47 | 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/property/Importance.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.property; 25 | 26 | /** 27 | * Defines the importance of an item. 28 | */ 29 | public enum Importance { 30 | 31 | // Low importance. 32 | /** 33 | * The Low. 34 | */ 35 | Low, 36 | 37 | // Normal importance. 38 | /** 39 | * The Normal. 40 | */ 41 | Normal, 42 | 43 | // High importance. 44 | /** 45 | * The High. 46 | */ 47 | High 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/property/MeetingResponseType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.property; 25 | 26 | /** 27 | * Defines the types of response given to a meeting request. 28 | */ 29 | public enum MeetingResponseType { 30 | 31 | // The response type is inknown. 32 | /** 33 | * The Unknown. 34 | */ 35 | Unknown, 36 | 37 | // There was no response. The authenticated is the organizer of the meeting. 38 | /** 39 | * The Organizer. 40 | */ 41 | Organizer, 42 | 43 | // The meeting was tentatively accepted. 44 | /** 45 | * The Tentative. 46 | */ 47 | Tentative, 48 | 49 | // The meeting was accepted. 50 | /** 51 | * The Accept. 52 | */ 53 | Accept, 54 | 55 | // The meeting was declined. 56 | /** 57 | * The Decline. 58 | */ 59 | Decline, 60 | 61 | // No response was received for the meeting. 62 | /** 63 | * The No response received. 64 | */ 65 | NoResponseReceived 66 | 67 | } 68 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/property/MemberStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.property; 25 | 26 | /** 27 | * Defines the status of group members. 28 | */ 29 | public enum MemberStatus { 30 | 31 | // The member is unrecognized. 32 | /** 33 | * The Unrecognized. 34 | */ 35 | Unrecognized, 36 | 37 | // The member is normal. 38 | /** 39 | * The Normal. 40 | */ 41 | Normal, 42 | 43 | // The member is demoted. 44 | /** 45 | * The Demoted. 46 | */ 47 | Demoted 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/property/OofExternalAudience.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.property; 25 | 26 | /** 27 | * Defines the external audience of an Out of Office notification. 28 | */ 29 | public enum OofExternalAudience { 30 | 31 | // No external recipients should receive Out of Office notification. 32 | /** 33 | * The None. 34 | */ 35 | None, 36 | 37 | // Only recipients that are in the user's Contacts frolder should receive 38 | // Out of Office notification. 39 | /** 40 | * The Known. 41 | */ 42 | Known, 43 | 44 | // All recipients should receive Out of Office notification. 45 | /** 46 | * The All. 47 | */ 48 | All 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/property/OofState.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.property; 25 | 26 | /** 27 | * Defines a user's Out of Office Assistant status. 28 | */ 29 | public enum OofState { 30 | 31 | // The assistant is diabled. 32 | /** 33 | * The Disabled. 34 | */ 35 | Disabled, 36 | 37 | // The assistant is enabled. 38 | /** 39 | * The Enabled. 40 | */ 41 | Enabled, 42 | 43 | // The assistant is scheduled. 44 | /** 45 | * The Scheduled. 46 | */ 47 | Scheduled 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/property/PhysicalAddressIndex.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.property; 25 | 26 | /** 27 | * Defines a physical address index. 28 | */ 29 | public enum PhysicalAddressIndex { 30 | 31 | // None. 32 | /** 33 | * The None. 34 | */ 35 | None, 36 | 37 | // The business address. 38 | /** 39 | * The Business. 40 | */ 41 | Business, 42 | 43 | // The home address. 44 | /** 45 | * The Home. 46 | */ 47 | Home, 48 | 49 | // The alternate address. 50 | /** 51 | * The Other. 52 | */ 53 | Other 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/property/PhysicalAddressKey.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.property; 25 | 26 | /** 27 | * Defines physical address entries for a contact. 28 | */ 29 | public enum PhysicalAddressKey { 30 | 31 | // The business address. 32 | /** 33 | * The Business. 34 | */ 35 | Business, 36 | 37 | // The home address. 38 | /** 39 | * The Home. 40 | */ 41 | Home, 42 | 43 | // An alternate address. 44 | /** 45 | * The Other. 46 | */ 47 | Other 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/property/Sensitivity.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.property; 25 | 26 | /** 27 | * Defines the sensitivity of an item. 28 | */ 29 | public enum Sensitivity { 30 | 31 | // The item has a normal sensitivity. 32 | /** 33 | * The Normal. 34 | */ 35 | Normal, 36 | 37 | // The item is personal. 38 | /** 39 | * The Personal. 40 | */ 41 | Personal, 42 | 43 | // The item is private. 44 | /** 45 | * The Private. 46 | */ 47 | Private, 48 | 49 | // The item is confidential. 50 | /** 51 | * The Confidential. 52 | */ 53 | Confidential 54 | 55 | } 56 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/property/StandardUser.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.property; 25 | 26 | /** 27 | * Defines a standard delegate user. 28 | */ 29 | public enum StandardUser { 30 | 31 | // The Default delegate user, used to define default delegation permissions. 32 | /** 33 | * The Default. 34 | */ 35 | Default, 36 | 37 | // The Anonymous delegate user, used to define delegate permissions for 38 | // unauthenticated users. 39 | /** 40 | * The Anonymous. 41 | */ 42 | Anonymous 43 | 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/search/AggregateType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.search; 25 | 26 | /** 27 | * Defines the type of aggregation to perform. 28 | */ 29 | public enum AggregateType { 30 | 31 | // The maximum value is calculated. 32 | /** 33 | * The Minimum. 34 | */ 35 | Minimum, 36 | 37 | // The minimum value is calculated. 38 | /** 39 | * The Maximum. 40 | */ 41 | Maximum 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/search/FolderTraversal.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.search; 25 | 26 | /** 27 | * Defines the scope of FindFolders operations. 28 | */ 29 | public enum FolderTraversal { 30 | 31 | // Only direct sub-folder are retrieved. 32 | /** 33 | * The Shallow. 34 | */ 35 | Shallow, 36 | 37 | // The entire hierarchy of sub-folder is retrieved. 38 | /** 39 | * The Deep. 40 | */ 41 | Deep, 42 | 43 | // Only soft deleted folder are retrieved. 44 | /** 45 | * The Soft deleted. 46 | */ 47 | SoftDeleted 48 | 49 | } 50 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/search/ItemTraversal.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.search; 25 | 26 | import microsoft.exchange.webservices.data.attribute.RequiredServerVersion; 27 | import microsoft.exchange.webservices.data.core.enumeration.misc.ExchangeVersion; 28 | 29 | /** 30 | * Defines the scope of FindItems operations. 31 | */ 32 | public enum ItemTraversal { 33 | 34 | // All non deleted item in the specified folder are retrieved. 35 | /** 36 | * The Shallow. 37 | */ 38 | Shallow, 39 | 40 | // Only soft-deleted item are retrieved. 41 | /** 42 | * The Soft deleted. 43 | */ 44 | SoftDeleted, 45 | 46 | // Only associated item are retrieved (Exchange 2010 or later). 47 | /** 48 | * The Associated. 49 | */ 50 | @RequiredServerVersion(version = ExchangeVersion.Exchange2010) 51 | Associated 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/search/LogicalOperator.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.search; 25 | 26 | /** 27 | * Defines a logical operator as used by search filter collections. 28 | */ 29 | public enum LogicalOperator { 30 | 31 | // The AND operator. 32 | /** 33 | * The And. 34 | */ 35 | And, 36 | 37 | // The OR operator. 38 | /** 39 | * The Or. 40 | */ 41 | Or 42 | 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/search/OffsetBasePoint.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.search; 25 | 26 | /** 27 | * Defines the offset's base point in a paged view. 28 | */ 29 | public enum OffsetBasePoint { 30 | 31 | // The offset is from the beginning of the view. 32 | /** 33 | * The Beginning. 34 | */ 35 | Beginning, 36 | 37 | // The offset is from the end of the view. 38 | /** 39 | * The End. 40 | */ 41 | End 42 | 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/search/ResolveNameSearchLocation.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.search; 25 | 26 | /** 27 | * Defines the location where a ResolveName operation searches for contacts. 28 | */ 29 | public enum ResolveNameSearchLocation { 30 | 31 | // The name is resolved against the Global Address List. 32 | /** 33 | * The Directory only. 34 | */ 35 | DirectoryOnly, 36 | 37 | // The name is resolved against the Global Address List and then against the 38 | // Contacts folder if no match was found. 39 | /** 40 | * The Directory then contacts. 41 | */ 42 | DirectoryThenContacts, 43 | 44 | // The name is resolved against the Contacts folder. 45 | /** 46 | * The Contacts only. 47 | */ 48 | ContactsOnly, 49 | 50 | // The name is resolved against the Contacts folder and then against the 51 | // Global Address List if no match was found. 52 | /** 53 | * The Contacts then directory. 54 | */ 55 | ContactsThenDirectory 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/search/SearchFolderTraversal.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.search; 25 | 26 | /** 27 | * Defines the scope of a search folder. 28 | */ 29 | public enum SearchFolderTraversal { 30 | 31 | // Items belonging to the root folder are retrieved. 32 | /** 33 | * The Shallow. 34 | */ 35 | Shallow, 36 | 37 | // Items belonging to the root folder and its sub-folder are retrieved. 38 | /** 39 | * The Deep. 40 | */ 41 | Deep 42 | 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/search/SortDirection.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.search; 25 | 26 | /** 27 | * Defines a sort direction. 28 | */ 29 | public enum SortDirection { 30 | 31 | // The sort is performed in ascending order. 32 | /** 33 | * The Ascending. 34 | */ 35 | Ascending, 36 | 37 | // The sort is performed in descending order. 38 | /** 39 | * The Descending. 40 | */ 41 | Descending 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/service/ConflictResolutionMode.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.service; 25 | 26 | /** 27 | * Defines how conflict resolutions are handled in update operations. 28 | */ 29 | public enum ConflictResolutionMode { 30 | 31 | // Local property changes are discarded. 32 | /** 33 | * The Never overwrite. 34 | */ 35 | NeverOverwrite, 36 | 37 | // Local property changes are applied to the server unless the server-side 38 | // copy is more recent than the local copy. 39 | /** 40 | * The Auto resolve. 41 | */ 42 | AutoResolve, 43 | 44 | // Local property changes overwrite server-side changes. 45 | /** 46 | * The Always overwrite. 47 | */ 48 | AlwaysOverwrite 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/service/ContactSource.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.service; 25 | 26 | /** 27 | * Defines the source of a contact or group. 28 | */ 29 | public enum ContactSource { 30 | // The contact or group is stored in the Global Address List 31 | /** 32 | * The Active directory. 33 | */ 34 | ActiveDirectory, 35 | 36 | // The contact or group is stored in Exchange. 37 | /** 38 | * The Store. 39 | */ 40 | Store 41 | 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/service/ConversationFlagStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.service; 25 | 26 | /** 27 | * Defines the flag status of a Conversation. 28 | */ 29 | public enum ConversationFlagStatus { 30 | 31 | /** 32 | * Not Flagged. 33 | */ 34 | NotFlagged, 35 | 36 | /** 37 | * Flagged. 38 | */ 39 | Flagged, 40 | 41 | /** 42 | * Complete. 43 | */ 44 | Complete 45 | 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/service/DeleteMode.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.service; 25 | 26 | /** 27 | * Represents deletion modes. 28 | */ 29 | public enum DeleteMode { 30 | 31 | // The item or folder will be permanently deleted. 32 | /** 33 | * The Hard delete. 34 | */ 35 | HardDelete, 36 | 37 | // The item or folder will be moved to the dumpster. Items and folder in 38 | // the dumpster can be recovered. 39 | /** 40 | * The Soft delete. 41 | */ 42 | SoftDelete, 43 | 44 | // The item or folder will be moved to the mailbox' Deleted Items folder. 45 | /** 46 | * The Move to deleted item. 47 | */ 48 | MoveToDeletedItems 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/service/MessageDisposition.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.service; 25 | 26 | /** 27 | * Defines how messages are disposed of in CreateItem and UpdateItem operations. 28 | */ 29 | public enum MessageDisposition { 30 | /* 31 | * Messages are saved but not sent. 32 | */ 33 | /** 34 | * The Save only. 35 | */ 36 | SaveOnly, 37 | /* 38 | * Messages are sent and a copy is saved. 39 | */ 40 | /** 41 | * The Send and save copy. 42 | */ 43 | SendAndSaveCopy, 44 | /* 45 | * Messages are sent but no copy is saved. 46 | */ 47 | /** 48 | * The Send only. 49 | */ 50 | SendOnly 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/service/PhoneCallState.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.service; 25 | 26 | /** 27 | * The PhoneCallState enumeration. 28 | */ 29 | public enum PhoneCallState { 30 | 31 | // Idle 32 | /** 33 | * The Idle. 34 | */ 35 | Idle, 36 | 37 | // Connecting 38 | /** 39 | * The Connecting. 40 | */ 41 | Connecting, 42 | 43 | // Alerted 44 | /** 45 | * The Alerted. 46 | */ 47 | Alerted, 48 | 49 | // Connected 50 | /** 51 | * The Connected. 52 | */ 53 | Connected, 54 | 55 | // Disconnected 56 | /** 57 | * The Disconnected. 58 | */ 59 | Disconnected, 60 | 61 | // Incoming 62 | /** 63 | * The Incoming. 64 | */ 65 | Incoming, 66 | 67 | // Transferring 68 | /** 69 | * The Transferring. 70 | */ 71 | Transferring, 72 | 73 | // Forwarding 74 | /** 75 | * The Forwarding. 76 | */ 77 | Forwarding 78 | 79 | } 80 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/service/ResponseMessageType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.service; 25 | 26 | /** 27 | * Defines the type of a ResponseMessage object. 28 | */ 29 | public enum ResponseMessageType { 30 | 31 | // The ResponseMessage is a reply to the sender of a message. 32 | /** 33 | * The Reply. 34 | */ 35 | Reply, 36 | 37 | // The ResponseMessage is a reply to the sender and all the recipients of a 38 | // message. 39 | /** 40 | * The Reply all. 41 | */ 42 | ReplyAll, 43 | 44 | // The ResponseMessage is a forward. 45 | /** 46 | * The Forward. 47 | */ 48 | Forward 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/service/SendCancellationsMode.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.service; 25 | 26 | /** 27 | * Defines how meeting cancellations should be sent to attendees when an 28 | * appointment is deleted. 29 | */ 30 | public enum SendCancellationsMode { 31 | 32 | // No meeting cancellation is sent. 33 | /** 34 | * The Send to none. 35 | */ 36 | SendToNone, 37 | 38 | // Meeting cancellations are sent to all attendees. 39 | /** 40 | * The Send only to all. 41 | */ 42 | SendOnlyToAll, 43 | 44 | // Meeting cancellations are sent to all attendees and a copy of the meeting 45 | // is saved in the organizer's Sent Items folder. 46 | /** 47 | * The Send to all and save copy. 48 | */ 49 | SendToAllAndSaveCopy, 50 | 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/service/SendInvitationsMode.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.service; 25 | 26 | /** 27 | * Defines if/how meeting invitations are sent. 28 | */ 29 | public enum SendInvitationsMode { 30 | 31 | // No meeting invitation is sent. 32 | /** 33 | * The Send to none. 34 | */ 35 | SendToNone, 36 | 37 | // Meeting invitations are sent to all attendees. 38 | /** 39 | * The Send only to all. 40 | */ 41 | SendOnlyToAll, 42 | 43 | // Meeting invitations are sent to all attendees and a copy of the 44 | // invitation message is saved. 45 | /** 46 | * The Send to all and save copy. 47 | */ 48 | SendToAllAndSaveCopy 49 | 50 | } 51 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/service/ServiceObjectType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.service; 25 | 26 | /** 27 | * Defines the type of a service object. 28 | */ 29 | public enum ServiceObjectType { 30 | 31 | // The object is a folder. 32 | /** 33 | * The Folder. 34 | */ 35 | Folder, 36 | 37 | // The object is an item. 38 | /** 39 | * The Item. 40 | */ 41 | Item, 42 | 43 | /// Data represents a conversation 44 | /** 45 | * The Conversation. 46 | */ 47 | Conversation 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/service/ServiceResult.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.service; 25 | 26 | /** 27 | * Defines the result of a call to an EWS method. Values in this enumeration 28 | * have to be ordered from lowest to highest severity. 29 | */ 30 | public enum ServiceResult { 31 | // The call was successful 32 | /** 33 | * The Success. 34 | */ 35 | Success, 36 | 37 | // The call triggered at least one warning 38 | /** 39 | * The Warning. 40 | */ 41 | Warning, 42 | 43 | // The call triggered at least one error 44 | /** 45 | * The Error. 46 | */ 47 | Error 48 | } 49 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/service/SyncFolderItemsScope.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.service; 25 | 26 | /** 27 | * Determines item to be included in a SyncFolderItems response. 28 | */ 29 | public enum SyncFolderItemsScope { 30 | 31 | // Include only normal item in the response. 32 | /** 33 | * The Normal item. 34 | */ 35 | NormalItems, 36 | 37 | // Include normal and associated item in the response. 38 | /** 39 | * The Normal and associated item. 40 | */ 41 | NormalAndAssociatedItems 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/service/TaskStatus.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.service; 25 | 26 | /** 27 | * Defines the execution status of a task. 28 | */ 29 | public enum TaskStatus { 30 | 31 | // The execution of the task is not started. 32 | /** 33 | * The Not started. 34 | */ 35 | NotStarted, 36 | 37 | // The execution of the task is in progress. 38 | /** 39 | * The In progress. 40 | */ 41 | InProgress, 42 | 43 | // The execution of the task is completed. 44 | /** 45 | * The Completed. 46 | */ 47 | Completed, 48 | 49 | // The execution of the task is waiting on others. 50 | /** 51 | * The Waiting on others. 52 | */ 53 | WaitingOnOthers, 54 | 55 | // The execution of the task is deferred. 56 | /** 57 | * The Deferred. 58 | */ 59 | Deferred 60 | 61 | } 62 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/service/calendar/AffectedTaskOccurrence.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.service.calendar; 25 | 26 | /** 27 | * Indicates which occurrence of a recurring task should be deleted. 28 | */ 29 | public enum AffectedTaskOccurrence { 30 | 31 | // All occurrences of the recurring task will be deleted. 32 | /** 33 | * The All occurrences. 34 | */ 35 | AllOccurrences, 36 | 37 | // Only the current occurrence of the recurring task will be deleted. 38 | /** 39 | * The Specified occurrence only. 40 | */ 41 | SpecifiedOccurrenceOnly 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/service/calendar/AppointmentType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.service.calendar; 25 | 26 | /** 27 | * Defines the type of an appointment. 28 | */ 29 | public enum AppointmentType { 30 | // The appointment is non-recurring. 31 | /** 32 | * The Single. 33 | */ 34 | Single, 35 | 36 | // The appointment is an occurrence of a recurring appointment. 37 | /** 38 | * The Occurrence. 39 | */ 40 | Occurrence, 41 | 42 | // The appointment is an exception of a recurring appointment. 43 | /** 44 | * The Exception. 45 | */ 46 | Exception, 47 | 48 | // The appointment is the recurring master of a series. 49 | /** 50 | * The Recurring master. 51 | */ 52 | RecurringMaster 53 | } 54 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/service/error/ConnectionFailureCause.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.service.error; 25 | 26 | /** 27 | * The ConnectionFailureCause enumeration. 28 | */ 29 | public enum ConnectionFailureCause { 30 | 31 | // None 32 | /** 33 | * The None. 34 | */ 35 | None, 36 | 37 | // UserBusy 38 | /** 39 | * The User busy. 40 | */ 41 | UserBusy, 42 | 43 | // NoAnswer 44 | /** 45 | * The No answer. 46 | */ 47 | NoAnswer, 48 | 49 | // Unavailable 50 | /** 51 | * The Unavailable. 52 | */ 53 | Unavailable, 54 | 55 | // Other 56 | /** 57 | * The Other. 58 | */ 59 | Other 60 | 61 | } 62 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/service/error/ServiceErrorHandling.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.service.error; 25 | 26 | /** 27 | * Defines the type of error handling used for service method calls. 28 | */ 29 | public enum ServiceErrorHandling { 30 | 31 | // Service method should return the error(s). 32 | /** 33 | * The Return errors. 34 | */ 35 | ReturnErrors, 36 | 37 | // Service method should throw exception when error occurs. 38 | /** 39 | * The Throw on error. 40 | */ 41 | ThrowOnError 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/enumeration/sync/ChangeType.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.enumeration.sync; 25 | 26 | /** 27 | * Defines the type of change of a synchronization event. 28 | */ 29 | public enum ChangeType { 30 | 31 | // An item or folder was created. 32 | /** 33 | * The Create. 34 | */ 35 | Create, 36 | 37 | // An item or folder was modified. 38 | /** 39 | * The Update. 40 | */ 41 | Update, 42 | 43 | // An item or folder was deleted. 44 | /** 45 | * The Delete. 46 | */ 47 | Delete, 48 | 49 | // An item's IsRead flag was changed. 50 | /** 51 | * The Read flag change. 52 | */ 53 | ReadFlagChange, 54 | } 55 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/exception/dns/DnsException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.exception.dns; 25 | 26 | /** 27 | * Defines DnsException class. 28 | */ 29 | public class DnsException extends Exception { 30 | 31 | /** 32 | * Constant serialized ID used for compatibility. 33 | */ 34 | private static final long serialVersionUID = 1L; 35 | 36 | /** 37 | * Instantiates a new dns exception. 38 | * 39 | * @param exceptionMessage the exception message 40 | */ 41 | public DnsException(String exceptionMessage) { 42 | super(exceptionMessage); 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/exception/http/HttpErrorException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.exception.http; 25 | 26 | 27 | /** 28 | * User: nwoodham Date: 3/8/11 Time: 5:30 PM 29 | */ 30 | public class HttpErrorException extends Exception { 31 | 32 | /** 33 | * Constant serialized ID used for compatibility. 34 | */ 35 | private static final long serialVersionUID = 1L; 36 | 37 | private final int code; 38 | 39 | public HttpErrorException() { 40 | super(); 41 | this.code = 0; 42 | } 43 | 44 | public HttpErrorException(String message, int code) { 45 | super(message); 46 | this.code = code; 47 | } 48 | 49 | public int getHttpErrorCode() { 50 | return this.code; 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/exception/misc/InvalidOperationException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.exception.misc; 25 | 26 | /** 27 | * The Class InvalidOperationException. 28 | */ 29 | public class InvalidOperationException extends Exception { 30 | 31 | /** 32 | * Constant serialized ID used for compatibility. 33 | */ 34 | private static final long serialVersionUID = 1L; 35 | 36 | /** 37 | * Instantiates a new invalid operation exception. 38 | */ 39 | public InvalidOperationException() { 40 | 41 | } 42 | 43 | /** 44 | * Instantiates a new invalid operation exception. 45 | * 46 | * @param strMessage the str message 47 | */ 48 | public InvalidOperationException(String strMessage) { 49 | super(strMessage); 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/exception/xml/XmlDtdException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.exception.xml; 25 | 26 | /** 27 | * Exception class for banned xml parsing 28 | */ 29 | class XmlDtdException extends XmlException { 30 | 31 | /** 32 | * Constant serialized ID used for compatibility. 33 | */ 34 | private static final long serialVersionUID = 1L; 35 | 36 | /** 37 | * Gets the xml exception message. 38 | */ 39 | 40 | @Override 41 | public String getMessage() { 42 | return "For security reasons DTD is prohibited in this XML document."; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/exception/xml/XmlException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.exception.xml; 25 | 26 | public class XmlException extends Exception { 27 | 28 | /** 29 | * Constant serialized ID used for compatibility. 30 | */ 31 | private static final long serialVersionUID = 1L; 32 | 33 | /** 34 | * Instantiates a new argument exception. 35 | */ 36 | public XmlException() { 37 | super(); 38 | 39 | } 40 | 41 | /** 42 | * Instantiates a new argument exception. 43 | * 44 | * @param arg0 the arg0 45 | */ 46 | public XmlException(final String arg0) { 47 | super(arg0); 48 | 49 | } 50 | 51 | /** 52 | * ServiceXmlDeserializationException Constructor. 53 | * 54 | * @param message the message 55 | * @param innerException the inner exception 56 | */ 57 | public XmlException(String message, Exception innerException) { 58 | super(message, innerException); 59 | } 60 | } 61 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/request/WaitHandle.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.request; 25 | 26 | public class WaitHandle { 27 | 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/response/GetUserOofSettingsResponse.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.response; 25 | 26 | import microsoft.exchange.webservices.data.property.complex.availability.OofSettings; 27 | 28 | /** 29 | * Represents response to GetUserOofSettings request. 30 | */ 31 | public class GetUserOofSettingsResponse extends ServiceResponse { 32 | 33 | /** 34 | * The oof settings. 35 | */ 36 | private OofSettings oofSettings; 37 | 38 | /** 39 | * Initializes a new instance of the class. 40 | */ 41 | public GetUserOofSettingsResponse() { 42 | super(); 43 | } 44 | 45 | /** 46 | * Gets the OOF settings. 47 | * 48 | * @return the oof settings 49 | */ 50 | public OofSettings getOofSettings() { 51 | return this.oofSettings; 52 | } 53 | 54 | /** 55 | * Sets the oof settings. 56 | * 57 | * @param value the new oof settings 58 | */ 59 | public void setOofSettings(OofSettings value) { 60 | this.oofSettings = value; 61 | } 62 | 63 | } 64 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/response/IGetObjectInstanceDelegate.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.response; 25 | 26 | import microsoft.exchange.webservices.data.core.ExchangeService; 27 | import microsoft.exchange.webservices.data.core.service.ServiceObject; 28 | 29 | /** 30 | * The Interface GetObjectInstanceDelegateInterface. 31 | * 32 | * @param the generic type 33 | */ 34 | public interface IGetObjectInstanceDelegate { 35 | 36 | /** 37 | * Gets the object instance delegate. 38 | * 39 | * @param service the service 40 | * @param xmlElementName the xml element name 41 | * @return the object instance delegate 42 | * @throws Exception the exception 43 | */ 44 | T getObjectInstanceDelegate(ExchangeService service, String xmlElementName) 45 | throws Exception; 46 | } 47 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/service/ICreateServiceObjectWithAttachmentParam.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.service; 25 | 26 | import microsoft.exchange.webservices.data.property.complex.ItemAttachment; 27 | 28 | /** 29 | * The Interface ICreateServiceObjectWithAttachmentParam. 30 | */ 31 | public interface ICreateServiceObjectWithAttachmentParam { 32 | 33 | /** 34 | * Creates the service object with attachment param. 35 | * 36 | * @param itemAttachment the item attachment 37 | * @param isNew the is new 38 | * @return the object 39 | * @throws Exception the exception 40 | */ 41 | Object createServiceObjectWithAttachmentParam( 42 | ItemAttachment itemAttachment, boolean isNew) throws Exception; 43 | 44 | } 45 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/service/ICreateServiceObjectWithServiceParam.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.service; 25 | 26 | import microsoft.exchange.webservices.data.core.ExchangeService; 27 | 28 | /** 29 | * The Interface ICreateServiceObjectWithServiceParam. 30 | */ 31 | public interface ICreateServiceObjectWithServiceParam { 32 | 33 | /** 34 | * Creates the service object with service param. 35 | * 36 | * @param srv the srv 37 | * @return the object 38 | * @throws Exception the exception 39 | */ 40 | Object createServiceObjectWithServiceParam(ExchangeService srv) 41 | throws Exception; 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/core/service/schema/PostReplySchema.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.core.service.schema; 25 | 26 | /** 27 | * Represents PostReply schema definition. 28 | */ 29 | public final class PostReplySchema extends ServiceObjectSchema { 30 | 31 | // This must be declared after the property definitions 32 | /** 33 | * The Constant Instance. 34 | */ 35 | public static final PostReplySchema Instance = new PostReplySchema(); 36 | 37 | /** 38 | * Registers property. 39 | *

40 | * IMPORTANT NOTE: PROPERTIES MUST BE REGISTERED IN SCHEMA ORDER (i.e. the 41 | * same order as they are defined in types.xsd) 42 | */ 43 | @Override 44 | protected void registerProperties() { 45 | super.registerProperties(); 46 | 47 | this.registerProperty(ItemSchema.Subject); 48 | this.registerProperty(ItemSchema.Body); 49 | this.registerProperty(ResponseObjectSchema.ReferenceItemId); 50 | this.registerProperty(ResponseObjectSchema.BodyPrefix); 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/credential/CredentialConstants.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.credential; 25 | 26 | //These constants needs to be defined as per user configurations. 27 | public interface CredentialConstants { 28 | String URL = ""; 29 | String USERNAME = ""; 30 | String DOMAIN = ""; 31 | String EMAIL_ID = ""; 32 | String PASSWORD = ""; 33 | String ATTENDEE_EMAIL_ID = ""; 34 | String ATTENDEE_USERNAME = ""; 35 | String ATTENDEE_PASSWORD = ""; 36 | String PROXY_CRED_USERNAME = ""; 37 | String PROXY_CRED_PASSWORD = ""; 38 | String PROXY_CRED_DOMAIN = ""; 39 | String PROXY_HOST = ""; 40 | int PROXY_PORT = 80; 41 | String PATH = ""; 42 | String COPYTOFILEPATH = ""; 43 | String SMTPADDRESS_DISTRIBUTION_GROUP = ""; 44 | String SMTPADDRESS_ROOM = ""; 45 | int THREAD_SLEEP_MILLSEC = 5000; 46 | 47 | } 48 | 49 | 50 | 51 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/credential/WebProxyCredentials.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.credential; 25 | 26 | public class WebProxyCredentials { 27 | 28 | private String username; 29 | 30 | private String password; 31 | 32 | private String domain; 33 | 34 | public WebProxyCredentials(String username, String password, String domain) { 35 | this.username = username; 36 | this.password = password; 37 | this.domain = domain; 38 | } 39 | 40 | public String getUsername() { 41 | return username; 42 | } 43 | 44 | public String getPassword() { 45 | return password; 46 | } 47 | 48 | public String getDomain() { 49 | return domain; 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/credential/WindowsLiveCredentials.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.credential; 25 | 26 | public class WindowsLiveCredentials extends WSSecurityBasedCredentials { 27 | 28 | } 29 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/misc/AbstractItemIdWrapper.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.misc; 25 | 26 | import microsoft.exchange.webservices.data.core.EwsServiceXmlWriter; 27 | import microsoft.exchange.webservices.data.core.service.item.Item; 28 | 29 | /** 30 | * Represents the abstraction of an item Id. 31 | */ 32 | abstract class AbstractItemIdWrapper { 33 | 34 | /** 35 | * Initializes a new instance of the class. 36 | */ 37 | protected AbstractItemIdWrapper() { 38 | } 39 | 40 | /** 41 | * Obtains the ItemBase object associated with the wrapper. 42 | * 43 | * @return The ItemBase object associated with the wrapper 44 | */ 45 | public Item getItem() { 46 | return null; 47 | } 48 | 49 | /** 50 | * Writes the Id encapsulated in the wrapper to XML. 51 | * 52 | * @param writer the writer 53 | * @throws Exception the exception 54 | */ 55 | protected abstract void writeToXml(EwsServiceXmlWriter writer) 56 | throws Exception; 57 | } 58 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/misc/AsyncCallback.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.misc; 25 | 26 | import java.util.concurrent.Future; 27 | 28 | public abstract class AsyncCallback extends AbstractAsyncCallback { 29 | 30 | AsyncCallback() { 31 | 32 | } 33 | 34 | void setTask(Future task) { 35 | 36 | this.task = task; 37 | } 38 | 39 | Future getTask() { 40 | return this.task; 41 | } 42 | 43 | 44 | 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/misc/AsyncCallbackImplementation.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.misc; 25 | 26 | import org.apache.commons.logging.Log; 27 | import org.apache.commons.logging.LogFactory; 28 | 29 | import java.util.concurrent.Future; 30 | 31 | public class AsyncCallbackImplementation extends AsyncCallback { 32 | 33 | private static final Log LOG = LogFactory.getLog(AsyncCallbackImplementation.class); 34 | 35 | @Override 36 | public Object processMe(Future task) { 37 | LOG.debug("In Async Callback" + task.isDone()); 38 | return null; 39 | } 40 | 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/misc/Callback.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.misc; 25 | 26 | import java.util.concurrent.Future; 27 | 28 | public interface Callback { 29 | T processMe(Future task); 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/misc/EwsTraceListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.misc; 25 | 26 | import org.apache.commons.logging.Log; 27 | import org.apache.commons.logging.LogFactory; 28 | 29 | /** 30 | * EwsTraceListener logs request/response. 31 | */ 32 | public class EwsTraceListener implements ITraceListener { 33 | 34 | private final Log log = LogFactory.getLog(EwsTraceListener.class); 35 | 36 | 37 | public EwsTraceListener() { 38 | } 39 | 40 | /** 41 | * Handles a trace message. 42 | * 43 | * @param traceType The trace type 44 | * @param traceMessage The trace message 45 | */ 46 | @Override 47 | public void trace(String traceType, String traceMessage) { 48 | if(log.isTraceEnabled()) { 49 | log.trace(traceType + " - " + traceMessage); 50 | } 51 | } 52 | } 53 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/misc/IAsyncResult.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.misc; 25 | 26 | import microsoft.exchange.webservices.data.core.request.WaitHandle; 27 | 28 | import java.util.concurrent.Future; 29 | 30 | /** 31 | * Represents the stauts of Asynchronous operation. 32 | */ 33 | 34 | public interface IAsyncResult extends Future { 35 | 36 | public Object getAsyncState(); 37 | 38 | public WaitHandle getAsyncWaitHanle(); 39 | 40 | public boolean getCompleteSynchronously(); 41 | 42 | public boolean getIsCompleted(); 43 | } 44 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/misc/IFunction.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.misc; 25 | 26 | /** 27 | * The Interface FuncInterface. 28 | * 29 | * @param the generic type 30 | * @param the generic type 31 | */ 32 | public interface IFunction { 33 | 34 | /** 35 | * Func. 36 | * 37 | * @param arg the arg 38 | * @return the t result 39 | */ 40 | TResult func(T arg); 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/misc/ITraceListener.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.misc; 25 | 26 | /** 27 | * ITraceListener handles message tracing. 28 | */ 29 | public interface ITraceListener { 30 | 31 | /** 32 | * Handles a trace message. 33 | * 34 | * @param traceType Type of trace message. 35 | * @param traceMessage The trace message. 36 | */ 37 | void trace(String traceType, String traceMessage); 38 | 39 | } 40 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/misc/MapiTypeConverterMap.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.misc; 25 | 26 | import microsoft.exchange.webservices.data.core.enumeration.property.MapiPropertyType; 27 | 28 | import java.util.HashMap; 29 | 30 | /** 31 | * The Class MapiTypeConverterMap. 32 | */ 33 | public class MapiTypeConverterMap extends 34 | HashMap { 35 | 36 | /** 37 | * Constant serialized ID used for compatibility. 38 | */ 39 | private static final long serialVersionUID = 1L; 40 | 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/misc/OutParam.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.misc; 25 | 26 | /** 27 | * The Class OutParam. 28 | * 29 | * @param the generic type 30 | */ 31 | public class OutParam extends Param { 32 | 33 | /** 34 | * Instantiates a new out param. 35 | */ 36 | public OutParam() { 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/misc/Param.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.misc; 25 | 26 | /** 27 | * The Class Param. 28 | * 29 | * @param the generic type 30 | */ 31 | abstract class Param { 32 | 33 | /** 34 | * The param. 35 | */ 36 | private T param; 37 | 38 | /** 39 | * Gets the param. 40 | * 41 | * @return the param 42 | */ 43 | public T getParam() { 44 | return param; 45 | } 46 | 47 | /** 48 | * Sets the param. 49 | * 50 | * @param param the new param 51 | */ 52 | public void setParam(T param) { 53 | this.param = param; 54 | } 55 | 56 | } 57 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/misc/RefParam.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.misc; 25 | 26 | /** 27 | * The Class RefParam. 28 | * 29 | * @param the generic type 30 | */ 31 | public class RefParam extends Param { 32 | 33 | /** 34 | * Instantiates a new ref param. 35 | * 36 | * @param param the param 37 | */ 38 | public RefParam(T param) { 39 | this.setParam(param); 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/notification/PushSubscription.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.notification; 25 | 26 | import microsoft.exchange.webservices.data.core.ExchangeService; 27 | 28 | /** 29 | * Represents a push subscriptions.. 30 | */ 31 | public final class PushSubscription extends SubscriptionBase { 32 | 33 | /** 34 | * Initializes a new instance. 35 | * 36 | * @param service the service 37 | * @throws Exception the exception 38 | */ 39 | public PushSubscription(ExchangeService service) throws Exception { 40 | super(service); 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/property/complex/ComplexFunctionDelegate.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.property.complex; 25 | 26 | import microsoft.exchange.webservices.data.core.EwsServiceXmlReader; 27 | 28 | public interface ComplexFunctionDelegate { 29 | 30 | Boolean func(T1 arg1) throws Exception; 31 | } 32 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/property/complex/GenericItemAttachment.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.property.complex; 25 | 26 | import microsoft.exchange.webservices.data.core.service.item.Item; 27 | 28 | /** 29 | * Represents a strongly typed item attachment. 30 | * 31 | * @param Item type. 32 | */ 33 | public final class GenericItemAttachment extends ItemAttachment { 34 | 35 | /** 36 | * Initializes a new instance of the GenericItemAttachment class. 37 | * 38 | * @param owner the owner 39 | */ 40 | protected GenericItemAttachment(Item owner) { 41 | super(owner); 42 | } 43 | 44 | /** 45 | * Gets the item associated with the attachment. 46 | * 47 | * @return the t item 48 | */ 49 | public TItem getTItem() { 50 | return (TItem) super.getItem(); 51 | } 52 | 53 | /** 54 | * Sets the t item. 55 | * 56 | * @param value the new t item 57 | */ 58 | protected void setTItem(TItem value) { 59 | super.setItem(value); 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/property/complex/IComplexPropertyChanged.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.property.complex; 25 | 26 | /** 27 | * Indicates that a complex property changed. 28 | */ 29 | public interface IComplexPropertyChanged { 30 | /** 31 | * Indicates that a complex property changed. 32 | * 33 | * @param complexProperty Complex property. 34 | */ 35 | void complexPropertyChanged(ComplexProperty complexProperty); 36 | 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/property/complex/IComplexPropertyChangedDelegate.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.property.complex; 25 | 26 | /** 27 | * The Interface ComplexPropertyChangedDelegateInterface. 28 | */ 29 | public interface IComplexPropertyChangedDelegate { 30 | 31 | /** 32 | * Complex property changed. 33 | * 34 | * @param complexProperty the complex property 35 | */ 36 | void complexPropertyChanged(TComplexProperty complexProperty); 37 | 38 | } 39 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/property/complex/ICreateComplexPropertyDelegate.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.property.complex; 25 | 26 | /** 27 | * Used to create instances of ComplexProperty. 28 | * 29 | * @param Type that extends ComplexProperty 30 | */ 31 | public interface ICreateComplexPropertyDelegate 32 | { 33 | 34 | /** 35 | * used to create instances of ComplexProperty. 36 | * 37 | * @return Complex property instance 38 | */ 39 | TComplexProperty createComplexProperty(); 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/property/complex/IOwnedProperty.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.property.complex; 25 | 26 | import microsoft.exchange.webservices.data.core.service.ServiceObject; 27 | 28 | /** 29 | * Complex property that implement that interface are owned by an instance of 30 | * EwsObject. For this reason, they also cannot be shared. 31 | */ 32 | public interface IOwnedProperty { 33 | 34 | /** 35 | * Gets the owner. 36 | * 37 | * @return The owner. 38 | */ 39 | ServiceObject getOwner(); 40 | 41 | /** 42 | * Sets the owner. 43 | * 44 | * @param obj The owner. 45 | */ 46 | void setOwner(ServiceObject obj); 47 | } 48 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/property/complex/IPropertyBagChangedDelegate.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.property.complex; 25 | 26 | import microsoft.exchange.webservices.data.core.SimplePropertyBag; 27 | 28 | /** 29 | * The Interface PropertyBagChangedDelegateInterface. 30 | * 31 | * @param the generic type 32 | */ 33 | 34 | public interface IPropertyBagChangedDelegate { 35 | /** 36 | * Property bag changed. 37 | * 38 | * @param simplePropertyBag the simple property bag 39 | */ 40 | void propertyBagChanged(SimplePropertyBag simplePropertyBag); 41 | } 42 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/property/complex/ISearchStringProvider.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.property.complex; 25 | 26 | /** 27 | * Interface defined for types that can produce a string representation for use 28 | * in search filter. 29 | */ 30 | public interface ISearchStringProvider { 31 | /** 32 | * Get a string representation for using this instance in a search filter. 33 | * 34 | * @return String representation of instance. 35 | */ 36 | String getSearchString(); 37 | } 38 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/property/complex/IServiceObjectChangedDelegate.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.property.complex; 25 | 26 | import microsoft.exchange.webservices.data.core.service.ServiceObject; 27 | 28 | /** 29 | * The Interface ServiceObjectChangedDelegateInterface. 30 | */ 31 | public interface IServiceObjectChangedDelegate { 32 | 33 | /** 34 | * Service object changed. 35 | * 36 | * @param serviceObject the service object 37 | */ 38 | void serviceObjectChanged(ServiceObject serviceObject); 39 | 40 | } 41 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/property/complex/RuleOperation.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.property.complex; 25 | 26 | /** 27 | * Represents an operation to be performed on a rule. 28 | */ 29 | public abstract class RuleOperation extends ComplexProperty { 30 | protected String xmlElementName; 31 | 32 | /** 33 | * Initializes a new instance of the class. 34 | */ 35 | protected RuleOperation() { 36 | super(); 37 | } 38 | 39 | /** 40 | * Gets the XML element name of the rule operation. 41 | */ 42 | public String getXmlElementName() { 43 | return this.xmlElementName; 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /src/main/java/microsoft/exchange/webservices/data/property/definition/IDateTimePropertyDefinition.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.property.definition; 25 | 26 | /** 27 | * The Interface DateTimePropertyDefinitionInterface. 28 | */ 29 | interface IDateTimePropertyDefinition { 30 | 31 | } 32 | -------------------------------------------------------------------------------- /src/site/site.xml: -------------------------------------------------------------------------------- 1 | 2 | 26 | 27 | 28 | Maven 29 | http://maven.apache.org/images/apache-maven-project.png 30 | http://maven.apache.org/ 31 | 32 | 33 | http://maven.apache.org/images/maven-small.gif 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | -------------------------------------------------------------------------------- /src/test/java/microsoft/exchange/webservices/data/property/complex/EmailAddressTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * The MIT License 3 | * Copyright (c) 2012 Microsoft Corporation 4 | * 5 | * Permission is hereby granted, free of charge, to any person obtaining a copy 6 | * of this software and associated documentation files (the "Software"), to deal 7 | * in the Software without restriction, including without limitation the rights 8 | * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | * copies of the Software, and to permit persons to whom the Software is 10 | * furnished to do so, subject to the following conditions: 11 | * 12 | * The above copyright notice and this permission notice shall be included in 13 | * all copies or substantial portions of the Software. 14 | * 15 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | * THE SOFTWARE. 22 | */ 23 | 24 | package microsoft.exchange.webservices.data.property.complex; 25 | 26 | import org.junit.Assert; 27 | import org.junit.Test; 28 | import org.junit.runner.RunWith; 29 | import org.junit.runners.JUnit4; 30 | 31 | @RunWith(JUnit4.class) 32 | public class EmailAddressTest { 33 | 34 | @Test 35 | public void testEmailAddressToString() { 36 | EmailAddress address = new EmailAddress(); 37 | address.setAddress("ews@ews.com"); 38 | Assert.assertEquals(address.toString(), "ews@ews.com"); 39 | address.setName("ews"); 40 | Assert.assertEquals(address.toString(), "ews "); 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /src/test/resources/logback-test.xml: -------------------------------------------------------------------------------- 1 | 2 | 26 | 27 | 28 | 33 | false 34 | 35 | %d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | --------------------------------------------------------------------------------